WoW:API GiveMasterLoot: Difference between revisions

m
fixed "i" in the example to be "ci"
No edit summary
 
m (fixed "i" in the example to be "ci")
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