From 96fec2bda470785d384ad14274ca9c6aefda0ae8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Sep 2014 23:32:08 +0300 Subject: eathena: add partial support for packet SMSG_PVP_INFO 0x0210. --- src/net/eathena/playerhandler.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/net/eathena/playerhandler.cpp') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index 62eaef408..963a29c52 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -59,6 +59,7 @@ PlayerHandler::PlayerHandler() : SMSG_PLAYER_SHORTCUTS, SMSG_PLAYER_SHOW_EQUIP, SMSG_PLAYER_GET_EXP, + SMSG_PVP_INFO, 0 }; handledMessages = _messages; @@ -118,6 +119,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPlayerGetExp(msg); break; + case SMSG_PVP_INFO: + processPvpInfo(msg); + break; + default: break; } @@ -401,4 +406,13 @@ void PlayerHandler::requestPvpInfo() const outMsg.writeInt32(0, "account id"); } +void PlayerHandler::processPvpInfo(Net::MessageIn &msg) +{ + msg.readInt32("char id"); + msg.readInt32("account id"); + msg.readInt32("pvp won"); + msg.readInt32("pvp lost"); + msg.readInt32("pvp point"); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50