WoW:API GiveMasterLoot: Difference between revisions
Jump to navigation
Jump to search
GiveMasterLoot -Documentation by Haarm-
m (fixed "i" in the example to be "ci") |
mNo edit summary |
||
Line 31: | Line 31: | ||
:* [[API GetNumLootItems|GetNumLootItems()]] | :* [[API GetNumLootItems|GetNumLootItems()]] | ||
:* [[API GetMasterLootCandidate|GetMasterLootCandidate(index)]] | :* [[API GetMasterLootCandidate|GetMasterLootCandidate(index)]] | ||
[[Category:API Functions|GiveMasterLoot]] | |||
[[Category:API Loot Functions|GiveMasterLoot]] | |||
[[Category:API Group Functions|GiveMasterLoot]] |
Revision as of 18:50, 29 August 2005
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