From 62c5097904bfc6c6e44e776730ea1d01aaf891c2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Jan 2016 16:59:33 +0300 Subject: Add partial implimentation for craft inventory. For now almost same with npc inventory. --- src/net/ea/inventoryhandler.cpp | 1 + src/net/ea/npcrecv.cpp | 9 +++++++++ 2 files changed, 10 insertions(+) (limited to 'src/net') diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index 179d23845..81fc0103a 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -91,6 +91,7 @@ size_t InventoryHandler::getSize(const InventoryTypeT type) const case InventoryType::Cart: case InventoryType::Vending: case InventoryType::Mail: + case InventoryType::Craft: #endif case InventoryType::TypeEnd: default: diff --git a/src/net/ea/npcrecv.cpp b/src/net/ea/npcrecv.cpp index d4c6b3d6b..c447fd5c5 100644 --- a/src/net/ea/npcrecv.cpp +++ b/src/net/ea/npcrecv.cpp @@ -202,6 +202,15 @@ void NpcRecv::processNpcCommand(Net::MessageIn &msg) mDialog->itemIndexRequest(invSize); break; } + case 12: // send complex items + { + int invSize = toInt(id, int); + if (!invSize) + invSize = 1; + if (mDialog) + mDialog->itemCraftRequest(invSize); + break; + } default: UNIMPLIMENTEDPACKET; break; -- cgit v1.2.3-70-g09d2