Lore archive · Warcraft Wiki, 2023 dump
API GetItemInfoInstant
Last wiki revision 2023-01-30
Returns readily available info for an item. itemID, itemType, itemSubType, itemEquipLoc, icon, classID, subclassID = GetItemInfoInstant(item)
- item: :
- Accepts any valid item ID.
- Accepts an item link, or in format.
- Accepts a localized item name but this requires the item to be or have been in the player's inventory (bags/bank) for that session.
- itemID: - ID of the item.
- itemType: : ItemType - The localized type name of the item: Armor, Weapon, Quest, etc.
- itemSubType: : ItemType - The localized sub-type name of the item: Bows, Guns, Staves, etc.
- itemEquipLoc: : ItemEquipLoc - The inventory equipment location in which the item may be equipped e.g., or an empty string if it cannot be equipped.
- icon: : FileID - The texture for the item icon.
- classID: : ItemType - The numeric ID of
- subclassID: : ItemType - The numeric ID of
- This function only returns info that don't require a query to the server. Which has the advantage over it will always return data for valid items.
- Prints item information for Silk Cloth
Source
https://warcraft.wiki.gg/wiki/API_GetItemInfoInstant · 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.