From d2fb1e8fe58821c598b88906b919a36fb29a72e9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Jan 2019 20:13:06 +0300 Subject: Add packet SMSG_INVENTORY_EXPANSION_ACK 0x0b15 --- src/net/eathena/inventoryrecv.cpp | 8 +++++++- src/net/eathena/inventoryrecv.h | 1 + src/net/eathena/packetsin.inc | 3 +++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index 388a8fe10..9a0b85c3c 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -1674,7 +1674,6 @@ void InventoryRecv::processShowItemPreview2(Net::MessageIn &msg) void InventoryRecv::processInventoryExpansionInfo(Net::MessageIn &msg) { - UNIMPLEMENTEDPACKET; const int newSize = msg.readInt16("expansion size") + settings.fixedInventorySize; Inventory *const inv = PlayerInfo::getInventory(); @@ -1684,4 +1683,11 @@ void InventoryRecv::processInventoryExpansionInfo(Net::MessageIn &msg) } } +void InventoryRecv::processInventoryExpansionAck(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readUInt8("result"); + msg.readItemId("item id"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryrecv.h b/src/net/eathena/inventoryrecv.h index 72f6ffbe2..a0d1aa46f 100644 --- a/src/net/eathena/inventoryrecv.h +++ b/src/net/eathena/inventoryrecv.h @@ -99,6 +99,7 @@ namespace EAthena void processShowItemPreview1(Net::MessageIn &msg); void processShowItemPreview2(Net::MessageIn &msg); void processInventoryExpansionInfo(Net::MessageIn &msg); + void processInventoryExpansionAck(Net::MessageIn &msg); } // namespace InventoryRecv } // namespace EAthena diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index b9dc5c645..fa6c6c827 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -1499,18 +1499,21 @@ if (packetVersionMain >= 20181128) if (packetVersionZero >= 20181212) { packet(SMSG_INVENTORY_EXPANSION_INFO, 0x0b18, 4, &InventoryRecv::processInventoryExpansionInfo, 20181212); + packet(SMSG_INVENTORY_EXPANSION_ACK, 0x0b15, 7, &InventoryRecv::processInventoryExpansionAck, 20181212); } // 20181219 main if (packetVersionMain >= 20181219) { packet(SMSG_INVENTORY_EXPANSION_INFO, 0x0b18, 4, &InventoryRecv::processInventoryExpansionInfo, 20181219); + packet(SMSG_INVENTORY_EXPANSION_ACK, 0x0b15, 7, &InventoryRecv::processInventoryExpansionAck, 20181219); } // 20181219 re if (packetVersionRe >= 20181219) { packet(SMSG_INVENTORY_EXPANSION_INFO, 0x0b18, 4, &InventoryRecv::processInventoryExpansionInfo, 20181219); + packet(SMSG_INVENTORY_EXPANSION_ACK, 0x0b15, 7, &InventoryRecv::processInventoryExpansionAck, 20181219); } // 0 -- cgit v1.2.3-60-g2f50