• 0
Sign in to follow this  
Followers 0
kairu

Heal over Time

Question

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.

Share this post


Link to post
Share on other sites

10 answers to this question

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

 

 

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).

Share this post


Link to post
Share on other sites
  • 0

 

 

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.

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0