if(victlvl >= minlvl && victlvl <= maxlvl) { if(attacker->GetItemInterface()->GetItemCount(token, 1)) { //stack the items } else { Item *pvptoken = objmgr.CreateItem(token, attacker); attacker->GetItemInterface()->AddItemToFreeSlot(pvptoken); SlotResult *lr = attacker->GetItemInterface()->LastSearchResult(); attacker->GetSession()->SendItemPushResult(pvptoken,false,true,false,true,lr->ContainerSlot,lr->Slot,100); } }