Fandom

WoWWiki

API GetMerchantItemCostItem

104,671pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetMerchantItemCostItem
itemTexture, itemValue, itemLink = GetMerchantItemCostItem(index, itemIndex)

Parameters Edit

Arguments

index 
Number - The index of the item in the merchant's inventory
itemIndex 
Number - The index for the required item cost type.


Returns

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.

DetailsEdit

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 GetMerchantItemCostInfo.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki