diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-26 20:17:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-26 20:17:59 +0300 |
commit | fa5c9c6958c8d499678ea9bab24eb4715b824f6e (patch) | |
tree | 7e4ce7414be89f6420ec2aaaf5e58c0afdc51f51 /src/net | |
parent | e3163de9297e06ed4e9bfa4cbaaca0c757222b81 (diff) | |
download | manaverse-fa5c9c6958c8d499678ea9bab24eb4715b824f6e.tar.gz manaverse-fa5c9c6958c8d499678ea9bab24eb4715b824f6e.tar.bz2 manaverse-fa5c9c6958c8d499678ea9bab24eb4715b824f6e.tar.xz manaverse-fa5c9c6958c8d499678ea9bab24eb4715b824f6e.zip |
Add packet SMSG_INVENTORY_END 0x0b0b.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/inventoryrecv.cpp | 13 | ||||
-rw-r--r-- | src/net/eathena/inventoryrecv.h | 2 | ||||
-rw-r--r-- | src/net/eathena/packetsin.inc | 3 |
3 files changed, 18 insertions, 0 deletions
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 |