WoW:API GetMasterLootCandidate: Difference between revisions
Jump to navigation
Jump to search
GetMasterLootCandidate -Documentation by Haarm-
No edit summary |
mNo edit summary |
||
Line 32: | Line 32: | ||
Also if you were master looter of a group, and then join another group later and are not the master looter, it will return the names of candidates from your previous group. | Also if you were master looter of a group, and then join another group later and are not the master looter, it will return the names of candidates from your previous group. | ||
-- [[User:Haarm|Haarm]] | -- [[User:Haarm|Haarm]] | ||
[[Category:API Functions|GetMasterLootCandidate]] | |||
[[Category:API Group Functions|GetMasterLootCandidate]] | |||
[[Category:API Loot Functions|GetMasterLootCandidate]] |
Revision as of 18:49, 29 August 2005
Returns the name of the player at the specified index, who would receive an item assigned by GiveMasterLoot(slot, index) using the same index.
candidate = GetMasterLootCandidate(index);
- Arguments
- index
- The number of the player whose name you wish to return. Typically between 1 and GetNumRaidMembers()
- Returns
- candidate
- The name of the player at index.
- Example
for i = 1, GetNumRaidMembers() do DEFAULT_CHAT_FRAME:AddMessage(i.." -> "..GetMasterLootCandidate(i)) end
- Result
Lists master loot candidates by index.
- See Also
- Features / Bugs
This appears not to work unless you are the master looter, and not until the list of candidates has been built by the system, which looks like after you first try and assign an item.
Also if you were master looter of a group, and then join another group later and are not the master looter, it will return the names of candidates from your previous group. -- Haarm