Auryn Posted August 1, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 147 Reputation: 1 Joined: 01/26/12 Last Seen: April 27, 2018 Share Posted August 1, 2012 (edited) I made a healer with time lapse before to be able to heal again. The problem is that one of em' discovered that once he is got healed, he just has to log off and log back on to bypass the countting and heal again. Fore exemple, for a player with a base level inferior of 13, i'm using : Checking : if(@healtimer > gettimetick(2)) goto L_Time; At heal : set @healtimer, gettimetick(2) + 20 Does soemeone has a solution ? Edited August 1, 2012 by Auryn Quote Link to comment Share on other sites More sharing options...
Euphy Posted August 1, 2012 Group: Members Topic Count: 72 Topics Per Day: 0.02 Content Count: 2997 Reputation: 1132 Joined: 05/27/12 Last Seen: June 1, 2017 Share Posted August 1, 2012 Use a permanent variable instead of a temporary one, i.e. healtimer instead of @healtimer. The reason most people use temporary timers is because (1) it's usually a short period of time so relogs wouldn't matter, and (2) there's a limit to how many permanent character variables you can set. To work around (2), you can have the NPC delete the variable after healing: // heal, etc. set healtimer,0; Quote Link to comment Share on other sites More sharing options...
Auryn Posted August 1, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 147 Reputation: 1 Joined: 01/26/12 Last Seen: April 27, 2018 Author Share Posted August 1, 2012 Great, thanks. Quote Link to comment Share on other sites More sharing options...
Question
Auryn
I made a healer with time lapse before to be able to heal again.
The problem is that one of em' discovered that once he is got healed, he just has to log off and log back on to bypass the countting and heal again.
Fore exemple, for a player with a base level inferior of 13, i'm using :
Checking :
At heal :
Does soemeone has a solution ?
Edited by AurynLink to comment
Share on other sites
2 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.