diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-05-14 01:43:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-05-14 01:43:51 +0300 |
commit | e16a985a0bc0d5ffc9377b7ef9da7cf838a63127 (patch) | |
tree | 181c1ebeb7767248b16c9911e1ee8fd5b6092d19 /src | |
parent | 34d9e8a018d2e8a9d852c11c63c28abf54d1ba1f (diff) | |
download | plus-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')
-rw-r--r-- | src/net/eathena/guildrecv.cpp | 48 | ||||
-rw-r--r-- | src/net/eathena/guildrecv.h | 4 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 6 |
3 files changed, 43 insertions, 15 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"); } } diff --git a/src/net/eathena/guildrecv.h b/src/net/eathena/guildrecv.h index 74ca79a70..9a7a6641c 100644 --- a/src/net/eathena/guildrecv.h +++ b/src/net/eathena/guildrecv.h @@ -66,7 +66,9 @@ namespace EAthena void processGuildMemberLogin(Net::MessageIn &msg); void processGuildExpulsion(Net::MessageIn &msg); void processGuildExpulsion2(Net::MessageIn &msg); - void processGuildExpulsionList(Net::MessageIn &msg); + void processGuildExpulsionList1(Net::MessageIn &msg); + void processGuildExpulsionList2(Net::MessageIn &msg); + void processGuildExpulsionList3(Net::MessageIn &msg); void processGuildEmblem(Net::MessageIn &msg); void processOnlineInfo(Net::MessageIn &msg); void processGuildSetPosition(Net::MessageIn &msg); diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 1136fca7a..5fb4bdf98 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -153,7 +153,6 @@ packet(SMSG_GUILD_CREATE_RESPONSE, 0x0167, 3, &GuildRecv::processGuild packet(SMSG_GUILD_DEL_ALLIANCE, 0x0184, 10, &GuildRecv::processGuildDelAlliance, 0); packet(SMSG_GUILD_EMBLEM, 0x01b4, 12, &GuildRecv::processGuildEmblem, 0); packet(SMSG_GUILD_EMBLEM_DATA, 0x0152, -1, &GuildRecv::processGuildEmblemData, 0); -packet(SMSG_GUILD_EXPULSION_LIST, 0x0163, -1, &GuildRecv::processGuildExpulsionList, 0); packet(SMSG_GUILD_INVITE, 0x016a, 30, &GuildRecv::processGuildInvite, 0); packet(SMSG_GUILD_INVITE_ACK, 0x0169, 3, &GuildRecv::processGuildInviteAck, 0); packet(SMSG_GUILD_LEAVE, 0x015a, 66, &GuildRecv::processGuildLeave, 0); @@ -293,6 +292,7 @@ packet(SMSG_ADD_MAP_MARKER, 0x09c1, 10, &MapRecv::processAddMapM packet(SMSG_GUILD_ONLINE_INFO, 0x016d, 14, &GuildRecv::processOnlineInfo, 0); packet(SMSG_FORMAT_MESSAGE_STRING, 0x02c2, -1, &ChatRecv::processFormatMessageString, 0); packet(SMSG_FORMAT_COLOR_MESSAGE, 0x09cd, 8, &ChatRecv::processFormatColor, 0); +packet(SMSG_GUILD_EXPULSION_LIST, 0x0163, -1, &GuildRecv::processGuildExpulsionList1, 0); // 3 if (packetVersion >= 3) @@ -686,6 +686,7 @@ if (packetVersion >= 20100701) // 20100803 packet(SMSG_GUILD_EXPULSION, 0x0839, 66, &GuildRecv::processGuildExpulsion, 20100803); +packet(SMSG_GUILD_EXPULSION_LIST, 0x0163, -1, &GuildRecv::processGuildExpulsionList2, 20100803); // 20101005 main if (packetVersionMain >= 20101005) @@ -1075,6 +1076,7 @@ if (packetVersionRe >= 20160921) { packet(SMSG_GUILD_EXPULSION2, 0x0a82, 46, &GuildRecv::processGuildExpulsion2, 20160921); packet(SMSG_GUILD_LEAVE2, 0x0a83, 46, &GuildRecv::processGuildLeave2, 20160921); + packet(SMSG_GUILD_EXPULSION_LIST, 0x0a87, -1, &GuildRecv::processGuildExpulsionList3, 20160921); } // 20161019 main @@ -1082,6 +1084,7 @@ if (packetVersionMain >= 20161019) { packet(SMSG_GUILD_EXPULSION2, 0x0a82, 46, &GuildRecv::processGuildExpulsion2, 20161019); packet(SMSG_GUILD_LEAVE2, 0x0a83, 46, &GuildRecv::processGuildLeave2, 20161019); + packet(SMSG_GUILD_EXPULSION_LIST, 0x0a87, -1, &GuildRecv::processGuildExpulsionList3, 20161019); } // 20161026 @@ -1232,6 +1235,7 @@ if (packets_zero == true) packet(SMSG_CLAN_INFO, 0x098a, -1, &ClanRecv::processClanInfo, 20171018); packet(SMSG_PRIVATE_AIRSHIP_RESPONSE, 0x0A4A, 6, &NpcRecv::processPrivateAirShipResponse, 20171018); packet(SMSG_ENCHANT_EQUIPMENT, 0x0a3f, 9, &InventoryRecv::processEnchantEquipment, 20171018); + packet(SMSG_GUILD_EXPULSION_LIST, 0x0a87, -1, &GuildRecv::processGuildExpulsionList3, 20171018); } // 20171019 zero |