diff options
author | Wushin <pasekei@gmail.com> | 2015-06-20 17:51:22 -0500 |
---|---|---|
committer | Wushin <pasekei@gmail.com> | 2015-06-20 17:51:22 -0500 |
commit | c399d19bda962e5dc2bf79998629d3ec279a9cd1 (patch) | |
tree | e428ef99dff34cfce275038af64eb367a489dbed /tools/protocol.py | |
parent | 4835eae62fe129ff6ee36d82b56e07913ca19f81 (diff) | |
parent | 08809eeb1db043ac72ca8a64f74e9f5ed6a54631 (diff) | |
download | tmwa-c399d19bda962e5dc2bf79998629d3ec279a9cd1.tar.gz tmwa-c399d19bda962e5dc2bf79998629d3ec279a9cd1.tar.bz2 tmwa-c399d19bda962e5dc2bf79998629d3ec279a9cd1.tar.xz tmwa-c399d19bda962e5dc2bf79998629d3ec279a9cd1.zip |
Merge pull request #98 from mekolat/command
npc actions
Diffstat (limited to 'tools/protocol.py')
-rwxr-xr-x | tools/protocol.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/protocol.py b/tools/protocol.py index e3353de..f7be6e5 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -4631,7 +4631,7 @@ def build_context(): at(0, u16, 'packet id'), at(2, block_id, 'npc id'), at(6, u16, 'command'), - at(8, block_id, 'id'), + at(8, u32, 'id'), at(12, u16, 'x'), at(14, u16, 'y'), ], @@ -4703,7 +4703,20 @@ def build_context(): Send mob walkpath data to client ''', ) - # 0x0226 define='SMSG_MAP_MASK', + map_user.s(0x0226, 'send map mask', + define='SMSG_MAP_MASK', + fixed=[ + at(0, u16, 'packet id'), + at(2, u32, 'mask'), + at(6, u32, 'unused'), + ], + fixed_size=10, + pre=[NOTHING], + post=[PRETTY], + desc=''' + Set map mask + ''', + ) map_user.s(0x0227, 'change map music', define='SMSG_MAP_MUSIC', head=[ |