diff options
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=[ |