From 97db9f1a4f677fe0433b7cad65b5146f5c7c9c00 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Mar 2015 14:14:52 +0300 Subject: eathena: add packet CMSG_BATTLE_BEGIN_ACK 0x08e0. --- src/net/eathena/battlegroundhandler.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/eathena/battlegroundhandler.cpp') diff --git a/src/net/eathena/battlegroundhandler.cpp b/src/net/eathena/battlegroundhandler.cpp index a876a708e..bc34d351a 100644 --- a/src/net/eathena/battlegroundhandler.cpp +++ b/src/net/eathena/battlegroundhandler.cpp @@ -165,4 +165,14 @@ void BattleGroundHandler::rekoveRequest(const std::string &name) const outMsg.writeString(name, 24, "bg name"); } +void BattleGroundHandler::beginAck(const bool result, + const std::string &bgName, + const std::string &gameName) const +{ + createOutPacket(CMSG_BATTLE_BEGIN_ACK); + outMsg.writeInt8(static_cast(result ? 1 : 0), "result"); + outMsg.writeString(bgName, 24, "bg name"); + outMsg.writeString(gameName, 24, "game name"); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50