WoW:API GetMerchantItemCostInfo: Difference between revisions
Jump to navigation
Jump to search
(upgraded code block) |
(marks of honor no longer the "typical" case these days) |
||
Line 14: | Line 14: | ||
:;honorPoints: Number - The number of honor points required | :;honorPoints: Number - The number of honor points required | ||
:;arenaPoints: Number - The number of arena points required | :;arenaPoints: Number - The number of arena points required | ||
:;itemCount: Number - The count of item types ( | :;itemCount: Number - The count of item types ([[Mark of Honor|Marks of Honor]], emblems, badges, tokens, etc) required | ||
==Details== | ==Details== |
Revision as of 01:12, 21 October 2009
← WoW API < GetMerchantItemCostInfo
honorPoints, arenaPoints, itemCount = GetMerchantItemCostInfo(index);
Parameters
Arguments
- index
- Number - The index of the item in the merchant's inventory
Returns
- honorPoints
- Number - The number of honor points required
- arenaPoints
- Number - The number of arena points required
- 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.