WoW:API BuyMerchantItem: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API BuyMerchantItem to API BuyMerchantItem without leaving a redirect) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Buys the specified item. | |||
BuyMerchantItem(index {, quantity}); | BuyMerchantItem(index {, quantity}); | ||
==Parameters== | |||
===Arguments=== | |||
:;index : Number - The index of the item in the merchant's inventory | :;index : Number - The index of the item in the merchant's inventory | ||
:;quantity : Number - | :;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. | |||
Latest revision as of 04:45, 15 August 2023
Buys the specified item.
BuyMerchantItem(index {, quantity});
Parameters[edit]
Arguments[edit]
- index
- Number - The index of the item in the merchant's inventory
- quantity
- Number (Optional) - Quantity to buy.
Notes[edit]
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.