summaryrefslogtreecommitdiff
path: root/tools/protocol.py
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-22 09:57:15 -0400
committermekolat <mekolat@users.noreply.github.com>2015-06-16 16:13:41 -0400
commit9cca1e384248bc6f043248066f5bcca284cc5403 (patch)
treeaf34cf882bce2622bc71cf93b241d8013a34cc43 /tools/protocol.py
parent182e82a79c0455b6e6734b1cb6d83cfcd7f28d61 (diff)
downloadtmwa-9cca1e384248bc6f043248066f5bcca284cc5403.tar.gz
tmwa-9cca1e384248bc6f043248066f5bcca284cc5403.tar.bz2
tmwa-9cca1e384248bc6f043248066f5bcca284cc5403.tar.xz
tmwa-9cca1e384248bc6f043248066f5bcca284cc5403.zip
implement set title packet
Diffstat (limited to 'tools/protocol.py')
-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