summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-03 21:03:25 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-03 21:03:25 +0300
commitc15a34d8c660e121cbaa5911e0117e4e6a70ef4f (patch)
tree68f858a7b706ded3a403a5688e67a6d65a7b21de
parentb8268b603895f2639292c8a8d8a79df676387588 (diff)
downloadserverdata-c15a34d8c660e121cbaa5911e0117e4e6a70ef4f.tar.gz
serverdata-c15a34d8c660e121cbaa5911e0117e4e6a70ef4f.tar.bz2
serverdata-c15a34d8c660e121cbaa5911e0117e4e6a70ef4f.tar.xz
serverdata-c15a34d8c660e121cbaa5911e0117e4e6a70ef4f.zip
Add walk mask constants and set walk mask in npc4.
-rw-r--r--db/const.txt5
-rw-r--r--npc/test/npc4.txt5
2 files changed, 8 insertions, 2 deletions
diff --git a/db/const.txt b/db/const.txt
index 10d822d73..c60b567e3 100644
--- a/db/const.txt
+++ b/db/const.txt
@@ -3445,3 +3445,8 @@ NPC_ARTIS_DOOR_WOOD 908
NPC_TREE_LEAF 909
NPC_NO_SPRITE 999
NPC_HIDDEN 32767
+
+// walk masks
+WALK_DEFAULT 0
+WALK_WALL 1
+WALK_WATER 2
diff --git a/npc/test/npc4.txt b/npc/test/npc4.txt
index 2461a6014..09f85bb72 100644
--- a/npc/test/npc4.txt
+++ b/npc/test/npc4.txt
@@ -16,17 +16,18 @@ OnTimer1000:
initnpctimer;
end;
OnInit:
+ .walkmask = WALK_WATER;
initpath "move", 20, 20,
"sit", 0, 0,
"dir", 6, 0,
"move", 25, 20,
"emote", 3, 0,
- "class", 104, 0,
+// "class", 104, 0,
"speed", 100, 0,
"wait", 2, 0,
"move", 22, 10,
"rmove", 3, 3,
- "class", 801, 0,
+// "class", 801, 0,
"speed", 200, 0,
"wait", 1, 0,
"warp", 22, 30,