WoW:API GetMerchantItemCostItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Added function)
 
(upgraded code block)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}
 
itemTexture, itemValue = GetMerchantItemCostItem(index, itemIndex)
 
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Returns cost info for Marks of Honor required to purchase an item
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
{{Code/Begin}}
itemTexture, itemValue = GetMerchantItemCostItem(index, itemIndex)
{{Code/End}}
 


== Parameters ==
== Parameters ==

Revision as of 16:09, 16 May 2007

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