summaryrefslogtreecommitdiff
path: root/npc/functions/npcmove.txt
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-05 01:06:21 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-05 01:06:21 +0300
commita32d82edf79e293b09874e4cd2bdcebbc5daf9e2 (patch)
treed0a483f4dfb0e69c49ba220a2c7b16baa93bcef5 /npc/functions/npcmove.txt
parent45eeb456802331db4756fe5acf4a1cb13477fcec (diff)
downloadserverdata-a32d82edf79e293b09874e4cd2bdcebbc5daf9e2.tar.gz
serverdata-a32d82edf79e293b09874e4cd2bdcebbc5daf9e2.tar.bz2
serverdata-a32d82edf79e293b09874e4cd2bdcebbc5daf9e2.tar.xz
serverdata-a32d82edf79e293b09874e4cd2bdcebbc5daf9e2.zip
Into npc move program add command "speed"
Diffstat (limited to 'npc/functions/npcmove.txt')
-rw-r--r--npc/functions/npcmove.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/npcmove.txt b/npc/functions/npcmove.txt
index 346549fc..907c2098 100644
--- a/npc/functions/npcmove.txt
+++ b/npc/functions/npcmove.txt
@@ -69,6 +69,11 @@ function script domoveaction {
getmapxy(.@mapName$, .@x, .@y, 1);
npcwalkto .@x + getvariableofnpc(.movepathx[.@pos], strnpcinfo(3)), .@y + getvariableofnpc(.movepathy[.@pos], strnpcinfo(3));
}
+ else if (.@cmd$ == "speed")
+ {
+ npcspeed getvariableofnpc(.movepathx[.@pos], strnpcinfo(3));
+ return 2;
+ }
return 1;
}