summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-20 17:53:44 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-20 17:53:44 +0300
commit417d18b8bf122c4bba9acac02c2c448e010e7180 (patch)
tree7f2f8a15dcab920bc619620cda69f5909ae11fb6 /src/net/eathena
parentf8de6e16f2fd5905d7dd8fffb7763861045c48b4 (diff)
downloadmanaverse-417d18b8bf122c4bba9acac02c2c448e010e7180.tar.gz
manaverse-417d18b8bf122c4bba9acac02c2c448e010e7180.tar.bz2
manaverse-417d18b8bf122c4bba9acac02c2c448e010e7180.tar.xz
manaverse-417d18b8bf122c4bba9acac02c2c448e010e7180.zip
eathena: impliment packet CMSG_GUILD_ALLIANCE_REPLY.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/guildhandler.cpp8
-rw-r--r--src/net/eathena/guildhandler.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index 609ae9182..76b7b0450 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -461,4 +461,12 @@ void GuildHandler::requestAlliance(const Being *const being) const
outMsg.writeInt32(0, "inviter char id");
}
+void GuildHandler::requestAllianceResponse(const int beingId,
+ const bool accept) const
+{
+ createOutPacket(CMSG_GUILD_ALLIANCE_REPLY);
+ outMsg.writeInt32(beingId, "account id");
+ outMsg.writeInt32(accept, "accept flag");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/guildhandler.h b/src/net/eathena/guildhandler.h
index c1678484f..3eac0136f 100644
--- a/src/net/eathena/guildhandler.h
+++ b/src/net/eathena/guildhandler.h
@@ -72,6 +72,9 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler
void requestAlliance(const Being *const being) const override final;
+ void requestAllianceResponse(const int beingId,
+ const bool accept) const override final;
+
protected:
static void processGuildUpdateCoords(Net::MessageIn &msg);