From 12273c046fff6b2f778ef4c3cc0d8014d86233e5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 5 Feb 2016 17:46:02 +0300 Subject: Impliment packet SMSG_NPC_CUTIN. Add support for cutins. --- src/net/eathena/npcrecv.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/net') diff --git a/src/net/eathena/npcrecv.cpp b/src/net/eathena/npcrecv.cpp index 44b37cd50..617ceb9ba 100644 --- a/src/net/eathena/npcrecv.cpp +++ b/src/net/eathena/npcrecv.cpp @@ -24,6 +24,9 @@ #include "being/being.h" +#include "enums/cutin.h" + +#include "gui/windows/cutinwindow.h" #include "gui/windows/npcdialog.h" #include "net/messagein.h" @@ -39,10 +42,10 @@ namespace EAthena void NpcRecv::processNpcCutin(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; Ea::NpcRecv::mRequestLang = false; - msg.readString(64, "image name"); - msg.readUInt8("type"); + const std::string image = msg.readString(64, "image name"); + const CutIn cutin = fromInt(msg.readUInt8("type"), CutIn); + cutInWindow->show(image, cutin); } void NpcRecv::processNpcViewPoint(Net::MessageIn &msg) -- cgit v1.2.3-60-g2f50