From 6cd9fbf483eedbdc782688c3a0507e23930c4d5b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Sep 2014 23:54:04 +0300 Subject: eathena: add packet SMSG_PLAYER_HP 0x080e. --- src/net/eathena/beinghandler.cpp | 3 +++ src/net/eathena/packets.h | 2 +- src/net/eathena/protocol.h | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/net/eathena/beinghandler.cpp b/src/net/eathena/beinghandler.cpp index bff076502..7104298a8 100644 --- a/src/net/eathena/beinghandler.cpp +++ b/src/net/eathena/beinghandler.cpp @@ -94,6 +94,8 @@ BeingHandler::BeingHandler(const bool enableSync) : SMSG_PVP_MAP_MODE, SMSG_PVP_SET, SMSG_MAP_TYPE_PROPERTY2, + SMSG_MONSTER_HP, + SMSG_PLAYER_HP, 0 }; handledMessages = _messages; @@ -224,6 +226,7 @@ void BeingHandler::handleMessage(Net::MessageIn &msg) break; case SMSG_MONSTER_HP: + case SMSG_PLAYER_HP: processMonsterHp(msg); break; diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 64b0ff4c5..eb16509cf 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -215,7 +215,7 @@ int16_t packet_lengths[] = //0 1 2 3 4 5 6 7 8 9 a b c d e f //0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 // #0x0800 - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 26, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index b8eda0e78..396b30214 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -195,6 +195,7 @@ #define SMSG_MVP 0x010c #define SMSG_MONSTER_HP 0x0977 +#define SMSG_PLAYER_HP 0x080e /********************************** * Packets from client to server * -- cgit v1.2.3-60-g2f50