diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-01-25 03:15:56 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-25 03:15:56 +0300 |
commit | 1b0b820965425d1e5a40668faf75b3e41e870e45 (patch) | |
tree | 72032251e59cb4f67716b1aa63d7f00c23582b12 /src/net/eathena | |
parent | e7884fd8de40923ebadb0e9d810c597215821d65 (diff) | |
download | manaplus-1b0b820965425d1e5a40668faf75b3e41e870e45.tar.gz manaplus-1b0b820965425d1e5a40668faf75b3e41e870e45.tar.bz2 manaplus-1b0b820965425d1e5a40668faf75b3e41e870e45.tar.xz manaplus-1b0b820965425d1e5a40668faf75b3e41e870e45.zip |
Add packet CMSG_INVENTORY_EXPAND_CONFIRM 0x0b16
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 11 | ||||
-rw-r--r-- | src/net/eathena/inventoryhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packetsout.inc | 4 |
3 files changed, 17 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index b9391bd31..f484afac9 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -614,4 +614,15 @@ void InventoryHandler::expandInventory() const createOutPacket(CMSG_INVENTORY_EXPAND); } +void InventoryHandler::expandInventoryConfirm() const +{ + if (packetVersionMain < 20181031 && + packetVersionRe < 20181031 && + packetVersionZero < 20181114) + { + return; + } + createOutPacket(CMSG_INVENTORY_EXPAND_CONFIRM); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index 179402a39..3494cd6c1 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -84,6 +84,8 @@ class InventoryHandler final : public Ea::InventoryHandler void expandInventory() const override final; + void expandInventoryConfirm() const override final; + int getProjectileSlot() const override final { return 10; } diff --git a/src/net/eathena/packetsout.inc b/src/net/eathena/packetsout.inc index 7ba401f84..ef2358500 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -345,6 +345,7 @@ packet(CMSG_ACHIEVEMENT_GET_REWARD, 0x0000, 0, nullptr); packet(CMSG_LOGIN_MOBILE_OTP, 0x0000, 0, nullptr); packet(CMSG_LOGIN_OTP_CODE, 0x0000, 0, nullptr); packet(CMSG_INVENTORY_EXPAND, 0x0000, 0, nullptr); +packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0000, 0, nullptr); #else // 20040713 if (packetVersion >= 20040713) @@ -1469,12 +1470,14 @@ if (packetVersionRe >= 20180718) if (packetVersionMain >= 20181031) { packet(CMSG_INVENTORY_EXPAND, 0x0b14, 2, clif->pInventoryExpansion); + packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm); } // 20181031 re if (packetVersionRe >= 20181031) { packet(CMSG_INVENTORY_EXPAND, 0x0b14, 2, clif->pInventoryExpansion); + packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm); } // 20181114 main @@ -1495,6 +1498,7 @@ if (packetVersionRe >= 20181114) if (packetVersionZero >= 20181114) { packet(CMSG_INVENTORY_EXPAND, 0x0b14, 2, clif->pInventoryExpansion); + packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm); } #endif |