Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 7.0.3 / 1.13.2

Returns readily available item info.

itemID, itemType, itemSubType, itemEquipLoc, icon, classID, subclassID = GetItemInfoInstant(itemInfo) 

Arguments

itemInfo 
string : Item ID, Link or Name.
  • Accepts any valid item ID.
  • Item links can also be in a short format e.g. "item:4306"
  • When passing only a name this requires the item to been "seen" by your client.

Returns

itemID 
number - ID of the item.
itemType 
string : ItemType - The localized type name of the item: Armor, Weapon, Quest, etc.
itemSubType 
string : ItemType - The localized sub-type name of the item: Bows, Guns, Staves, etc.
itemEquipLoc 
string : Enum.InventoryType - The inventory equipment location in which the item may be equipped e.g. "INVTYPE_HEAD", or an empty string if it cannot be equipped.
icon 
number : FileID - The texture for the item icon.
classID 
number : ItemType - The numeric ID of itemType
subclassID 
number : ItemType - The numeric ID of itemSubType

Details

  • This function only returns info that don't require a query to the server. Which has the advantage over GetItemInfo() it will always return data for valid items.

Example

/dump GetItemInfoInstant(4306)
[1] = 4306,         -- itemID
[2] = "Tradeskill", -- itemType
[3] = "Cloth",      -- itemSubType
[4] = "",           -- itemEquipLoc
[5] = 132905,       -- icon
[6] = 7,            -- classID
[7] = 5             -- subclassID

Patch changes

Advertisement