From d5e9d1ecbee0f7540acbe4343bd68e6482e8394a Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 14 Apr 2016 11:08:39 -0400 Subject: implement SMSG_SCRIPT_MESSAGE --- tools/protocol.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tools/protocol.py') diff --git a/tools/protocol.py b/tools/protocol.py index 5d27f0d..800c3ec 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -4761,6 +4761,24 @@ def build_context(): Change npc title ''', ) + map_user.s(0x0229, 'script message', + define='SMSG_SCRIPT_MESSAGE', + head=[ + at(0, u16, 'packet id'), + at(2, u16, 'packet length'), + at(4, u8, 'message type'), + ], + head_size=5, + repeat=[ + at(0, u8, 'c'), + ], + repeat_size=1, + pre=[NOTHING], + post=[PRETTY], + desc=''' + Send server message + ''', + ) # TOC_LOGINCHAR # login char -- cgit v1.2.3-60-g2f50