Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GiveMasterLoot

Last wiki revision 2022-07-21

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

for ci = 1, GetNumRaidMembers do if (GetMasterLootCandidate(ci) == UnitName("player")) then for li = 1, GetNumLootItems do GiveMasterLoot(li, ci); end end end

  • Example
  • Result

Gives all the loot to yourself. Naughty.

  • See Also
  • GetNumLootItems
  • GetMasterLootCandidate(index)

Source

https://warcraft.wiki.gg/wiki/API_GiveMasterLoot · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.