I’m trying to modify the NV_FIRSTAID skill to turn it into a Heal Over Time (HoT) skill, healing 2% of Max HP per second for 4 seconds. I attempted to use add_timer and skill_addtimerskill, but unfortunately, I wasn't able to get it working.
Could someone please help me understand how to make this work? Any guidance would be greatly appreciated!
case NV_FIRSTAID:{int healAmount =(sd->status.max_hp *2)/100;
status_heal(bl, healAmount,0,2);
clif_skill_nodamage(src,*bl, NV_FIRSTAID, healAmount,true);
clif_updatestatus(*sd, SP_HP);// Scheduling ticksfor(int i =1; i <=3; i++){
skill_addtimerskill(src, tick +(i *1000), bl->id,0,0, NV_FIRSTAID, skill_lv,0,2);}break;}
Question
Hyllok
Hey everyone!
I’m trying to modify the NV_FIRSTAID skill to turn it into a Heal Over Time (HoT) skill, healing 2% of Max HP per second for 4 seconds. I attempted to use
add_timer
andskill_addtimerskill
, but unfortunately, I wasn't able to get it working.Could someone please help me understand how to make this work? Any guidance would be greatly appreciated!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.