diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 22:08:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 22:08:05 +0300 |
commit | 042bbddb13934321dd1d44373eb1084732e81bee (patch) | |
tree | 8bbe1fb3a8c3cc56aec559d53faa278645a5a7ab /src/net/eathena | |
parent | d559a259e27a6011ab1d608a45443c8c9d310c4f (diff) | |
download | manaplus-042bbddb13934321dd1d44373eb1084732e81bee.tar.gz manaplus-042bbddb13934321dd1d44373eb1084732e81bee.tar.bz2 manaplus-042bbddb13934321dd1d44373eb1084732e81bee.tar.xz manaplus-042bbddb13934321dd1d44373eb1084732e81bee.zip |
eathena: add partial support for packet SMSG_INSTANCE_CREATE 0x02cc.
Diffstat (limited to 'src/net/eathena')
-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 * |