Heal over Time

kairu

New member
Messages
23
Points
0
does anyone have a src code for heal over time like Renovatio skill on Arch bishop does? however the tick rate is configurable so maybe it'll work like an item bonus code like bonus3 bHealOverTime,x,y,z; where x= hp; y= sp; z= tick rate;

Also does this increase the server load? i feel like ticks plays a heavy role on it.

 
You should check Incantation Samurai Card. Does same thing IIRC, except you can just change the negative integer to positive.

 
There's already bonus2 bHPRegenRate/bSPRegenRate which do exactly that. Check the documentation.
 oh i didnt see that however can it be percentage of your max hp instead?
Yup.bonus2 bHPRegenRate, (MaxHp/100), 1000;This script would drain 1% of max hp every 1000ms (1 second).
it should gain 1% every 1s. But thanks i understand now next problem is how long it will linger; was going to put this in ygg berries changing it instead of instant healing to overtime healing. like lets say if you use the berry you would heal 3% of your max hp every 1second for 5second linger time. is it possible still with this item bonus?

sorry for being unspecific.

 
for (.@i = 0; .@i < 5; ++.@i)

(

perecentheal(3, 0);

sleep2(1000);

}

Dunno how reliable this is, or if it should be used in item scripts.
 
That what i was thinking i just dont know what values to use and how to use 2 ticks in it.

 
Berry use triggers your custom status with the defined duration, the status ticks at intervals you defined. If you want an example, check SC_L_LIFEPOTION (Medium Life Potion, ID 12459) or any other similar status.

 
i now kind of get it. last question: lets say if i want the heal interval to be like 30ms or lower will that cause any problems to the server on how its "stress" level can handle it?

 
Back
Top