summaryrefslogtreecommitdiff
path: root/src/net/eathena/guildrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-05-14 01:43:51 +0300
committerAndrei Karas <akaras@inbox.ru>2019-05-14 01:43:51 +0300
commite16a985a0bc0d5ffc9377b7ef9da7cf838a63127 (patch)
tree181c1ebeb7767248b16c9911e1ee8fd5b6092d19 /src/net/eathena/guildrecv.cpp
parent34d9e8a018d2e8a9d852c11c63c28abf54d1ba1f (diff)
downloadplus-e16a985a0bc0d5ffc9377b7ef9da7cf838a63127.tar.gz
plus-e16a985a0bc0d5ffc9377b7ef9da7cf838a63127.tar.bz2
plus-e16a985a0bc0d5ffc9377b7ef9da7cf838a63127.tar.xz
plus-e16a985a0bc0d5ffc9377b7ef9da7cf838a63127.zip
Add packet SMSG_GUILD_EXPULSION_LIST 0x0a87
Diffstat (limited to 'src/net/eathena/guildrecv.cpp')
-rw-r--r--src/net/eathena/guildrecv.cpp48
1 files changed, 35 insertions, 13 deletions
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp
index e6c7f20c9..37d789312 100644
--- a/src/net/eathena/guildrecv.cpp
+++ b/src/net/eathena/guildrecv.cpp
@@ -762,27 +762,49 @@ void GuildRecv::processGuildExpulsion2(Net::MessageIn &msg)
}
}
-void GuildRecv::processGuildExpulsionList(Net::MessageIn &msg)
+void GuildRecv::processGuildExpulsionList1(Net::MessageIn &msg)
{
+ UNIMPLEMENTEDPACKET;
const int length = msg.readInt16("len");
if (length < 4)
return;
- int count;
- if (msg.getVersion() < 20100803)
+ const int count = (length - 4) / 88;
+ for (int i = 0; i < count; i++)
{
- count = (length - 4) / 64;
- for (int i = 0; i < count; i++)
- {
- msg.readString(24, "name");
- msg.readString(40, "message");
- }
+ msg.readString(24, "char name");
+ msg.readString(24, "account name");
+ msg.readString(40, "message");
}
- else
+}
+
+void GuildRecv::processGuildExpulsionList2(Net::MessageIn &msg)
+{
+ UNIMPLEMENTEDPACKET;
+ const int length = msg.readInt16("len");
+ if (length < 4)
+ return;
+
+ const int count = (length - 4) / 64;
+ for (int i = 0; i < count; i++)
+ {
+ msg.readString(24, "name");
+ msg.readString(40, "message");
+ }
+}
+
+void GuildRecv::processGuildExpulsionList3(Net::MessageIn &msg)
+{
+ UNIMPLEMENTEDPACKET;
+ const int length = msg.readInt16("len");
+ if (length < 4)
+ return;
+
+ int count = (length - 4) / 44;
+ for (int i = 0; i < count; i++)
{
- count = (length - 4) / 40;
- for (int i = 0; i < count; i++)
- msg.readString(40, "message");
+ msg.readInt32("char id");
+ msg.readString(40, "message");
}
}