diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-16 21:54:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-16 21:54:34 +0300 |
commit | 1bcba7a1365bb2e5b713190c9664902fc11d0752 (patch) | |
tree | 68c18a0c11d59856556715d0113d850db1dfc012 /src/net | |
parent | 651cefe3c09e5bfae8178f7c396760663b93eda7 (diff) | |
download | manaverse-1bcba7a1365bb2e5b713190c9664902fc11d0752.tar.gz manaverse-1bcba7a1365bb2e5b713190c9664902fc11d0752.tar.bz2 manaverse-1bcba7a1365bb2e5b713190c9664902fc11d0752.tar.xz manaverse-1bcba7a1365bb2e5b713190c9664902fc11d0752.zip |
Impliment packet CMSG_GUILD_INVITE2 0x0916
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/guildhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 2 |
2 files changed, 7 insertions, 0 deletions
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 |