Fandom

WoWWiki

API GiveMasterLoot

104,637pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GiveMasterLoot

Assigns an item from the current loot window to a group member, when in Master Looter mode.

GiveMasterLoot(lootIndex, candidateIndex);


Arguments
lootIndex 
The index of the item you wish to assign. Should be between 1 and GetNumLootItems()
candidateIndex 
The index of the player you wish to receive the item. You can retreive candidate names with GetMasterLootCandidate(index)

Returns
nil

Example
for ci = 1, GetNumRaidMembers() do
 if (GetMasterLootCandidate(ci) == UnitName("player")) then
  for li = 1, GetNumLootItems() do
   GiveMasterLoot(li, ci);
  end
 end
end
Result

Gives all the loot to yourself. Naughty.


See Also

Also on Fandom

Random Wiki