From 7c1d56ae8932e80e152389c9666bc0a1c0ab5ed8 Mon Sep 17 00:00:00 2001 From: gumi Date: Thu, 13 Dec 2018 17:10:17 -0500 Subject: add support for sending player HP for protocol >= 9 --- tools/protocol.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tools') diff --git a/tools/protocol.py b/tools/protocol.py index 9820056..3a0e25e 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -4438,9 +4438,9 @@ def build_context(): at(30, u16, 'clothes color'), at(32, dir, 'head dir'), at(33, u8, 'unused2'), - at(34, u32, 'guild id'), - at(38, u16, 'guild emblem id'), - at(40, u16, 'manner'), + at(34, u32, 'hp'), + at(38, u16, 'part of max hp'), + at(40, u16, 'manner or part of max hp'), at(42, opt3, 'opt3'), at(44, u8, 'karma'), at(45, sex, 'sex'), @@ -4480,9 +4480,9 @@ def build_context(): at(30, u16, 'clothes color'), at(32, dir, 'head dir'), at(33, u8, 'unused2'), - at(34, u32, 'guild id'), - at(38, u16, 'guild emblem id'), - at(40, u16, 'manner'), + at(34, u32, 'hp'), + at(38, u16, 'part of max hp'), + at(40, u16, 'manner or part of max hp'), at(42, opt3, 'opt3'), at(44, u8, 'karma'), at(45, sex, 'sex'), @@ -4522,9 +4522,9 @@ def build_context(): at(34, u16, 'clothes color'), at(36, dir, 'head dir'), at(37, u8, 'unused2'), - at(38, u32, 'guild id'), - at(42, u16, 'guild emblem id'), - at(44, u16, 'manner'), + at(38, u32, 'hp'), + at(42, u16, 'part of max hp'), + at(44, u16, 'manner or part of max hp'), at(46, opt3, 'opt3'), at(48, u8, 'karma'), at(49, sex, 'sex'), -- cgit v1.2.3-60-g2f50