WoW:API GetMerchantItemCostInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Updated for Live Cata info)
m (Move page script moved page API GetMerchantItemCostInfo to API GetMerchantItemCostInfo without leaving a redirect)
 
(No difference)

Latest revision as of 04:46, 15 August 2023

WoW API < GetMerchantItemCostInfo

itemCount = GetMerchantItemCostInfo(index);

Parameters[edit]

Arguments

index
Number - The index of the item in the merchant's inventory

Returns

itemCount
Number - The count of item types (Marks of Honor, emblems, badges, tokens, etc) required


Details[edit]

The itemCount is the number of different types of items required, not how many of those types. For example, the Scout's Tabard which requires 3 Arathi Basin Marks of Honor and 3 Warsong Gulch Marks of Honor would return a 2 for the item count. To find out how many of each item is required, use the GetMerchantItemCostItem function.


Template:AlsoSee