diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/maphandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/maphandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packets.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
4 files changed, 16 insertions, 1 deletions
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 diff --git a/src/net/eathena/maphandler.h b/src/net/eathena/maphandler.h index 5d8985db5..5e60a5527 100644 --- a/src/net/eathena/maphandler.h +++ b/src/net/eathena/maphandler.h @@ -40,6 +40,8 @@ class MapHandler final : public MessageHandler, public Net::MapHandler protected: void processInstanceStart(Net::MessageIn &msg); + + void processInstanceCreate(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 343867ce4..b3512bf82 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -98,7 +98,7 @@ int16_t packet_lengths[] = 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, -1, 107, 6, -1, 0, 7, 22, 191, 0, 8, 0, 0, 0, 0, // #0x02C0 - 0, -1, 0, 0, 0, 30, 30, 0, 0, 3, 0, 65, 0, 0, 0, 0, + 0, -1, 0, 0, 0, 30, 30, 0, 0, 3, 0, 65, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 3180d45e2..847f7b67a 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -415,6 +415,7 @@ #define SMSG_CLASS_CHANGE 0x01b0 #define SMSG_INSTANCE_START 0x02cb +#define SMSG_INSTANCE_CREATE 0x02cc /********************************** * Packets from client to server * |