summaryrefslogtreecommitdiff
path: root/src/net/eathena/playerrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-15 17:52:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-18 16:21:43 +0300
commite05956bcbefba4f846f90e7f5c9c05c4931b3a26 (patch)
tree8b917a476035db2b248c071baac87c521098a195 /src/net/eathena/playerrecv.cpp
parentf77c15f0dc1f441ebda122bc39c8e67b7452b968 (diff)
downloadplus-e05956bcbefba4f846f90e7f5c9c05c4931b3a26.tar.gz
plus-e05956bcbefba4f846f90e7f5c9c05c4931b3a26.tar.bz2
plus-e05956bcbefba4f846f90e7f5c9c05c4931b3a26.tar.xz
plus-e05956bcbefba4f846f90e7f5c9c05c4931b3a26.zip
Add packet SMSG_PLAYER_STAT_UPDATE_7 0x0acb.
Diffstat (limited to 'src/net/eathena/playerrecv.cpp')
-rw-r--r--src/net/eathena/playerrecv.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/playerrecv.cpp b/src/net/eathena/playerrecv.cpp
index a630bf9b7..03290d48d 100644
--- a/src/net/eathena/playerrecv.cpp
+++ b/src/net/eathena/playerrecv.cpp
@@ -31,6 +31,8 @@
#include "being/localplayer.h"
#include "being/playerinfo.h"
+#include "const/net/nostat.h"
+
#include "enums/resources/notifytypes.h"
#include "gui/onlineplayer.h"
@@ -42,6 +44,7 @@
#include "net/eathena/sp.h"
#include "net/messagein.h"
+#include "net/playerhandler.h"
#include "utils/gettext.h"
@@ -495,4 +498,13 @@ void PlayerRecv::processPlayerAttrs(Net::MessageIn &msg)
localPlayer->setGM(false);
}
+void PlayerRecv::processPlayerStatUpdate7(Net::MessageIn &msg)
+{
+ BLOCK_START("PlayerRecv::processPlayerStatUpdate7")
+ const int type = msg.readInt16("type");
+ const int64_t value = msg.readInt64("value");
+ playerHandler->setStat(msg, type, value, NoStat, Notify_true);
+ BLOCK_END("PlayerRecv::processPlayerStatUpdate7")
+}
+
} // namespace EAthena