summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/playerhandler.cpp')
-rw-r--r--src/net/eathena/playerhandler.cpp17
1 files changed, 17 insertions, 0 deletions
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