Jump to content
  • 0
Sign in to follow this  
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

Recommended Posts

  • 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


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.

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.