Wikia

WoWWiki

API LootSlotIsItem

Talk0
102,083pages on
this wiki
Revision as of 05:37, July 2, 2009 by Primo Dang (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)

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)

Around Wikia's network

Random Wiki