summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-06-19 21:53:45 -0500
committerWushin <pasekei@gmail.com>2015-06-19 21:53:45 -0500
commit8b4faba9b55ea4a0f3c8f6e5cbcd5fcff3509247 (patch)
treeb80c2b15c93e5c705e1b75e51fdddaeb7b3e94c0 /tools
parent6a0c11388cb15cc94bffacaedce8b10f3ac2b6f8 (diff)
parent9cca1e384248bc6f043248066f5bcca284cc5403 (diff)
downloadtmwa-8b4faba9b55ea4a0f3c8f6e5cbcd5fcff3509247.tar.gz
tmwa-8b4faba9b55ea4a0f3c8f6e5cbcd5fcff3509247.tar.bz2
tmwa-8b4faba9b55ea4a0f3c8f6e5cbcd5fcff3509247.tar.xz
tmwa-8b4faba9b55ea4a0f3c8f6e5cbcd5fcff3509247.zip
Merge pull request #110 from mekolat/title
implement set title packet
Diffstat (limited to 'tools')
-rwxr-xr-xtools/protocol.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/tools/protocol.py b/tools/protocol.py
index 86b625f..eae8bb2 100755
--- a/tools/protocol.py
+++ b/tools/protocol.py
@@ -4679,7 +4679,25 @@ def build_context():
)
# 0x0226 define='SMSG_MAP_MASK',
# 0x0227 define='SMSG_MAP_MUSIC',
- # 0x0228 define='SMSG_NPC_CHANGETITLE',
+ map_user.s(0x0228, 'npc change title',
+ define='SMSG_NPC_CHANGETITLE',
+ head=[
+ at(0, u16, 'packet id'),
+ at(2, u16, 'packet length'),
+ at(4, block_id, 'npc id'),
+ at(8, u16, 'string length'),
+ ],
+ head_size=10,
+ repeat=[
+ at(0, u8, 'c'),
+ ],
+ repeat_size=1,
+ pre=[NOTHING],
+ post=[PRETTY],
+ desc='''
+ Change npc title
+ ''',
+ )
# TOC_LOGINCHAR
# login char