summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2016-04-15 11:42:02 -0400
committermekolat <mekolat@users.noreply.github.com>2016-04-15 11:42:02 -0400
commitc3e06ffe6437d27a2a7c6ddb2dc487ff2f007adf (patch)
treeb54e989cae9eaee8f3e7695300bd7e75d90b0d6b /tools
parentf54f335c541ecb61f9e9888848eb21b8d43877b7 (diff)
parentd3c96421dd371db34119de1437fe7f25a05dc4bc (diff)
downloadtmwa-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-xtools/protocol.py35
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