summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-03 01:41:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:56 +0300
commitc92bd42d51d305d64519d16d3f83c5412c34fe2e (patch)
tree33c7f21d52702663c4527814f5162ae8e0db1b7b /src/net/eathena/playerhandler.cpp
parent6c4ea4c75fb64a4594503e46d1a3238860c845c9 (diff)
downloadmanaplus-c92bd42d51d305d64519d16d3f83c5412c34fe2e.tar.gz
manaplus-c92bd42d51d305d64519d16d3f83c5412c34fe2e.tar.bz2
manaplus-c92bd42d51d305d64519d16d3f83c5412c34fe2e.tar.xz
manaplus-c92bd42d51d305d64519d16d3f83c5412c34fe2e.zip
eathena: partially impliment packet SMSG_PLAYER_GET_EXP 0x07f6.
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