diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-03 21:03:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-03 21:03:25 +0300 |
commit | c15a34d8c660e121cbaa5911e0117e4e6a70ef4f (patch) | |
tree | 68f858a7b706ded3a403a5688e67a6d65a7b21de | |
parent | b8268b603895f2639292c8a8d8a79df676387588 (diff) | |
download | serverdata-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.txt | 5 | ||||
-rw-r--r-- | npc/test/npc4.txt | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/db/const.txt b/db/const.txt index 10d822d7..c60b567e 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 2461a601..09f85bb7 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, |