Lore archive · Warcraft Wiki, 2023 dump
API LootSlotHasItem
Last wiki revision 2022-08-01
Returns whether a loot slot contains an item. isLootItem = LootSlotHasItem(lootSlot)
- lootSlot: - index of the loot slot, ascending from 1 to
- isLootItem: - true if the loot slot contains an item rather than coin.
Iterate through the items in the currently opened loot window an display them in the chat frame, side by side. local itemLinkText for i = 1, GetNumLootItems do if (LootSlotHasItem(i)) then local iteminfo = GetLootSlotLink(i); if itemLinkText == nil then itemLinkText = iteminfo else itemLinkText = itemLinkText .. ", " .. iteminfo end end end print(itemLinkText)
Source
https://warcraft.wiki.gg/wiki/API_LootSlotHasItem · 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.