summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-12-18 13:57:40 -0500
committergumi <git@gumi.ca>2018-12-18 13:58:40 -0500
commitabf1b2697df06e95291014f7637cc0df6f5a10b1 (patch)
tree20fc26f51d491766691c27f6f22669f3c89166ef /tools
parent07ae3cf97e9f1e86ac792cc1140e0cae051625fc (diff)
downloadtmwa-abf1b2697df06e95291014f7637cc0df6f5a10b1.tar.gz
tmwa-abf1b2697df06e95291014f7637cc0df6f5a10b1.tar.bz2
tmwa-abf1b2697df06e95291014f7637cc0df6f5a10b1.tar.xz
tmwa-abf1b2697df06e95291014f7637cc0df6f5a10b1.zip
add player heal packetsv18.12.18
Diffstat (limited to 'tools')
-rwxr-xr-xtools/protocol.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/protocol.py b/tools/protocol.py
index 3a0e25e..12f8ead 100755
--- a/tools/protocol.py
+++ b/tools/protocol.py
@@ -4849,6 +4849,35 @@ def build_context():
Set updated collision for a square area
''',
)
+ map_user.s(0x0232, 'send hp update',
+ define='SMSG_PLAYER_HP',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, account_id, 'account id'),
+ at(6, u32, 'hp'),
+ ],
+ fixed_size=10,
+ pre=[NOTHING],
+ post=[PRETTY],
+ desc='''
+ Send part of hp info
+ ''',
+ )
+ map_user.s(0x0233, 'send full hp',
+ define='SMSG_PLAYER_HP_FULL',
+ fixed=[
+ at(0, u16, 'packet id'),
+ at(2, account_id, 'account id'),
+ at(6, u32, 'hp'),
+ at(10, u32, 'max hp'),
+ ],
+ fixed_size=14,
+ pre=[NOTHING],
+ post=[PRETTY],
+ desc='''
+ Send both hp and max hp
+ ''',
+ )
# TOC_LOGINCHAR