summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/guildhandler.cpp9
-rw-r--r--src/net/eathena/guildhandler.h2
2 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp
index 84dd8eec8..350eb3bed 100644
--- a/src/net/eathena/guildhandler.cpp
+++ b/src/net/eathena/guildhandler.cpp
@@ -492,4 +492,13 @@ void GuildHandler::changePostionInfo(const int posId,
outMsg.writeString(name, 24, "name");
}
+void GuildHandler::requestOpposition(const Being *const being) const
+{
+ if (!being)
+ return;
+
+ createOutPacket(CMSG_GUILD_OPPOSITION);
+ outMsg.writeInt32(being->getId(), "account id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/guildhandler.h b/src/net/eathena/guildhandler.h
index 6f42b4e80..d7406c2b6 100644
--- a/src/net/eathena/guildhandler.h
+++ b/src/net/eathena/guildhandler.h
@@ -84,6 +84,8 @@ class GuildHandler final : public Ea::GuildHandler, public MessageHandler
const int payRate,
const std::string &name) const override final;
+ void requestOpposition(const Being *const being) const override final;
+
protected:
static void processGuildUpdateCoords(Net::MessageIn &msg);