Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetMerchantItemCostItem
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} itemTexture, itemValue, itemLink = GetMerchantItemCostItem(index, itemIndex) == Parameters == <big>'''Arguments'''</big> <!-- List each argument, together with its type --> :;index : Number - The index of the item in the merchant's inventory :;itemIndex : Number - The index for the required item cost type. <big>'''Returns'''</big> <!-- List each return value, together with its type --> :;itemTexture : String - The texture that represents the item's icon :;itemValue : Number - The number of that item required :;itemLink : String - An [[itemLink]] for the cost item. ==Details== itemIndex counts into the number of different "alternate currency" tokens required to buy the item under consideration. For example, looking at the 25-player Tier 9 vendor, a chestpiece costs 75 Emblems of Triumph and 1 Trophy of the Crusade. This function would be called with arguments (N,1) to retrieve information about the Emblems and (N,2) to retrieve information about the Trophy, where N is the index of the chestpiece in the merchant window. Most vendor items only use a single type of alternate currency token, so itemIndex will typically be 1. itemIndex should never be larger than the itemCount returned by [[API GetMerchantItemCostInfo|GetMerchantItemCostInfo]].
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)