From 8cf94d0d5bf546255926b4a563a974a9079f15e2 Mon Sep 17 00:00:00 2001 From: mekolat Date: Fri, 22 May 2015 11:09:18 -0400 Subject: implement change music packet --- tools/protocol.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'tools') 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=[ -- cgit v1.2.3-60-g2f50