WoW:API BuyMerchantItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{wowapi}}, format)
Line 9: Line 9:


==Notes==
==Notes==
If the item is sold in stacks, the quantity specifies how many stacks will be bought.
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.

Revision as of 20:11, 14 April 2011

WoW API < BuyMerchantItem

Buys the specified item.

BuyMerchantItem(index {, quantity});

Parameters

Arguments

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

Notes

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.