WoW:API GetMerchantItemCostItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(the editor made me.)
(added 3rd return val to main chunj of article)
Line 16: Line 16:
:;itemTexture : String - The texture that represents the item's icon
:;itemTexture : String - The texture that represents the item's icon
:;itemValue : Number - The number of that item required
:;itemValue : Number - The number of that item required
:;itemLink : String - An [[itemLink]] for the cost item.


==Details==
==Details==

Revision as of 01:56, 23 February 2009

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
itemLink
String - An itemLink for the cost item.

Details

itemIndex should never be larger than the itemCount returned by GetMerchantItemCostInfo