diff options
author | mekolat <mekolat@users.noreply.github.com> | 2015-05-22 09:57:15 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2015-06-16 16:13:41 -0400 |
commit | 9cca1e384248bc6f043248066f5bcca284cc5403 (patch) | |
tree | af34cf882bce2622bc71cf93b241d8013a34cc43 /tools/protocol.py | |
parent | 182e82a79c0455b6e6734b1cb6d83cfcd7f28d61 (diff) | |
download | tmwa-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-x | tools/protocol.py | 20 |
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 |