diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-01-25 02:23:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-25 02:39:13 +0300 |
commit | e7884fd8de40923ebadb0e9d810c597215821d65 (patch) | |
tree | d5dc79030ec9f47d49fdeb5be15f7010c1e81041 /src/net/eathena/inventoryhandler.cpp | |
parent | 08c14216d4b628ea7ecfbc2e7448632ec514f3db (diff) | |
download | mv-e7884fd8de40923ebadb0e9d810c597215821d65.tar.gz mv-e7884fd8de40923ebadb0e9d810c597215821d65.tar.bz2 mv-e7884fd8de40923ebadb0e9d810c597215821d65.tar.xz mv-e7884fd8de40923ebadb0e9d810c597215821d65.zip |
Add packet CMSG_INVENTORY_EXPAND 0x0b14
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r-- | src/net/eathena/inventoryhandler.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp index 0cc248936..b9391bd31 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -38,6 +38,9 @@ #include "debug.h" extern int packetVersion; +extern int packetVersionMain; +extern int packetVersionRe; +extern int packetVersionZero; extern int serverVersion; // this conversion from bit corrupted LOOK_* to EquipSlot @@ -600,4 +603,15 @@ void InventoryHandler::mergetItemsCancel() const createOutPacket(CMSG_MERGE_ITEM_CANCEL); } +void InventoryHandler::expandInventory() const +{ + if (packetVersionMain < 20181031 && + packetVersionRe < 20181031 && + packetVersionZero < 20181114) + { + return; + } + createOutPacket(CMSG_INVENTORY_EXPAND); +} + } // namespace EAthena |