From 9cca1e384248bc6f043248066f5bcca284cc5403 Mon Sep 17 00:00:00 2001
From: mekolat <mekolat@users.noreply.github.com>
Date: Fri, 22 May 2015 09:57:15 -0400
Subject: implement set title packet

---
 tools/protocol.py | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

(limited to 'tools')

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
-- 
cgit v1.2.3-70-g09d2