And wondering what should i replace for "goto" function?
Most of my scripts are using goto even my healer NPC.
So, how do you make this not use goto?
- script Healer -1,{if ( Delay_Heal > gettimetick(2) ) goto deley; specialeffect2 EF_HEAL; percentheal 100,0; specialeffect2 EF_BLESSING; sc_start SC_BLESSING, 360000, 10; specialeffect2 EF_INCAGILITY; sc_start SC_INC_AGI, 360000, 10; set Delay_Heal,gettimetick(2)+3*60;end;deley: mes "[Healer]"; mes "Sorry, I can only help you once per 3 minutes."; close;end;}
So I have read the potential of this: https://github.com/HerculesWS/Hercules/pull/374
And wondering what should i replace for "goto" function?
Most of my scripts are using goto even my healer NPC.
So, how do you make this not use goto?
Thanks!
Share this post
Link to post
Share on other sites