Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(removed deprecated template)
Tag: WoW API docs
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{wowapi}}
 
{{wowapi}}
  +
Returns info for an equipment slot.
<center>'''GetInventorySlotInfo''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
 
 
invSlotId, textureName, checkRelic = GetInventorySlotInfo(invSlotName)
   
 
==Arguments==
Return information about a specific inventory slot
 
 
:;invSlotName:{{apitype|string}} - [[InventorySlotId|InventorySlotName]] to query (e.g. "HEADSLOT").
   
 
===Returns===
slotId, textureName = GetInventorySlotInfo("slotName")
 
 
:;invSlotId:{{apitype|number}} : [[InventorySlotId]] - The ID to use to refer to that slot in the other GetInventory functions.
== Parameters ==
 
 
:;textureName:{{apitype|string}} - The texture to use for the empty slot on the paper doll display.
=== Arguments ===
 
  +
:;checkRelic:{{apitype|boolean}}
:("slotName")
 
   
  +
<!-- emmylua
:;slotName : String - The [[API TYPE InventorySlotName|InventorySlotName]] to query ("HEADSLOT", etc).
 
  +
---@param invSlotName InventorySlotName
=== Returns ===
 
  +
---@return number invSlotId
:slotId, textureName
+
---@return string textureName
 
  +
---@return boolean checkRelic
:;slotId : Numeric - The [[API TYPE InventorySlotID|slot ID]] to use to refer to that slot in the other GetInventory functions.
 
  +
function GetInventorySlotInfo(invSlotName) end
:;textureName : String - The texture to use for the empty slot on the paper doll display.
 
  +
-->
 
== Details ==
 
: Thanks to [[User:Sij|Sij]] for pointing out the original Wiki page was incorrect.
 

Latest revision as of 02:30, 13 April 2023

Returns info for an equipment slot.

invSlotId, textureName, checkRelic = GetInventorySlotInfo(invSlotName)

Arguments

invSlotName
string - InventorySlotName to query (e.g. "HEADSLOT").

Returns

invSlotId
number : InventorySlotId - The ID to use to refer to that slot in the other GetInventory functions.
textureName
string - The texture to use for the empty slot on the paper doll display.
checkRelic
boolean