diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-17 20:19:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-17 20:19:38 +0300 |
commit | add9701f5d104cc130e6589ed211f1beb7966052 (patch) | |
tree | 6f32366ca008708220ddaf97f92660860cd503cd /src/net/eathena/playerhandler.cpp | |
parent | 9c50afdf192d9407eb72e3fdcd1844f9b5ae9885 (diff) | |
download | manaverse-add9701f5d104cc130e6589ed211f1beb7966052.tar.gz manaverse-add9701f5d104cc130e6589ed211f1beb7966052.tar.bz2 manaverse-add9701f5d104cc130e6589ed211f1beb7966052.tar.xz manaverse-add9701f5d104cc130e6589ed211f1beb7966052.zip |
eathena: add partial support for packet SMSG_PLAYER_HEAL 0x013d.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r-- | src/net/eathena/playerhandler.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index fd17105c9..0a75e7066 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -60,6 +60,7 @@ PlayerHandler::PlayerHandler() : SMSG_PLAYER_SHOW_EQUIP, SMSG_PLAYER_GET_EXP, SMSG_PVP_INFO, + SMSG_PLAYER_HEAL, 0 }; handledMessages = _messages; @@ -123,6 +124,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPvpInfo(msg); break; + case SMSG_PLAYER_HEAL: + processPlayerHeal(msg); + break; + default: break; } @@ -424,4 +429,13 @@ void PlayerHandler::setViewEquipment(const bool allow) const outMsg.writeInt32(allow ? 1 : 0); } +void PlayerHandler::processPlayerHeal(Net::MessageIn &msg) +{ + // +++ probably need show effect or adjust hp/sp? + // 5 - hp + // 7 - sp + msg.readInt16("var id"); + msg.readInt16("value"); +} + } // namespace EAthena |