Lore archive · Warcraft Wiki, 2023 dump
API GetLootSlotInfo
Last wiki revision 2022-08-03
Returns info for a loot slot. lootIcon, lootName, lootQuantity, currencyID, lootQuality, locked, isQuestItem, questID, isActive = GetLootSlotInfo(slot)
- slot: - the index of the loot (1 is the first item, typically coin)
- lootIcon: - The path of the graphical icon for the item.
- lootName: - The name of the item.
- lootQuantity: - The quantity of the item in a stack. Note: Quantity for coin is always 0.
- currencyID: - The identifying number of the currency loot in slot, if applicable. Note: Returns nil for slots with coin and regular items.
- lootQuality
- Number - The quality code for that item.
- locked: - Whether you are eligible to loot this item or not. Locked items are by default shown tinted red.
- isQuestItem: - Self-explanatory.
- questID: - The identifying number for the quest.
- isActive: - True if the item starts a quest that you are not currently on.
print("coins: "..string.gsub(item,"\n"," "))
- When returning coin data, the 'quantity' is always 0 and the 'item' contains the amount and text. It also includes a line break after each type of coin. The linebreak can be removed by string substitution.
Source
https://warcraft.wiki.gg/wiki/API_GetLootSlotInfo · 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.