Jump to content
Sign in to follow this  
Poison

MoveNPC Script Command (Move Map to Map)

Recommended Posts

How about making this script command move npcs map to map? What do you guys think?

 

*movenpc "<NPC name>",<x>,<y>{,<dir>},{<map>};

 

 

 

*movenpc "<NPC name>",<x>,<y>{,<dir>};

This command looks like the NPCWalkToxy function,but is a little different.

While NPCWalkToXY just makes the NPC 'walk' to the coordinates given
(which sometimes gives problems if the path isn't a straight line without
objects), this command just moves the NPC. It basically warps out and in
on the current and given spot. Direction can be used to change the NPC's
facing direction.

Example:

// This will move Bugga from to the coordinates 100,20 (if those
// coordinates are legit).
moveNPC "Bugga",100,20;
Edited by Poison

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
Reply to this topic...

×   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...
Sign in to follow this  

×
×
  • Create New...

Important Information

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