WoW:API GiveMasterLoot: Difference between revisions

m
Move page script moved page API GiveMasterLoot to WoW:API GiveMasterLoot without leaving a redirect
No edit summary
 
m (Move page script moved page API GiveMasterLoot to WoW:API GiveMasterLoot without leaving a redirect)
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<center>'''GiveMasterLoot''' ''-Documentation by [[User:Haarm|Haarm]]-''</center>
{{wowapi}}
Assigns an item from the current loot window to a group member, when in Master Looter mode.
Assigns an item from the current loot window to a group member, when in Master Looter mode.


Line 16: Line 16:
;''Example''
;''Example''
  for ci = 1, GetNumRaidMembers() do
  for ci = 1, GetNumRaidMembers() do
   if (GetMasterLootCandidate(i) == UnitName("player")) then
   if (GetMasterLootCandidate(ci) == UnitName("player")) then
   for li = 1, GetNumLootItems() do
   for li = 1, GetNumLootItems() do
     GiveMasterLoot(li, ci);
     GiveMasterLoot(li, ci);
Anonymous user