→Returns: more useful explanation of INVTYPE_* globals
m (Changed note for itemName argument slightly and some other minor changes) |
(→Returns: more useful explanation of INVTYPE_* globals) |
||
| Line 1: | Line 1: | ||
{{wowapi}}__NOTOC__ | {{wowapi}}__NOTOC__ | ||
Return information about a specific item. | Return information about a specific item. | ||
itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, itemSubType, itemStackCount, | |||
itemEquipLoc, itemTexture = GetItemInfo(itemID or "itemString" or "itemName" or "itemLink") | |||
== Parameters == | == Parameters == | ||
| Line 26: | Line 26: | ||
:;itemSubType : String - The sub-type of the item: Enchanting, Cloth, Sword, etc. See [[itemType]]. | :;itemSubType : String - The sub-type of the item: Enchanting, Cloth, Sword, etc. See [[itemType]]. | ||
:;itemStackCount : Integer - How many of the item per stack: 20 for Runecloth, 1 for weapon, 100 for Alterac Ram Hide, etc. | :;itemStackCount : Integer - How many of the item per stack: 20 for Runecloth, 1 for weapon, 100 for Alterac Ram Hide, etc. | ||
:;[[itemEquipLoc]] : String - Where the item may be equipped, if it can. If not equippable, this is an empty string, "". The string returned is also the name of a global string variable, i.e. for "INVTYPE_HEAD" | :;[[itemEquipLoc]] : String - Where the item may be equipped, if it can. If not equippable, this is an empty string, "". The string returned is also the name of a global string variable, i.e. for "INVTYPE_HEAD", _G["INVTYPE_HEAD"] is a localized, displayable name of the location. | ||
:;itemTexture : String - The name and path for the inventory icon texture for the item. | :;itemTexture : String - The name and path for the inventory icon texture for the item. | ||