diff --git a/common/patches/laurion.cpp b/common/patches/laurion.cpp index a2256158f..491396b7d 100644 --- a/common/patches/laurion.cpp +++ b/common/patches/laurion.cpp @@ -3076,6 +3076,16 @@ namespace Laurion FINISH_ENCODE(); } + ENCODE(OP_MobHealth) { + ENCODE_LENGTH_EXACT(SpawnHPUpdate_Struct2); + SETUP_DIRECT_ENCODE(SpawnHPUpdate_Struct2, structs::MobHealth_Struct); + + OUT(spawn_id); + OUT(hp); + + FINISH_ENCODE(); + } + // DECODE methods DECODE(OP_EnterWorld) diff --git a/common/patches/laurion_ops.h b/common/patches/laurion_ops.h index 39319461b..b2d8d8f30 100644 --- a/common/patches/laurion_ops.h +++ b/common/patches/laurion_ops.h @@ -40,6 +40,7 @@ E(OP_BuffCreate) E(OP_Buff) E(OP_ManaChange) E(OP_Action) +E(OP_MobHealth) //list of packets we need to decode on the way in: D(OP_EnterWorld) D(OP_ZoneEntry) diff --git a/common/patches/laurion_structs.h b/common/patches/laurion_structs.h index de05afdb9..294c5aace 100644 --- a/common/patches/laurion_structs.h +++ b/common/patches/laurion_structs.h @@ -733,6 +733,12 @@ namespace Laurion { //live however has a lot more info here depending on packet type }; + struct MobHealth_Struct + { + /*01*/ int16 spawn_id; + /*00*/ uint32 hp; + }; + #pragma pack() }; //end namespace structs