diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-25 23:35:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-25 23:35:00 +0300 |
commit | fbc3d6d0c4c8e6a56f07dc8b70882f975b1f7bf2 (patch) | |
tree | 682be024859b9d4707a532264b545bfdd7869aea | |
parent | cd76e166e06b65587c29b9664a763a59f2edd621 (diff) | |
download | serverdata-fbc3d6d0c4c8e6a56f07dc8b70882f975b1f7bf2.tar.gz serverdata-fbc3d6d0c4c8e6a56f07dc8b70882f975b1f7bf2.tar.bz2 serverdata-fbc3d6d0c4c8e6a56f07dc8b70882f975b1f7bf2.tar.xz serverdata-fbc3d6d0c4c8e6a56f07dc8b70882f975b1f7bf2.zip |
Add support for sit and stand command in npcmove engine.
-rw-r--r-- | npc/functions/npcmove.txt | 8 | ||||
-rw-r--r-- | npc/test/npc4.txt | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/npc/functions/npcmove.txt b/npc/functions/npcmove.txt index 907c2098..be2a20a9 100644 --- a/npc/functions/npcmove.txt +++ b/npc/functions/npcmove.txt @@ -74,6 +74,14 @@ function script domoveaction { npcspeed getvariableofnpc(.movepathx[.@pos], strnpcinfo(3)); return 2; } + else if (.@cmd$ == "sit") + { + npcsit; + } + else if (.@cmd$ == "stand") + { + npcstand; + } return 1; } diff --git a/npc/test/npc4.txt b/npc/test/npc4.txt index ba96b356..2461a601 100644 --- a/npc/test/npc4.txt +++ b/npc/test/npc4.txt @@ -17,6 +17,7 @@ OnTimer1000: end; OnInit: initpath "move", 20, 20, + "sit", 0, 0, "dir", 6, 0, "move", 25, 20, "emote", 3, 0, |