WoW:API GetMerchantItemCostInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Added function)
 
m (Move page script moved page API GetMerchantItemCostInfo to WoW:API GetMerchantItemCostInfo without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}
 
itemCount = GetMerchantItemCostInfo(index);
 
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
Returns extended (PvP) cost info about a merchant's item
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
{{Code/Begin}}
honorPoints, arenaPoints, itemCount = GetMerchantItemCostInfo(index);
{{Code/End}}
 


== Parameters ==
== Parameters ==
Line 20: Line 12:
<!-- List each return value, together with its type -->
<!-- List each return value, together with its type -->


:;honorPoints: Number - The number of honor points required
:;itemCount: Number - The count of item types ([[Mark of Honor|Marks of Honor]], emblems, badges, tokens, etc) required
:;arenaPoints: Number - The number of arena points required
 
:;itemCount: Number - The count of item types (typically [[Mark of Honor|Marks of Honor]]) required


==Details==
==Details==

Latest revision as of 04:46, 15 August 2023

WoW API < GetMerchantItemCostInfo

itemCount = GetMerchantItemCostInfo(index);

Parameters

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

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