Purchases an item available from a vendor


See also Merchant functions.

Signature:

BuyMerchantItem(index, quantity)

Arguments:

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