From c92bd42d51d305d64519d16d3f83c5412c34fe2e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 3 Sep 2014 01:41:55 +0300 Subject: eathena: partially impliment packet SMSG_PLAYER_GET_EXP 0x07f6. --- src/net/eathena/playerhandler.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/net/eathena/playerhandler.cpp') diff --git a/src/net/eathena/playerhandler.cpp b/src/net/eathena/playerhandler.cpp index e830db43c..16f313531 100644 --- a/src/net/eathena/playerhandler.cpp +++ b/src/net/eathena/playerhandler.cpp @@ -22,6 +22,8 @@ #include "net/eathena/playerhandler.h" +#include "actormanager.h" + #include "being/attributes.h" #include "being/localplayer.h" @@ -58,6 +60,7 @@ PlayerHandler::PlayerHandler() : SMSG_PLAYER_ARROW_MESSAGE, SMSG_PLAYER_SHORTCUTS, SMSG_PLAYER_SHOW_EQUIP, + SMSG_PLAYER_GET_EXP, 0 }; handledMessages = _messages; @@ -113,6 +116,10 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) processPlayerShowEquip(msg); break; + case SMSG_PLAYER_GET_EXP: + processPlayerGetExp(msg); + break; + default: break; } @@ -322,4 +329,14 @@ void PlayerHandler::processPlayerStatUpdate5(Net::MessageIn &msg) BLOCK_END("PlayerHandler::processPlayerStatUpdate5") } +void PlayerHandler::processPlayerGetExp(Net::MessageIn &msg) +{ + const int id = msg.readInt32("player id"); + const int exp = msg.readInt32("exp amount"); + const int type = msg.readInt16("exp type"); + const int isQuest = msg.readInt16("is from quest"); +// Being *dstBeing = actorManager->findBeing(id); + // need show particle depend on isQuest flag, for now ignored +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50