Jump to content
  • 0

Wandering NPC


hydro_ran

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  05/31/18
  • Last Seen:  

Hello, I created a hat maker NPC with a Piamette mob sprite. I wanted to see if it can move around the entire map like an actual mob wondering around. It'll be like playing Hide-and-Seek that you'll have to find the NPC first before starting a quest. lol. I run 3cEam by the way.

Doll_Maker.txt

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.01
  • Content Count:  208
  • Reputation:   60
  • Joined:  09/23/17
  • Last Seen:  

36 minutes ago, hydro_ran said:

Hello, I created a hat maker NPC with a Piamette mob sprite. I wanted to see if it can move around the entire map like an actual mob wondering around. It'll be like playing Hide-and-Seek that you'll have to find the NPC first before starting a quest. lol. I run 3cEam by the way.

Doll_Maker.txt

It's a bit harder to make an npc wander around; I've tried even just setting set paths and it failed quite a bit lol

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  05/31/18
  • Last Seen:  

Won't the npcmove script with a random coordinate work? like every 5 seconds or so, the script resets and sets a new coordiante for the npc to move something like,

 

OnInit:

goto move_npc;

 

move_npc:

OnTimer

"move to this coordinate"

sleep2 5000;

 

goto move_npc;

 

I tried it before but the npc moves like 1 step every 1 or so minutes.

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...