All pastes #827472 Raw Edit

Anonymous

public text v1 · immutable
#827472 ·published 2007-12-21 20:20 UTC
rendered paste body
	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);
		}
	}