Wikia

WoWWiki

API LootSlotHasItem

Talk0
102,370pages on
this wiki

Redirected from API LootSlotIsItem

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

Around Wikia's network

Random Wiki