From fa5c9c6958c8d499678ea9bab24eb4715b824f6e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 26 Sep 2018 20:17:59 +0300 Subject: Add packet SMSG_INVENTORY_END 0x0b0b. --- src/net/eathena/inventoryrecv.cpp | 13 +++++++++++++ src/net/eathena/inventoryrecv.h | 2 ++ src/net/eathena/packetsin.inc | 3 +++ 3 files changed, 18 insertions(+) (limited to 'src') diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index 3f8dbb7b1..358aa2234 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -1534,4 +1534,17 @@ void InventoryRecv::processInventoryStart3(Net::MessageIn &msg) msg.readString(nameLen, "inventory name"); } +void InventoryRecv::processInventoryEnd1(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readUInt8("flag"); +} + +void InventoryRecv::processInventoryEnd2(Net::MessageIn &msg) +{ + UNIMPLEMENTEDPACKET; + msg.readUInt8("type"); + msg.readUInt8("flag"); +} + } // namespace EAthena diff --git a/src/net/eathena/inventoryrecv.h b/src/net/eathena/inventoryrecv.h index 81436179e..9e4c3ce03 100644 --- a/src/net/eathena/inventoryrecv.h +++ b/src/net/eathena/inventoryrecv.h @@ -79,6 +79,8 @@ namespace EAthena void processInventoryStart1(Net::MessageIn &msg); void processInventoryStart2(Net::MessageIn &msg); void processInventoryStart3(Net::MessageIn &msg); + void processInventoryEnd1(Net::MessageIn &msg); + void processInventoryEnd2(Net::MessageIn &msg); int getSlot(const int eAthenaSlot) A_WARN_UNUSED; } // namespace InventoryRecv diff --git a/src/net/eathena/packetsin.inc b/src/net/eathena/packetsin.inc index c2dab4b15..aef5536f6 100644 --- a/src/net/eathena/packetsin.inc +++ b/src/net/eathena/packetsin.inc @@ -1309,12 +1309,14 @@ if (packetVersionRe >= 20180801) if (packetVersionRe >= 20180829) { packet(SMSG_INVENTORY_START1, 0x0b08, 26, &InventoryRecv::processInventoryStart1, 20180829); + packet(SMSG_INVENTORY_END1, 0x0b0b, 3, &InventoryRecv::processInventoryEnd1, 20180829); } // 20180912 re if (packetVersionRe >= 20180912) { packet(SMSG_INVENTORY_START2, 0x0b08, 27, &InventoryRecv::processInventoryStart2, 20180912); + packet(SMSG_INVENTORY_END2, 0x0b0b, 4, &InventoryRecv::processInventoryEnd2, 20180912); } // 20180919 re @@ -1327,6 +1329,7 @@ if (packetVersionRe >= 20180919) if (packetVersionZero >= 20180919) { packet(SMSG_INVENTORY_START3, 0x0b08, -1, &InventoryRecv::processInventoryStart3, 20180919); + packet(SMSG_INVENTORY_END2, 0x0b0b, 4, &InventoryRecv::processInventoryEnd2, 20180919); } // 0 -- cgit v1.2.3-70-g09d2