WoW API: GetMerchantItemCostItem

Revision as of 16:09, 16 May 2007 by WoWWiki>Hobinheim (upgraded code block)

WoW API < GetMerchantItemCostItem

itemTexture, itemValue = GetMerchantItemCostItem(index, itemIndex)

Parameters

Arguments

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


Returns

itemTexture
String - The texture that represents the item's icon
itemValue
Number - The number of that item required

Details

itemIndex should never be larger than the itemCount returned by GetMerchantItemCostInfo