{{wowapi}}, format
m (cat) |
({{wowapi}}, format) |
||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Returns information about a merchant's item. | Returns information about a merchant's item. | ||
name, texture, price, quantity, numAvailable, isUsable = GetMerchantItemInfo(index) | name, texture, price, quantity, numAvailable, isUsable = GetMerchantItemInfo(index) | ||
== Arguments == | ==Parameters== | ||
=== Arguments === | |||
:;index : Number - The index of the item in the merchant's inventory | :;index : Number - The index of the item in the merchant's inventory | ||
=== Returns === | |||
== Returns == | |||
:;name : String - The name of the item | :;name : String - The name of the item | ||
:;texture : String - The texture that represents the item's icon | :;texture : String - The texture that represents the item's icon | ||
| Line 22: | Line 15: | ||
== Example == | == Example == | ||
local name, texture, price, quantity, numAvailable, isUsable = GetMerchantItemInfo(4); | local name, texture, price, quantity, numAvailable, isUsable = GetMerchantItemInfo(4); | ||
message(name .. " " .. price .. "c"); | |||
=== Result === | |||
A message stating the name and price of the item in merchant slot 4 appears. | |||