From 7c46e351a2f2cf99e9d26ee16729695530427083 Mon Sep 17 00:00:00 2001 From: Rawng Date: Sun, 14 Sep 2014 19:42:24 -0400 Subject: Send mob max_hp and hp to client in packet 0x007b --- src/map/clif.cpp | 2 ++ tools/protocol.py | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 3b6c772..b47bf28 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -873,6 +873,8 @@ void clif_mob007b(dumb_ptr md, Buffer& buf) fixed_7b.mob_class = md->mob_class; // snip: stuff for monsters disguised as PCs fixed_7b.tick_and_maybe_part_of_guild_emblem = gettick(); + fixed_7b.max_hp = md->stats[mob_stat::MAX_HP]; + fixed_7b.hp = md->hp; fixed_7b.pos2.x0 = md->bl_x; fixed_7b.pos2.y0 = md->bl_y; diff --git a/tools/protocol.py b/tools/protocol.py index 91dbc81..3927b0c 100755 --- a/tools/protocol.py +++ b/tools/protocol.py @@ -1564,10 +1564,8 @@ def main(): at(30, u16, 'unused head mid or maybe part of guild id'), at(32, u16, 'unused hair color'), at(34, u16, 'unused clothes color'), - at(36, u16, 'unused 1'), - at(38, u16, 'unused 2'), - at(40, u16, 'unused 3'), - at(42, u16, 'unused 4'), + at(36, i32, 'max_hp'), + at(40, i32, 'hp'), at(44, u16, 'unused 5'), at(46, u16, 'unused zero 1'), at(48, u8, 'unused zero 2'), -- cgit v1.2.3-60-g2f50