From 8227aad72c4c6dfd2af4241763bd4dad82441a8e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 17 Mar 2015 22:58:33 +0300 Subject: eathena: add partial support for packet SMSG_BATTLE_UPDATE_COORDS 0x02df. --- src/net/eathena/battlegroundhandler.cpp | 15 +++++++++++++++ src/net/eathena/battlegroundhandler.h | 2 ++ src/net/eathena/packets.h | 2 +- src/net/eathena/protocol.h | 1 + 4 files changed, 19 insertions(+), 1 deletion(-) (limited to 'src') 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 * -- cgit v1.2.3-70-g09d2