From abf1b2697df06e95291014f7637cc0df6f5a10b1 Mon Sep 17 00:00:00 2001 From: gumi Date: Tue, 18 Dec 2018 13:57:40 -0500 Subject: add player heal packets --- tools/protocol.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'tools') 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 -- cgit v1.2.3-60-g2f50