Fandom

WoWWiki

API LootSlotHasItem

104,992pages on
this wiki
Add New Page
Talk0 Share
WoW API < LootSlotHasItem

Parameters Edit

Arguments Edit

slot 
number - the loot slot.

Returns Edit

isLootItem 
boolean - is it a loot item instead of a coin

Example Edit

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 (LootSlotIsItem(i)) then
         local iteminfo = GetLootSlotLink(i);
         if itemLinkText == nil then
              itemLinkText = iteminfo
         else
              itemLinkText = itemLinkText..iteminfo
         end
    end
end
DEFAULT_CHAT_FRAME:AddMessage(itemLinkText)

Notes Edit

  • Renamed from LootSlotIsItem in 5.0.4

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.