Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetLootSlotType

Last wiki revision 2022-11-06

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

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

As of 10.0.0.46455 the constants LOOT_SLOT_NONE, LOOT_SLOT_ITEM, LOOT_SLOT_MONEY, LOOT_SLOT_CURRENCY are no longer defined. A new enumerator table is defined (Enum.LootSlotType) with the same values.

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

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

Source

https://warcraft.wiki.gg/wiki/API_GetLootSlotType · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.