API GetLootSlotType

Returns an integer loot type for a given loot slot. slotType = GetLootSlotType(slotIndex)

Arguments

 * slotIndex : Number - Position in loot window to query, from 1 -.

Returns

 * slotType : Number - Type ID indicating slot content type:
 * 0: LOOT_SLOT_NONE - No contents
 * 1: LOOT_SLOT_ITEM - A regular item
 * 2: LOOT_SLOT_MONEY - Gold/silver/copper coin
 * 3: LOOT_SLOT_CURRENCY - Other currency amount, such as Valor Points

Example
The following snippet takes all items from the open loot window, leaving other loot types: for slot = 1, GetNumLootItems do if GetLootSlotType(slot) == LOOT_SLOT_ITEM then LootSlot(slot); end end