Jump to content
  • 0

Gettimetick heal get bypassed from player by deco/reco.


Auryn

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.01
  • Content Count:  147
  • Reputation:   1
  • Joined:  01/26/12
  • Last Seen:  

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 by Auryn
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1132
  • Joined:  05/27/12
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.01
  • Content Count:  147
  • Reputation:   1
  • Joined:  01/26/12
  • Last Seen:  

Great, thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...