kiros Posted June 19, 2013 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 60 Reputation: 9 Joined: 04/16/12 Last Seen: December 5, 2019 Share 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 Link to comment Share on other sites More sharing options...
Jaburak Posted June 19, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 237 Joined: 07/30/12 Last Seen: Wednesday at 05:43 AM Share Posted June 19, 2013 Why not use Euphy's healer? You can set timer on that script easily. Quote Link to comment Share on other sites More sharing options...
kiros Posted June 19, 2013 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 60 Reputation: 9 Joined: 04/16/12 Last Seen: December 5, 2019 Author Share 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 Link to comment Share on other sites More sharing options...
DeadlySilence Posted June 19, 2013 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 181 Reputation: 53 Joined: 04/07/13 Last Seen: August 23, 2014 Share 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 Link to comment Share on other sites More sharing options...
kiros Posted June 19, 2013 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 60 Reputation: 9 Joined: 04/16/12 Last Seen: December 5, 2019 Author Share 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 Link to comment Share on other sites More sharing options...
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 kirosLink to comment
Share on other sites
4 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.