summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/guildhandler.cpp11
-rw-r--r--src/net/eathena/guildhandler.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index 4fbf4ca58..609ae9182 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -450,4 +450,15 @@ void GuildHandler::processGuildEmblem(Net::MessageIn &msg)
msg.readInt16("emblem id");
}
+void GuildHandler::requestAlliance(const Being *const being) const
+{
+ if (!being)
+ return;
+
+ createOutPacket(CMSG_GUILD_ALLIANCE_REQUEST);
+ outMsg.writeInt32(being->getId(), "account id");
+ outMsg.writeInt32(0, "inviter account id");
+ outMsg.writeInt32(0, "inviter char id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/guildhandler.h b/src/net/eathena/guildhandler.h
index c4436fa98..c1678484f 100644
--- a/src/net/eathena/guildhandler.h
+++ b/src/net/eathena/guildhandler.h
@@ -70,6 +70,8 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler
void checkMaster() const override final;
+ void requestAlliance(const Being *const being) const override final;
+
protected:
static void processGuildUpdateCoords(Net::MessageIn &msg);