mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-29 22:52:17 +00:00
Hand in stacked items
Added support for handing in stacked items and getting task credit for those items.
This commit is contained in:
1 parent
87b4640ff0
commit
8f78a3fd35
4 files changed
+11
-11
No files matched your search
+2
-2
@@ -874,11 +874,11 @@ void Client::FinishTrade(Mob* tradingWith, bool finalizer, void* event_entry, st
|
||||
}
|
||||
|
||||
std::vector<EQEmu::Any> item_list;
|
||||
uint32 items[4] = { 0 };
|
||||
std::list<ItemInst*> items;
|
||||
for(int i = EmuConstants::TRADE_BEGIN; i <= EmuConstants::TRADE_NPC_END; ++i) {
|
||||
ItemInst *inst = m_inv.GetItem(i);
|
||||
if(inst) {
|
||||
items[i - EmuConstants::TRADE_BEGIN] = inst->GetItem()->ID;
|
||||
items.push_back(inst);
|
||||
item_list.push_back(inst);
|
||||
} else {
|
||||
item_list.push_back((ItemInst*)nullptr);
|
||||
|
||||
Reference in new issue
Block a user