WoW:API GetMerchantItemCostItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upgraded code block)
(the editor made me.)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
  itemTexture, itemValue = GetMerchantItemCostItem(index, itemIndex)
  itemTexture, itemValue, itemLink = GetMerchantItemCostItem(index, itemIndex)


== Parameters ==
== Parameters ==

Revision as of 18:48, 15 June 2008

WoW API < GetMerchantItemCostItem

itemTexture, itemValue, itemLink = 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