C_Item. GetItemInfo
functionimplementedavailable in: camelot
Returns info for an item.
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
| name | type |
|---|---|
itemInfo | ItemInfo |
Returns
| # | name | type | description |
|---|---|---|---|
| 1 | itemName | string? | The localized name of the item. |
| 2 | itemLink | string? | ItemLink - The localized link of the item. |
| 3 | itemQuality | ItemQuality? | Enum.ItemQuality - The quality of the item, e.g. 2 for Uncommon and 3 for Rare quality items. |
| 4 | itemLevel | number? | The base item level, not including upgrades. See GetDetailedItemLevelInfo() for getting the actual item level. |
| 5 | itemMinLevel | number? | The minimum level required to use the item, or 0 if there is no level requirement. |
| 6 | itemType | string? | ItemType - The localized type name of the item: Armor, Weapon, Quest, etc. |
| 7 | itemSubType | string? | ItemType - The localized sub-type name of the item: Bows, Guns, Staves, etc. |
| 8 | itemStackCount | number? | The max amount of an item per stack, e.g. 200 for Runecloth. |
| 9 | itemEquipLoc | string? | 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. |
| 10 | itemTexture | number? | FileID - The texture for the item icon. |
| 11 | sellPrice | number? | The vendor price in copper, or 0 for items that cannot be sold. |
| 12 | classID | number? | ItemType - The numeric ID of itemType |
| 13 | subclassID | number? | ItemType - The numeric ID of itemSubType |
| 14 | bindType | number? | Enum.ItemBind - When the item becomes soulbound, e.g. 1 for Bind on Pickup items. |
| 15 | expansionID | number? | LE_EXPANSION - The related Expansion, e.g. 8 for Shadowlands. On Classic this appears to be always 254. |
| 16 | setID | number? | - For example 761 for Red Winter Hat (itemID 21524). |
| 17 | isCraftingReagent | boolean? | Whether the item can be used as a crafting reagent. |
| 18 | itemDescription | string? |
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 ↗.