diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-05-22 11:09:18 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-06-19 23:08:38 -0400 |
commit | 8cf94d0d5bf546255926b4a563a974a9079f15e2 (patch) | |
tree | b536327c6f57c603619a05fe9b3d27b367776491 /tools | |
parent | f008d4510f391aa802c31bc06b7cac2628a8b3fb (diff) | |
download | tmwa-8cf94d0d5bf546255926b4a563a974a9079f15e2.tar.gz tmwa-8cf94d0d5bf546255926b4a563a974a9079f15e2.tar.bz2 tmwa-8cf94d0d5bf546255926b4a563a974a9079f15e2.tar.xz tmwa-8cf94d0d5bf546255926b4a563a974a9079f15e2.zip |
implement change music packet
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/protocol.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/tools/protocol.py b/tools/protocol.py index f6612f8..e3353de 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -4704,7 +4704,23 @@ def build_context(): ''', ) # 0x0226 define='SMSG_MAP_MASK', - # 0x0227 define='SMSG_MAP_MUSIC', + map_user.s(0x0227, 'change map music', + define='SMSG_MAP_MUSIC', + head=[ + at(0, u16, 'packet id'), + at(2, u16, 'packet length'), + ], + head_size=4, + repeat=[ + at(0, u8, 'c'), + ], + repeat_size=1, + pre=[NOTHING], + post=[PRETTY], + desc=''' + Change map music + ''', + ) map_user.s(0x0228, 'npc change title', define='SMSG_NPC_CHANGETITLE', head=[ |