summaryrefslogtreecommitdiff
path: root/src/net/eathena/npcrecv.cpp
diff options
context:
space:
mode:
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