Jump to content
  • 0

NPC Delay


Nokia

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

How can i add an delay for NPCs? Example the warper, i want to add an delay for 1 minute, the player cant warp again till the 1 minute is gone. would be nice if its playerbased and not an delay for the whole npc.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

if(gettimetick(2)-lastwarptime  < 60){
mes "please wait  1 minute";
close;
}
set  lastwarptime,gettimetick(2);

Edited by QQfoolsorellina
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...