Jump to content
  • 0
Tio Akima

npc walking (coordinates)

Question

as I can an NPC walk into town, passing specific coordinates for him ...
 
I want it to go from a point x to a point y ... and then disappears ...
and repeat this process several times ...

 

thanks

 

:D

Edited by Tio Akima

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
*npcspeed <speed value>;*npcwalkto <x>,<y>;*npcstop;These commands will make the NPC object in question move around the map. As they currently are, they are a bit buggy and are not useful for much more than making an NPC move randomly around the map.'npcspeed' will set the NPCs walking speed to a specified value. As in the @speed GM command, 200 is the slowest possible speed while 0 is the fastest possible (instant motion). 100 is the default character walking speed.'npcwalkto' will start the NPC sprite moving towards the specified coordinates on the same map as it is currently on. The script proceeds immediately after the NPC begins moving.'npcstop' will stop the motion.While in transit, the NPC will be clickable, but invoking it will cause it to stop moving, which will make it's coordinates different from what the client computed based on the speed and motion coordinates. The effect is rather unnerving.Only a few NPC sprites have walking animations, and those that do, do not get the animation invoked when moving the NPC, due to the problem in the NPC walking code, which looks a bit silly. You might have better success by defining a job-sprite based sprite id in 'db/mob_avail.txt' with this.

Share this post


Link to post
Share on other sites
  • 0

 

*npcspeed <speed value>;*npcwalkto <x>,<y>;*npcstop;These commands will make the NPC object in question move around the map. As they currently are, they are a bit buggy and are not useful for much more than making an NPC move randomly around the map.'npcspeed' will set the NPCs walking speed to a specified value. As in the @speed GM command, 200 is the slowest possible speed while 0 is the fastest possible (instant motion). 100 is the default character walking speed.'npcwalkto' will start the NPC sprite moving towards the specified coordinates on the same map as it is currently on. The script proceeds immediately after the NPC begins moving.'npcstop' will stop the motion.While in transit, the NPC will be clickable, but invoking it will cause it to stop moving, which will make it's coordinates different from what the client computed based on the speed and motion coordinates. The effect is rather unnerving.Only a few NPC sprites have walking animations, and those that do, do not get the animation invoked when moving the NPC, due to the problem in the NPC walking code, which looks a bit silly. You might have better success by defining a job-sprite based sprite id in 'db/mob_avail.txt' with this.

 

thanks :D

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.