From 1bcba7a1365bb2e5b713190c9664902fc11d0752 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 16 Sep 2016 21:54:34 +0300 Subject: Impliment packet CMSG_GUILD_INVITE2 0x0916 --- src/net/eathena/guildhandler.cpp | 5 +++++ src/net/eathena/packetsout.inc | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/net/eathena/guildhandler.cpp b/src/net/eathena/guildhandler.cpp index 9d5e15f48..42c0bd951 100644 --- a/src/net/eathena/guildhandler.cpp +++ b/src/net/eathena/guildhandler.cpp @@ -70,6 +70,11 @@ void GuildHandler::invite(const std::string &name) const outMsg.writeInt32(0, "unused"); outMsg.writeInt32(0, "unused"); } + else if (packetVersion >= 20120418) + { + createOutPacket(CMSG_GUILD_INVITE2); + outMsg.writeString(being->getName(), 24, "name"); + } } void GuildHandler::invite(const Being *const being) const diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 97f1c359d..2f09ab0a4 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -290,6 +290,7 @@ packet(CMSG_NPC_CASH_SHOP_CLOSE, 0x0000, 0, nullptr); packet(CMSG_NPC_CASH_SHOP_OPEN, 0x0000, 0, nullptr); packet(CMSG_NPC_CASH_SHOP_REQUEST_TAB, 0x0000, 0, nullptr); packet(CMSG_NPC_CASH_SHOP_SCHEDULE, 0x0000, 0, nullptr); +packet(CMSG_GUILD_INVITE2, 0x0000, 0, nullptr); #else // 20040713 if (packetVersion >= 20040713) @@ -676,6 +677,7 @@ if (packetVersion >= 20120418) packet(CMSG_FRIENDS_ADD_PLAYER, 0x023b, 26, clif->pFriendsListAdd); packet(CMSG_MOVE_FROM_STORAGE, 0x0364, 8, clif->pMoveFromKafra); packet(CMSG_HOMUNCULUS_MENU, 0x0361, 5, clif->pHomMenu); + packet(CMSG_GUILD_INVITE2, 0x0916, 26, clif->pGuildInvite2); } // 20120702 -- cgit v1.2.3-70-g09d2