diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/net/eathena/guildrecv.cpp | 29 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 6 |
2 files changed, 28 insertions, 7 deletions
diff --git a/src/net/eathena/guildrecv.cpp b/src/net/eathena/guildrecv.cpp index cb31788b6..2b3c2b9e2 100644 --- a/src/net/eathena/guildrecv.cpp +++ b/src/net/eathena/guildrecv.cpp @@ -105,19 +105,34 @@ void GuildRecv::processGuildBasicInfo(Net::MessageIn &msg) msg.skip(12, "unused"); const int emblem = msg.readInt32("emblem id"); std::string name = msg.readString(24, "guild name"); - std::string master = msg.readString(24, "master name"); - std::string castle = msg.readString(16, "castles"); - msg.readInt32("unused"); + std::string castle; + std::string master; + if (msg.getVersion() >= 20160622) + { + castle = msg.readString(16, "castles"); + msg.readInt32("money, unused"); + msg.readBeingId("leader char id"); + } + else + { + master = msg.readString(24, "master name"); + castle = msg.readString(16, "castles"); + msg.readInt32("money, unused"); + } - if ((guildTab != nullptr) && showBasicInfo) + if (guildTab != nullptr && + showBasicInfo) { showBasicInfo = false; // TRANSLATORS: guild info message guildTab->chatLog(strprintf(_("Guild name: %s"), name.c_str()), ChatMsgType::BY_SERVER); - // TRANSLATORS: guild info message - guildTab->chatLog(strprintf(_("Guild master: %s"), - master.c_str()), ChatMsgType::BY_SERVER); + if (!master.empty()) + { + // TRANSLATORS: guild info message + guildTab->chatLog(strprintf(_("Guild master: %s"), + master.c_str()), ChatMsgType::BY_SERVER); + } // TRANSLATORS: guild info message guildTab->chatLog(strprintf(_("Guild level: %d"), level), ChatMsgType::BY_SERVER); diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index 3ceb26a70..0a10c21a5 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -887,6 +887,12 @@ if (packetVersion >= 20160330) packet(SMSG_MAP_LOGIN_SUCCESS, 0x02eb, 13, &GameRecv::processMapLogin, 20080102); } +// 20160622 +if (packetVersion >= 20160622) +{ + packet(SMSG_GUILD_BASIC_INFO, 0x0a84, 94, &GuildRecv::processGuildBasicInfo, 20160622); +} + // 20160921 if (packetVersion >= 20160921) { |