diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-15 11:42:02 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-15 11:42:02 -0400 |
commit | c3e06ffe6437d27a2a7c6ddb2dc487ff2f007adf (patch) | |
tree | b54e989cae9eaee8f3e7695300bd7e75d90b0d6b /tools | |
parent | f54f335c541ecb61f9e9888848eb21b8d43877b7 (diff) | |
parent | d3c96421dd371db34119de1437fe7f25a05dc4bc (diff) | |
download | tmwa-c3e06ffe6437d27a2a7c6ddb2dc487ff2f007adf.tar.gz tmwa-c3e06ffe6437d27a2a7c6ddb2dc487ff2f007adf.tar.bz2 tmwa-c3e06ffe6437d27a2a7c6ddb2dc487ff2f007adf.tar.xz tmwa-c3e06ffe6437d27a2a7c6ddb2dc487ff2f007adf.zip |
Merge pull request #207 from mekolat/scriptmsg
implement SMSG_SCRIPT_MESSAGE, SMSG_PLAYER_CLIENT_COMMAND
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/protocol.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/protocol.py b/tools/protocol.py index 5d27f0d..0adc95a 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -4761,6 +4761,41 @@ 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 + ''', + ) + map_user.s(0x0230, 'remote client command', + define='SMSG_PLAYER_CLIENT_COMMAND', + head=[ + at(0, u16, 'packet id'), + at(2, u16, 'packet length'), + ], + head_size=4, + repeat=[ + at(0, u8, 'c'), + ], + repeat_size=1, + pre=[NOTHING], + post=[PRETTY], + desc=''' + Execute a client command remotely + ''', + ) # TOC_LOGINCHAR # login char |