diff options
Diffstat (limited to 'src/net')
-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 | ||||
-rw-r--r-- | src/net/inventoryhandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/inventoryhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/inventoryhandler.h | 2 |
6 files changed, 25 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 diff --git a/src/net/inventoryhandler.h b/src/net/inventoryhandler.h index 18e4d3eed..3fa58f93f 100644 --- a/src/net/inventoryhandler.h +++ b/src/net/inventoryhandler.h @@ -107,6 +107,8 @@ class InventoryHandler notfinal virtual void mergetItemsCancel() const = 0; virtual void expandInventory() const = 0; + + virtual void expandInventoryConfirm() const = 0; }; } // namespace Net diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index ee60e399c..3f5e93d75 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -197,4 +197,8 @@ void InventoryHandler::expandInventory() const { } +void InventoryHandler::expandInventoryConfirm() const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/inventoryhandler.h b/src/net/tmwa/inventoryhandler.h index a7e5a4b30..5dfa2d230 100644 --- a/src/net/tmwa/inventoryhandler.h +++ b/src/net/tmwa/inventoryhandler.h @@ -81,6 +81,8 @@ class InventoryHandler final : public Ea::InventoryHandler void expandInventory() const override final; + void expandInventoryConfirm() const override final; + int getProjectileSlot() const override final { return 10; } |