WoW API: LootSlotHasItem
ParametersEdit
ArgumentsEdit
- slot
- number - the loot slot.
ReturnsEdit
- isLootItem
- boolean - is it a loot item instead of a coin
ExampleEdit
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 DEFAULT_CHAT_FRAME:AddMessage(itemLinkText)
NotesEdit
- Renamed from LootSlotIsItem in 5.0.4