m
no edit summary
(Update for GetItemInfo in patch 2.0) |
mNo edit summary |
||
| Line 3: | Line 3: | ||
Return information about a specific item. | Return information about a specific item. | ||
args = GetItemInfo(itemID or "itemString" or "itemLink"); --Item Links allowed after patch 2.0 | args = GetItemInfo(itemID or "itemString" or "itemName" or "itemLink"); --Item Links allowed after patch 2.0 | ||
== Parameters == | == Parameters == | ||
=== Arguments === | === Arguments === | ||
| Line 9: | Line 9: | ||
:;itemId : Integer - The numeric ID of the item. ie. 12345 | :;itemId : Integer - The numeric ID of the item. ie. 12345 | ||
:;"[[itemString]]" : String - The full item ID in string format, e.g. "item:12345:0:0:0" | :;"[[itemString]]" : String - The full item ID in string format, e.g. "item:12345:0:0:0". | ||
:;itemName : String - The Name of the Item, ex: "Hearthstone". | |||
:;"[[itemLink]]" : String - The itemLink, when Shift-Clicking items. | |||
=== Returns === | === Returns === | ||
| Line 15: | Line 17: | ||
:;itemName : String - The name of the item. | :;itemName : String - The name of the item. | ||
:;[[ | :;[[itemLink]] : String - The item Link; you will see the clickable Link instead of the string. (String ex: "|cFFFFFFFF|Hitem:12345:0:0:0|h[Item Name]|h|r") | ||
:;itemQuality : Integer - The [[API TYPE Quality|quality]] of the item. The value is 0 to 6, which represents Poor to Artifact. | :;itemQuality : Integer - The [[API TYPE Quality|quality]] of the item. The value is 0 to 6, which represents Poor to Artifact. | ||
:;itemMinLeveL : Integer - The minimum level required to use the item, 0 being no level requirement. | :;itemMinLeveL : Integer - The minimum level required to use the item, 0 being no level requirement. | ||