Fandom

WoWWiki

API BuyMerchantItem

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < BuyMerchantItem

Buys the specified item.

BuyMerchantItem(index {, quantity});

ParametersEdit

ArgumentsEdit

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

NotesEdit

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.

Also on Fandom

Random Wiki