diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-18 16:06:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-18 16:06:35 +0300 |
commit | 9cce5d5370ffc70df022ce43980a805499c7359d (patch) | |
tree | e2664411926305e81a5d9d37ff32d4de9b15d392 /src | |
parent | d18d370956e6f58970c7f828b79dbf86525949ea (diff) | |
download | manaverse-9cce5d5370ffc70df022ce43980a805499c7359d.tar.gz manaverse-9cce5d5370ffc70df022ce43980a805499c7359d.tar.bz2 manaverse-9cce5d5370ffc70df022ce43980a805499c7359d.tar.xz manaverse-9cce5d5370ffc70df022ce43980a805499c7359d.zip |
eathena: add partial support for packet SMSG_BATTLE_QUEUE_ACK 0x08d8.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/battlegroundhandler.cpp | 12 | ||||
-rw-r--r-- | src/net/eathena/battlegroundhandler.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/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp index 941910873..0b6d4c17d 100644 --- a/src/net/eathena/battlegroundhandler.cpp +++ b/src/net/eathena/battlegroundhandler.cpp @@ -41,6 +41,7 @@ BattleGroundHandler::BattleGroundHandler() : SMSG_BATTLE_UPDATE_SCORE, SMSG_BATTLE_UPDATE_COORDS, SMSG_BATTLE_PLAY, + SMSG_BATTLE_QUEUE_ACK, 0 }; handledMessages = _messages; @@ -67,6 +68,10 @@ void BattleGroundHandler::handleMessage(Net::MessageIn &msg) processBattlePlay(msg); break; + case SMSG_BATTLE_QUEUE_ACK: + processBattleQueueAck(msg); + break; + default: break; } @@ -103,4 +108,11 @@ void BattleGroundHandler::processBattlePlay(Net::MessageIn &msg) msg.readString(24, "battle ground name"); } +void BattleGroundHandler::processBattleQueueAck(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readUInt8("type"); + msg.readString(24, "bg name"); +} + } // namespace EAthena diff --git a/src/net/eathena/battlegroundhandler.h b/src/net/eathena/battlegroundhandler.h index 6343eddcf..a17ba4ff3 100644 --- a/src/net/eathena/battlegroundhandler.h +++ b/src/net/eathena/battlegroundhandler.h @@ -47,6 +47,8 @@ class BattleGroundHandler final : public MessageHandler, void processBattleUpdateCoords(Net::MessageIn &msg); void processBattlePlay(Net::MessageIn &msg); + + void processBattleQueueAck(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index ebf630506..0988e1390 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -231,7 +231,7 @@ int16_t packet_lengths[] = 0, 0, 0, -1, 0, 0, 0, 0, 0, 12, 10, 0, 0, 0, 0, 0, // #0x08C0 -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, 10, - 0, 0, 10, 0, 0, -1, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 10, 0, 0, -1, 6, 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0 1 2 3 4 5 6 7 8 9 a b c d e f diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 25d38396e..80351a38e 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -444,6 +444,7 @@ #define SMSG_BATTLE_UPDATE_SCORE 0x02de #define SMSG_BATTLE_UPDATE_COORDS 0x02df #define SMSG_BATTLE_PLAY 0x07fe +#define SMSG_BATTLE_QUEUE_ACK 0x08d8 /********************************** * Packets from client to server * |