summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net/ea/guildhandler.cpp5
-rw-r--r--src/net/ea/guildhandler.h3
-rw-r--r--src/net/eathena/guildhandler.cpp11
-rw-r--r--src/net/eathena/guildhandler.h2
-rw-r--r--src/net/guildhandler.h3
-rw-r--r--src/net/tmwa/guildhandler.cpp4
-rw-r--r--src/net/tmwa/guildhandler.h2
7 files changed, 20 insertions, 10 deletions
diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp
index 0326ad82b..020897193 100644
--- a/src/net/ea/guildhandler.cpp
+++ b/src/net/ea/guildhandler.cpp
@@ -60,11 +60,6 @@ GuildHandler::~GuildHandler()
delete2(guildTab);
}
-void GuildHandler::requestAlliance(const int guildId A_UNUSED,
- const int otherGuildId A_UNUSED) const
-{
-}
-
void GuildHandler::requestAllianceResponse(const int guildId A_UNUSED,
const int otherGuildId A_UNUSED,
const bool response A_UNUSED) const
diff --git a/src/net/ea/guildhandler.h b/src/net/ea/guildhandler.h
index 0485e5cfc..6a8b78fbd 100644
--- a/src/net/ea/guildhandler.h
+++ b/src/net/ea/guildhandler.h
@@ -42,9 +42,6 @@ class GuildHandler notfinal : public Net::GuildHandler
virtual ~GuildHandler();
- void requestAlliance(const int guildId,
- const int otherGuildId) const override final;
-
void requestAllianceResponse(const int guildId, const int otherGuildId,
const bool response) const override final;
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);
diff --git a/src/net/guildhandler.h b/src/net/guildhandler.h
index e68bac19c..31c225e03 100644
--- a/src/net/guildhandler.h
+++ b/src/net/guildhandler.h
@@ -61,8 +61,7 @@ class GuildHandler notfinal
virtual void changeMemberPostion(const GuildMember *const member,
const int level) const = 0;
- virtual void requestAlliance(const int guildId,
- const int otherGuildId) const = 0;
+ virtual void requestAlliance(const Being *const being) const = 0;
virtual void requestAllianceResponse(const int guildId,
int const otherGuildId,
diff --git a/src/net/tmwa/guildhandler.cpp b/src/net/tmwa/guildhandler.cpp
index 4947f99da..cc3dd3c2f 100644
--- a/src/net/tmwa/guildhandler.cpp
+++ b/src/net/tmwa/guildhandler.cpp
@@ -421,4 +421,8 @@ void GuildHandler::processGuildExpulsionList(Net::MessageIn &msg)
}
}
+void GuildHandler::requestAlliance(const Being *const being A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/guildhandler.h b/src/net/tmwa/guildhandler.h
index 8c875ec1c..1dbbd3d2e 100644
--- a/src/net/tmwa/guildhandler.h
+++ b/src/net/tmwa/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 processGuildPositionInfo(Net::MessageIn &msg);