All pastes #827568 Raw Edit

Anonymous

public text v1 · immutable
#827568 ·published 2007-12-21 21:18 UTC
rendered paste body
	if(victlvl >= minlvl && victlvl <= maxlvl)
	{
		if(attacker->GetItemInterface()->GetItemCount(token, 1))
		{
			add->SetCount(add->GetUInt32Value(ITEM_FIELD_STACK_COUNT) + 1);
			attacker->GetSession()->SendItemPushResult(add, false, true, true, false, attacker->GetItemInterface()->GetBagSlotByGuid(add->GetGUID()), 0xFFFFFFFF, 1);
		}

		else
		{
			attacker->GetItemInterface()->AddItemToFreeSlot(pvptoken);
			SlotResult *lr = attacker->GetItemInterface()->LastSearchResult();
			attacker->GetSession()->SendItemPushResult(pvptoken,false,true,false,true,lr->ContainerSlot,lr->Slot,1);
		}
	}