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 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/net/eathena/battlegroundhandler.cpp') 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 -- cgit v1.2.3-70-g09d2