kiros Posted June 19, 2013 Posted June 19, 2013 (edited) This was working on eA but is not on rA, i don't know what is changed on rA but the npc never clean the timer and it get stuck there, can any one be kind enough to help me? currently running: rA 17368 x,x,x,x script Healer 1024,{ if(@heal == 1){ goto NoHeal; end; } specialeffect2 14; percentheal 100,100; set @heal,1; attachnpctimer strcharinfo(0); initnpctimer; end; OnTimer30000: set @heal,0; end; Edited June 19, 2013 by kiros Quote
Jaburak Posted June 19, 2013 Posted June 19, 2013 Why not use Euphy's healer? You can set timer on that script easily. Quote
kiros Posted June 19, 2013 Author Posted June 19, 2013 (edited) well because i have more custom options attached to that script, like language changer and is a part of a bigger group of scripts i already made... though this is the only one not working, and for last i really like to know what have changed here to avoid this problems on the future Thanks in advance Edited June 19, 2013 by kiros Quote
DeadlySilence Posted June 19, 2013 Posted June 19, 2013 You could do it like this: x,x,x,x script Healer 1024,{ if (!((@healTime + 30) <= gettimetick(2))) { dispbottom "You have to wait until you can get healed again."; end; } specialeffect2 14; percentheal 100,100; @healTime = gettimetick(2); end; } Quote
kiros Posted June 19, 2013 Author Posted June 19, 2013 Thank you @DeadlySilence it works like a charm. but i change a bit the code to fit my needs, anyone can use it if you feel like. x,x,x,x script Healer::Healerr 922,{ if (!((@healTime + 30) <= gettimetick(2))) { if(UNDL == 1 || UNDL == 0){ message strcharinfo(0),"You have to wait 30 seconds until you can get healed again."; } if(UNDL == 2){ message strcharinfo(0),"Debes esperar 30 segundos para poder regenerarte de nuevo"; } end; } specialeffect2 14; percentheal 100,100; @healTime = gettimetick(2); end; } Quote
Question
kiros
This was working on eA but is not on rA, i don't know what is changed on rA but the npc never clean the timer and it get stuck there, can any one be kind enough to help me?
currently running: rA 17368
Edited by kiros4 answers 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.