DarkTichondrias@legacy41533789 (talk | contribs) (removed spam by User Drlion) |
Hobinbot@legacy41545296 (talk | contribs) (upgraded deprecated template) |
||
Line 1: | Line 1: | ||
+ | {{wowapi}} |
||
<center>'''GiveMasterLoot''' ''-Documentation by [[User:Haarm|Haarm]]-''</center> |
<center>'''GiveMasterLoot''' ''-Documentation by [[User:Haarm|Haarm]]-''</center> |
||
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 31: | Line 32: | ||
:* [[API GetNumLootItems|GetNumLootItems()]] |
:* [[API GetNumLootItems|GetNumLootItems()]] |
||
:* [[API GetMasterLootCandidate|GetMasterLootCandidate(index)]] |
:* [[API GetMasterLootCandidate|GetMasterLootCandidate(index)]] |
||
− | |||
− | |||
− | {{Template:WoW API}} |
Revision as of 18:10, 6 January 2007
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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