Lore archive · Warcraft Wiki, 2023 dump
API BuyMerchantItem
Last wiki revision 2022-08-03
Buys an item from a merchant. BuyMerchantItem(index[, quantity])
- index: - The index of the item in the merchant's inventory
- quantity: - Quantity to buy.
If the item is sold in stacks, the quantity specifies how many stacks will be bought.
As of 4.1, the quantity argument behavior is different:
- If you do not specify quantity and the item is sold in stacks it will buy a stack.
- If you specify quantity it will buy the specified amount, sold in stacks or not.
The only limitation is the maximum stack allowed to buy from the merchant at one time, you can check this with the GetMerchantItemMaxStack function.
Source
https://warcraft.wiki.gg/wiki/API_BuyMerchantItem · 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.