summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-06-20 00:02:30 -0500
committerWushin <pasekei@gmail.com>2015-06-20 00:02:30 -0500
commit4835eae62fe129ff6ee36d82b56e07913ca19f81 (patch)
treeb536327c6f57c603619a05fe9b3d27b367776491 /tools
parentf008d4510f391aa802c31bc06b7cac2628a8b3fb (diff)
parent8cf94d0d5bf546255926b4a563a974a9079f15e2 (diff)
downloadtmwa-4835eae62fe129ff6ee36d82b56e07913ca19f81.tar.gz
tmwa-4835eae62fe129ff6ee36d82b56e07913ca19f81.tar.bz2
tmwa-4835eae62fe129ff6ee36d82b56e07913ca19f81.tar.xz
tmwa-4835eae62fe129ff6ee36d82b56e07913ca19f81.zip
Merge pull request #111 from mekolat/music
implement change music packet
Diffstat (limited to 'tools')
-rwxr-xr-xtools/protocol.py18
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=[