summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-14 23:32:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-14 23:32:08 +0300
commit96fec2bda470785d384ad14274ca9c6aefda0ae8 (patch)
tree628d114892df3097ea8e04f5ec017b3addc5c897 /src/net/eathena/playerhandler.cpp
parent6325c78e27607afe99ecc3c3d0cac154ccfd696b (diff)
downloadplus-96fec2bda470785d384ad14274ca9c6aefda0ae8.tar.gz
plus-96fec2bda470785d384ad14274ca9c6aefda0ae8.tar.bz2
plus-96fec2bda470785d384ad14274ca9c6aefda0ae8.tar.xz
plus-96fec2bda470785d384ad14274ca9c6aefda0ae8.zip
eathena: add partial support for packet SMSG_PVP_INFO 0x0210.
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp14
1 files changed, 14 insertions, 0 deletions
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