Jump to content
  • 0

How to write script Npc Walking in an Instance?


klitidej

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  01/02/16
  • Last Seen:  

I use this script, npc show up but it's not walking.
Thank you for your answer.

1@test,151,112,4    script    WalkingNPC::walking    84,{
;
 
OnInit:
startnpctimer;
npcspeed 200;
end;
 
OnTimer1000:
npcwalkto 140, 116;
end;
 
OnTimer5000:
stopnpctimer;
initnpctimer;
end;
}

 

Edited by Mael
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  105
  • Topics Per Day:  0.02
  • Content Count:  446
  • Reputation:   229
  • Joined:  03/20/12
  • Last Seen:  

Use `OnInstanceInit` instead of `OnInit`

  • Upvote 1
  • Like 1
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...