summaryrefslogtreecommitdiff
path: root/src/net/eathena/npcrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-26 20:22:29 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-26 20:22:29 +0300
commitd3010ba93e3f30b4af2314434c21f114459b8ef7 (patch)
treeb9543202b56c239d48588fc4811bb0297a59a2a3 /src/net/eathena/npcrecv.cpp
parentb42dbb1ac4b05fc137ca3f18b4af43905ce5bcf0 (diff)
downloadManaVerse-d3010ba93e3f30b4af2314434c21f114459b8ef7.tar.gz
ManaVerse-d3010ba93e3f30b4af2314434c21f114459b8ef7.tar.bz2
ManaVerse-d3010ba93e3f30b4af2314434c21f114459b8ef7.tar.xz
ManaVerse-d3010ba93e3f30b4af2314434c21f114459b8ef7.zip
Add packet SMSG_NPC_SKIN 0x0b1c.
Diffstat (limited to 'src/net/eathena/npcrecv.cpp')
-rw-r--r--src/net/eathena/npcrecv.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/npcrecv.cpp b/src/net/eathena/npcrecv.cpp
index f6058e682..2c0fa6d2f 100644
--- a/src/net/eathena/npcrecv.cpp
+++ b/src/net/eathena/npcrecv.cpp
@@ -25,7 +25,10 @@
#include "being/being.h"
+#include "gui/windows/npcdialog.h"
+
#include "net/messagein.h"
+#include "net/npchandler.h"
#include "net/ea/npcrecv.h"
@@ -100,4 +103,13 @@ void NpcRecv::processProgressBarAbort(Net::MessageIn &msg)
UNIMPLIMENTEDPACKET;
}
+void NpcRecv::processNpcSkin(Net::MessageIn &msg)
+{
+ const int len = msg.readInt16("len");
+ npcHandler->getNpc(msg, NpcAction::Other);
+ const std::string skin = msg.readString(len - 8, "skin");
+ if (Ea::NpcRecv::mDialog)
+ Ea::NpcRecv::mDialog->setSkin(skin);
+}
+
} // namespace EAthena