Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetMerchantItemCostItem

Last wiki revision 2022-07-21

Returns info for the currency cost for a merchant item. itemTexture, itemValue, itemLink, currencyName = GetMerchantItemCostItem(index, itemIndex)

  • index: - Slot in the merchant's inventory to query.
  • itemIndex: - The index for the required item cost type, ascending from 1 to returned by.
  • itemTexture: - The texture that represents the item's icon
  • itemValue: - The number of that item required
  • itemLink: - An itemLink for the cost item, nil if a currency.
  • currencyName: - Name of the currency required, nil if an item.
  • counts into the number of different "alternate currency" tokens required to buy the item under consideration. For example, looking at the 25-player Tier 9 vendor, a chestpiece costs 75 Emblems of Triumph and 1 Trophy of the Crusade. This function would be called with arguments (N,1) to retrieve information about the Emblems and (N,2) to retrieve information about the Trophy, where N is the index of the chestpiece in the merchant window.

Source

https://warcraft.wiki.gg/wiki/API_GetMerchantItemCostItem · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.