MoveNPC Script Command (Move Map to Map)

Poison

New member
Messages
45
Points
0
Github
pois8n
Emulator
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;
 
Last edited by a moderator:
you can use 

Code:
*unitwarp <GID>,<Mapname>,<x>,<y>;
 
Back
Top