49
edits
No edit summary |
m (→Changes) |
||
| 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, | itemName, itemLink, itemRarity, itemLevel, itemMinLevel, itemType, | ||
itemSubType, itemStackCount, itemEquipLoc, itemTexture, itemSellPrice = | |||
GetItemInfo(itemID or "itemString" or "itemName" or "itemLink") | |||
== Parameters == | == Parameters == | ||
| Line 44: | Line 44: | ||
:: 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. | :: 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 | :;itemTexture | ||
:: String - | :: String (number) - Texture Id of the item icon. | ||
:;itemSellPrice | :;itemSellPrice | ||
:: Integer - Items vendor value, in copper. Will need to be parsed into gold, silver, copper. Format ggggsscc. | :: Integer - Items vendor value, in copper. Will need to be parsed into gold, silver, copper. Format ggggsscc. | ||
| Line 56: | Line 56: | ||
==Details== | ==Details== | ||
* If you have never seen the item that belongs to the Item ID or Item Link it will return ''nil''. | |||
* All string returns (itemName, itemType, itemSubType) are localized. Prior to 1.9, itemEquipLoc was localized also. | |||
== Changes == | |||
* Patch 3.2 - 11th returned value is the Vendor Sell Price for that item. | |||
* Patch 7.0.3 - itemTexture is now returned as a texture id, type number, rather than the full texture path as a string from before. | |||