Lore archive · Warcraft Wiki, 2023 dump
API GetMerchantItemInfo
Last wiki revision 2022-08-01
Returns info for a merchant item. name, texture, price, quantity, numAvailable, isPurchasable, isUsable, extendedCost = GetMerchantItemInfo(index)
- index: - The index of the item in the merchant's inventory
- name: - The name of the item
- texture: - The texture that represents the item's icon
- price: - The price of the item (in copper)
- quantity: - The quantity that will be purchased (the batch size, e.g. 5 for vials)
- numAvailable: - The number of this item that the merchant has in stock. -1 for unlimited stock.
- isPurchasable
- isUsable: - Is 1 if the player can use this item, nil otherwise
- extendedCost: - Is 1 if the item has extended (PvP) cost info, nil otherwise
local name, texture, price, quantity, numAvailable, isUsable, extendedCost = GetMerchantItemInfo(4); message(name .. " " .. price .. "c");
A message stating the name and price of the item in merchant slot 4 appears.
- GetMerchantItemCostInfo
Source
https://warcraft.wiki.gg/wiki/API_GetMerchantItemInfo · 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.