Returns information about an inventory slot

Signature:

id, texture, checkRelic = GetInventorySlotInfo("slotName")

Arguments:

  • slotName - Name of an inventory slot to query (string)
    • AmmoSlot - Ranged ammunition slot
    • BackSlot - Back (cloak) slot
    • Bag0Slot - Backpack slot
    • Bag1Slot - First bag slot
    • Bag2Slot - Second bag slot
    • Bag3Slot - Third bag slot
    • ChestSlot - Chest slot
    • FeetSlot - Feet (boots) slot
    • Finger0Slot - First finger (ring) slot
    • Finger1Slot - Second finger (ring) slot
    • HandsSlot - Hand (gloves) slot
    • HeadSlot - Head (helmet) slot
    • LegsSlot - Legs (pants) slot
    • MainHandSlot - Main hand weapon slot
    • NeckSlot - Necklace slot
    • RangedSlot - Ranged weapon or relic slot
    • SecondaryHandSlot - Off-hand (weapon, shield, or held item) slot
    • ShirtSlot - Shirt slot
    • ShoulderSlot - Shoulder slot
    • TabardSlot - Tabard slot
    • Trinket0Slot - First trinket slot
    • Trinket1Slot - Second trinket slot
    • WaistSlot - Waist (belt) slot
    • WristSlot - Wrist (bracers) slot

Returns:

  • id - The numeric slotId usable in other Inventory functions (number)
  • texture - The path to the texture to be displayed when this slot is empty (string)
  • checkRelic - 1 if the slot might be the relic slot; otherwise nil. The ranged slot token is re-used for the relic slot; if this return is 1, UnitHasRelicSlot should be used to determine how the slot should be displayed. (1nil)