WoW:API BuyMerchantItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (cat)
({{wowapi}}, format)
Line 1: Line 1:
<center>'''BuyMerchantItem''' ''-Documentation by [[user:Fenaoin|Fenaoin]]-''</center>
{{wowapi}} __NOTOC__
 
Buys the specified item.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
  BuyMerchantItem(index {, quantity});
  BuyMerchantItem(index {, quantity});


<!-- Describe the purpose of the function, though exhausting detail can be saved for a later section -->
==Parameters==
Buys the specified item.
===Arguments===
----
;''Arguments''
 
<!-- List each argument, together with its type -->
:(index {, quantity})
:;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 - Optional quantity to buy
:;quantity : Number (Optional) - Quantity to buy.
 
----
;''Returns''
 
:nothing
 
----
;''Details''
 
<!-- Details not appropriate for the main description can go here -->
: If the item is sold in stacks, the quantity specifies how many stacks will be bought.


----
==Notes==
{{Template:WoW API}}
If the item is sold in stacks, the quantity specifies how many stacks will be bought.

Revision as of 23:35, 23 December 2006

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.