diff options
author | Rawng <rawng.github@gmail.com> | 2014-09-14 19:42:24 -0400 |
---|---|---|
committer | Rawng <rawng.github@gmail.com> | 2014-09-14 19:42:24 -0400 |
commit | 7c46e351a2f2cf99e9d26ee16729695530427083 (patch) | |
tree | bf24e292fadc9384a3f0711465d0bd4bc7ed4c25 | |
parent | 14347ea3be189918fef03b766c97391b7ff33cdd (diff) | |
download | tmwa-7c46e351a2f2cf99e9d26ee16729695530427083.tar.gz tmwa-7c46e351a2f2cf99e9d26ee16729695530427083.tar.bz2 tmwa-7c46e351a2f2cf99e9d26ee16729695530427083.tar.xz tmwa-7c46e351a2f2cf99e9d26ee16729695530427083.zip |
Send mob max_hp and hp to client in packet 0x007b
-rw-r--r-- | src/map/clif.cpp | 2 | ||||
-rwxr-xr-x | 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<mob_data> 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'), |