From 84ec06e6d2814ec0cbef904fb352baf1f43bf7c7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 25 Sep 2018 08:38:59 +0300 Subject: Add packet SMSG_ITEM_MOVE_FAILED 0x0aa7. --- src/net/eathena/inventoryrecv.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/net/eathena/inventoryrecv.cpp') diff --git a/src/net/eathena/inventoryrecv.cpp b/src/net/eathena/inventoryrecv.cpp index c17db75d1..dbf7b8610 100644 --- a/src/net/eathena/inventoryrecv.cpp +++ b/src/net/eathena/inventoryrecv.cpp @@ -1490,4 +1490,20 @@ void InventoryRecv::processPlayerInventoryUse(Net::MessageIn &msg) BLOCK_END("InventoryRecv::processPlayerInventoryUse") } +void InventoryRecv::processItemMoveFailed(Net::MessageIn &msg) +{ + Inventory *const inventory = localPlayer != nullptr + ? PlayerInfo::getInventory() : nullptr; + const int index = msg.readInt16("index") - INVENTORY_OFFSET; + msg.readInt16("unknown"); // 1 + if (inventory != nullptr) + { + if (Item *const item = inventory->getItem(index)) + { + NotifyManager::notify(NotifyTypes::DELETE_ITEM_DROPPED, + item->getName()); + } + } +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50