Jump to content
  • 0

Question


Newbie Scripter

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  21
  • Reputation:   0
  • Joined:  11/25/13
  • Last Seen:  

how do i make an npc move to random towns every 2 hours? can anyone give me a sample? please make it eathena compatible thanks!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  104
  • Reputation:   6
  • Joined:  01/23/14
  • Last Seen:  

Go check how the guard patrol the map... search at trunk/npc..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Basically, you can use the event OnHourXX command, then combine it with the 'disable/enablenpc' function.

 

Example..

OnHour10:
disablenpc "MyNPC#prontera";
enablenpc "MyNPC#payon";
end;
 
 
OnHour12:
disablenpc "MyNPC#payon";
enablenpc "MyNPC#alberta";
end;
Edited by sandbox
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...