diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-01-25 03:29:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-01-25 03:29:47 +0300 |
commit | ca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390 (patch) | |
tree | 419bf82eef0ad201ff45b230e8bc1d4dbb89bfcd /src/net/eathena | |
parent | 1b0b820965425d1e5a40668faf75b3e41e870e45 (diff) | |
download | manaverse-ca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390.tar.gz manaverse-ca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390.tar.bz2 manaverse-ca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390.tar.xz manaverse-ca2c1a3e20d9cf16fd77649bfd48a26b2f7d9390.zip |
Add packet CMSG_INVENTORY_EXPAND_REJECT 0x0b19
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 f484afac9..67a91edfb 100644 --- a/src/net/eathena/inventoryhandler.cpp +++ b/src/net/eathena/inventoryhandler.cpp @@ -625,4 +625,15 @@ void InventoryHandler::expandInventoryConfirm() const createOutPacket(CMSG_INVENTORY_EXPAND_CONFIRM); } +void InventoryHandler::expandInventoryReject() const +{ + if (packetVersionMain < 20181031 && + packetVersionRe < 20181031 && + packetVersionZero < 20181114) + { + return; + } + createOutPacket(CMSG_INVENTORY_EXPAND_REJECT); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryhandler.h b/src/net/eathena/inventoryhandler.h index 3494cd6c1..ce230e67d 100644 --- a/src/net/eathena/inventoryhandler.h +++ b/src/net/eathena/inventoryhandler.h @@ -86,6 +86,8 @@ class InventoryHandler final : public Ea::InventoryHandler void expandInventoryConfirm() const override final; + void expandInventoryReject() 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 ef2358500..8811c8a4a 100644 --- a/src/net/eathena/packetsout.inc +++ b/src/net/eathena/packetsout.inc @@ -346,6 +346,7 @@ 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); +packet(CMSG_INVENTORY_EXPAND_REJECT, 0x0000, 0, nullptr); #else // 20040713 if (packetVersion >= 20040713) @@ -1471,6 +1472,7 @@ if (packetVersionMain >= 20181031) { packet(CMSG_INVENTORY_EXPAND, 0x0b14, 2, clif->pInventoryExpansion); packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm); + packet(CMSG_INVENTORY_EXPAND_REJECT, 0x0b19, 2, clif->pInventoryExpansionReject); } // 20181031 re @@ -1478,6 +1480,7 @@ if (packetVersionRe >= 20181031) { packet(CMSG_INVENTORY_EXPAND, 0x0b14, 2, clif->pInventoryExpansion); packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm); + packet(CMSG_INVENTORY_EXPAND_REJECT, 0x0b19, 2, clif->pInventoryExpansionReject); } // 20181114 main @@ -1499,6 +1502,7 @@ if (packetVersionZero >= 20181114) { packet(CMSG_INVENTORY_EXPAND, 0x0b14, 2, clif->pInventoryExpansion); packet(CMSG_INVENTORY_EXPAND_CONFIRM, 0x0b16, 2, clif->pInventoryExpansionConfirm); + packet(CMSG_INVENTORY_EXPAND_REJECT, 0x0b19, 2, clif->pInventoryExpansionReject); } #endif |