diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-17 22:58:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-17 22:58:33 +0300 |
commit | 8227aad72c4c6dfd2af4241763bd4dad82441a8e (patch) | |
tree | 4f54427957bbb72a2bbb0abb8bffabb5e0e700c7 /src/net | |
parent | 9761307a9c7d360ebf7a44e2eee9a41dbd1a3921 (diff) | |
download | manaverse-8227aad72c4c6dfd2af4241763bd4dad82441a8e.tar.gz manaverse-8227aad72c4c6dfd2af4241763bd4dad82441a8e.tar.bz2 manaverse-8227aad72c4c6dfd2af4241763bd4dad82441a8e.tar.xz manaverse-8227aad72c4c6dfd2af4241763bd4dad82441a8e.zip |
eathena: add partial support for packet SMSG_BATTLE_UPDATE_COORDS 0x02df.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/battlegroundhandler.cpp | 15 | ||||
-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, 19 insertions, 1 deletions
diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp index fd8273dcf..9c23e08ff 100644 --- a/src/net/eathena/battlegroundhandler.cpp +++ b/src/net/eathena/battlegroundhandler.cpp @@ -39,6 +39,7 @@ BattleGroundHandler::BattleGroundHandler() : { SMSG_BATTLE_EMBLEM, SMSG_BATTLE_UPDATE_SCORE, + SMSG_BATTLE_UPDATE_COORDS, 0 }; handledMessages = _messages; @@ -57,6 +58,10 @@ void BattleGroundHandler::handleMessage(Net::MessageIn &msg) processBattleUpdateScore(msg); break; + case SMSG_BATTLE_UPDATE_COORDS: + processBattleUpdateCoords(msg); + break; + default: break; } @@ -77,4 +82,14 @@ void BattleGroundHandler::processBattleUpdateScore(Net::MessageIn &msg) msg.readInt16("camp b points"); } +void BattleGroundHandler::processBattleUpdateCoords(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("account id"); + msg.readString(24, "name"); + msg.readInt16("class"); + msg.readInt16("x"); + msg.readInt16("y"); +} + } // namespace EAthena diff --git a/src/net/eathena/battlegroundhandler.h b/src/net/eathena/battlegroundhandler.h index 45f5d3e56..e46394199 100644 --- a/src/net/eathena/battlegroundhandler.h +++ b/src/net/eathena/battlegroundhandler.h @@ -43,6 +43,8 @@ class BattleGroundHandler final : public MessageHandler, void processBattleEmblem(Net::MessageIn &msg); void processBattleUpdateScore(Net::MessageIn &msg); + + void processBattleUpdateCoords(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/packets.h b/src/net/eathena/packets.h index 5d7f2ea11..aaf472810 100644 --- a/src/net/eathena/packets.h +++ b/src/net/eathena/packets.h @@ -99,7 +99,7 @@ int16_t packet_lengths[] = 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, 4, 71, 10, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 3, 0, -1, 32, 6, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 3, 0, -1, 32, 6, 36, 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, //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 4da724142..ab6d5020e 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -423,6 +423,7 @@ #define SMSG_BATTLE_CHAT_MESSAGE 0x02dc #define SMSG_BATTLE_EMBLEM 0x02dd #define SMSG_BATTLE_UPDATE_SCORE 0x02de +#define SMSG_BATTLE_UPDATE_COORDS 0x02df /********************************** * Packets from client to server * |