WoW:API GetMasterLootCandidate: Difference between revisions

m (Reformat.)
Line 8: Line 8:
=== Arguments ===
=== Arguments ===


:;index : The number of the player whose name you wish to return. Typically between 1 and [[API GetNumRaidMembers|GetNumRaidMembers()]]
:;index : The number of the player whose name you wish to return. Typically between 1 and 40.  Can exceed the value of [[API GetNumRaidMembers|GetNumRaidMembers()]]


=== Returns ===
=== Returns ===
Line 15: Line 15:


== Example ==
== Example ==
  for i = 1, GetNumRaidMembers() do
  for i = 1, 40 do
  DEFAULT_CHAT_FRAME:AddMessage(i.." -> "..GetMasterLootCandidate(i))
  if GetMasterLootCandidate(i)then
    DEFAULT_CHAT_FRAME:AddMessage(i.." -> "..GetMasterLootCandidate(i))
  end
  end
  end


Anonymous user