diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-05 17:46:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-05 20:56:16 +0300 |
commit | 12273c046fff6b2f778ef4c3cc0d8014d86233e5 (patch) | |
tree | e4dd0ca3b42c31883709dfcf0e85823e1f22479e /src/net/eathena/npcrecv.cpp | |
parent | 8db56130426f2c61e10219eddb67ee86bea82961 (diff) | |
download | manaverse-12273c046fff6b2f778ef4c3cc0d8014d86233e5.tar.gz manaverse-12273c046fff6b2f778ef4c3cc0d8014d86233e5.tar.bz2 manaverse-12273c046fff6b2f778ef4c3cc0d8014d86233e5.tar.xz manaverse-12273c046fff6b2f778ef4c3cc0d8014d86233e5.zip |
Impliment packet SMSG_NPC_CUTIN. Add support for cutins.
Diffstat (limited to 'src/net/eathena/npcrecv.cpp')
-rw-r--r-- | src/net/eathena/npcrecv.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
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) |