WoW API < BuyMerchantItem

Buys the specified item.

BuyMerchantItem(index {, quantity});

Parameters[edit | edit source]

Arguments[edit | edit source]

Number - The index of the item in the merchant's inventory
Number (Optional) - Quantity to buy.

Notes[edit | edit source]

If the item is sold in stacks, the quantity specifies how many stacks will be bought. <-- This is either questionable or confusing. For example, Crystal Vials are sold in batches of 5 by default. Giving 2 as the quantity will purchase only 2 Crystal Vials, not 10.

Community content is available under CC-BY-SA unless otherwise noted.