From 042bbddb13934321dd1d44373eb1084732e81bee Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Mar 2015 22:08:05 +0300 Subject: eathena: add partial support for packet SMSG_INSTANCE_CREATE 0x02cc. --- src/net/eathena/maphandler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/net/eathena/maphandler.cpp') diff --git a/src/net/eathena/maphandler.cpp b/src/net/eathena/maphandler.cpp index 6ac2e8392..dfd11c53c 100644 --- a/src/net/eathena/maphandler.cpp +++ b/src/net/eathena/maphandler.cpp @@ -40,6 +40,7 @@ MapHandler::MapHandler() : static const uint16_t _messages[] = { SMSG_INSTANCE_START, + SMSG_INSTANCE_CREATE, 0 }; handledMessages = _messages; @@ -54,6 +55,10 @@ void MapHandler::handleMessage(Net::MessageIn &msg) processInstanceStart(msg); break; + case SMSG_INSTANCE_CREATE: + processInstanceCreate(msg); + break; + default: break; } @@ -61,8 +66,15 @@ void MapHandler::handleMessage(Net::MessageIn &msg) void MapHandler::processInstanceStart(Net::MessageIn &msg) { + UNIMPLIMENTEDPACKET; msg.readString(61, "instance name"); msg.readInt16("flag"); } +void MapHandler::processInstanceCreate(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt16("flag"); +} + } // namespace EAthena -- cgit v1.2.3-70-g09d2