Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Buys the specified item.

BuyMerchantItem(index[, quantity]);

Arguments

index
number - The index of the item in the merchant's inventory
quantity
number?Optional. Could be nil. - Quantity to buy.

Notes

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.

External links

Advertisement