Purchases an item available from a vendor
See also Merchant functions.
Signature:
BuyMerchantItem(index,
quantity)
Arguments:
index
- Index of an item in the vendor's listing (between 1 andGetMerchantNumItems()
) (number
)quantity
- Number of items to purchase (between 1 andGetMerchantItemMaxStack(index)
) (number
)
This function does not prompt the user for confirmation before its results take effect -- that behavior is provided by the default UI, and this function is called from the confirmation dialog