diff options
author | shennetsind <ind@henn.et> | 2014-03-14 14:32:07 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2014-03-14 14:32:07 -0300 |
commit | 95892027052d6123805a16e12dbd12ec44d3b85d (patch) | |
tree | 30c50151d6273f26feeb6153a66e4bb783b4ffc2 /doc | |
parent | 1007d606645c16d5246761976b7648809edb8b1d (diff) | |
download | hercules-95892027052d6123805a16e12dbd12ec44d3b85d.tar.gz hercules-95892027052d6123805a16e12dbd12ec44d3b85d.tar.bz2 hercules-95892027052d6123805a16e12dbd12ec44d3b85d.tar.xz hercules-95892027052d6123805a16e12dbd12ec44d3b85d.zip |
Follow up 1007d606645c16d5246761976b7648809edb8b1d
A bonus. Fixed unitwalk's non-x/y possibility, NPCs can now be set to chase players around for as long as they keep walking, which opens a number of possibilities e.g. help npc y get thru z.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/script_commands.txt | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt index ada57d783..dc09256c5 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -5926,12 +5926,11 @@ and will return the following values: --------------------------------------- *unitwalk <GID>,<x>,<y>; -*unitwalk <GID>,<mapid>; +*unitwalk <GID>,<target_GID>; This is one command, but can be used in two ways. If only the first argument is given, the unit whose GID is given will start walking towards -the map with the given mapid (we believe these are the map-indexes found -in db/map_index.txt). +the target whose GID is given. When 2 arguments are passed, the given unit will walk to the given x,y coordinates on the map where the unit currently is. @@ -5941,9 +5940,8 @@ Examples: //Will move/walk the poring we made to the coordinates 150,150 unitwalk .GID,150,150; -//Will move the poring towards alberta (if my assumed map-indexes are -//correct). - unitwalk .GID,3; +//NPC will move towards the attached player. + unitwalk .GID,getcharid(3);//a player's GID is their account ID --------------------------------------- |