[HELP] Absorb Damage Taken Bonus

Last edited by a moderator:
absorb_health.c: In function ‘pc_damage_pre’:
absorb_health.c:66:9: warning: implicit declaration of function ‘rand’ [-Wimplicit-function-declaration]
if ( (rand() % 1000) < ssd->hp_gain_rate_chance ) {
^
absorb_health.c:66:3: warning: nested extern declaration of ‘rand’ [-Wnested-externs]
if ( (rand() % 1000) < ssd->hp_gain_rate_chance ) {
^
PLUGIN absorb_health


@AnnieRuru

 
already tested with

OnPCStatCalcEvent:
bonus2 bHPGainRateWhenHit, 500, 50;
bonus2 bHPGainRateWhenHit, 500, 50;
end;


total up 100% chance to recover 100% hp

this formula is the same as hunter fly card, the chance and the value are just sum up

if doesn't work for you, no idea, it works on my test server

 
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.

it heals but after a few seconds the regen hp lose

Code:
	Script: <"
		bonus2 bHPGainRateWhenHit,10000,300;
	">
 
Last edited by a moderator:
I'm sorry, I can't really answer this kind of question

just use reduce damage taken ...

imagine if the player having 199 attack speed, and trigger the hunter fly card effect every time, that effect kinda spammy
I give you some links if you don't understand what LAG means

https://dictionary.cambridge.org/dictionary/english/lag

https://en.wikipedia.org/wiki/Lag

so this will only work with 190 attack speed and below?
it works fine on my computer when everything is set offline (127.0.0.1)

 
Back
Top