Raised This Month: $ Target: $400
 0% 

set_user_hp by attacker damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ke3ller
Member
Join Date: Feb 2013
Old 05-18-2013 , 18:14   set_user_hp by attacker damage
Reply With Quote #1

I have no idea where to search the function code and I want to do a resistance option for that works only for 5 seconds.
I was thinking at sth like set_user_hp ( get_attacker_dmg + attacker dmg) but I don't know if it's possible, specialy only for 5 secs.
I found this code from EKS's Runemod but I can't undestand it or use it (is making the user resist to 50% of attack):

PHP Code:
#define RESIST_AMOUT 0.50

public API_Damage(victim,attacker,damage)
{
    if ( 
bla bla
    {
???
#endif??? 
            
return damage floatround(damage RESIST_AMOUT
    }
    return 
damage     

ke3ller is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode