v0.13.8

C_Item.GetItemInfo

functionimplementedavailable in: camelot

Returns info for an item.

signaturewowlua
function C_Item.GetItemInfo(    itemInfo: ItemInfo): (string?, string?, ItemQuality?, number?, number?, string?, string?, number?, string?, number?, number?, number?, number?, number?, number?, number?, boolean?, string?)

Parameters

nametype
itemInfoItemInfo

Returns

#nametypedescription
1itemNamestring?The localized name of the item.
2itemLinkstring?ItemLink - The localized link of the item.
3itemQualityItemQuality?Enum.ItemQuality - The quality of the item, e.g. 2 for Uncommon and 3 for Rare quality items.
4itemLevelnumber?The base item level, not including upgrades. See GetDetailedItemLevelInfo() for getting the actual item level.
5itemMinLevelnumber?The minimum level required to use the item, or 0 if there is no level requirement.
6itemTypestring?ItemType - The localized type name of the item: Armor, Weapon, Quest, etc.
7itemSubTypestring?ItemType - The localized sub-type name of the item: Bows, Guns, Staves, etc.
8itemStackCountnumber?The max amount of an item per stack, e.g. 200 for Runecloth.
9itemEquipLocstring?ItemEquipLoc - The inventory equipment location in which the item may be equipped e.g. "INVTYPE_HEAD", or an empty string if it cannot be equipped.
10itemTexturenumber?FileID - The texture for the item icon.
11sellPricenumber?The vendor price in copper, or 0 for items that cannot be sold.
12classIDnumber?ItemType - The numeric ID of itemType
13subclassIDnumber?ItemType - The numeric ID of itemSubType
14bindTypenumber?Enum.ItemBind - When the item becomes soulbound, e.g. 1 for Bind on Pickup items.
15expansionIDnumber?LE_EXPANSION - The related Expansion, e.g. 8 for Shadowlands. On Classic this appears to be always 254.
16setIDnumber?- For example 761 for Red Winter Hat (itemID 21524).
17isCraftingReagentboolean?Whether the item can be used as a crafting reagent.
18itemDescriptionstring?

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Item system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.