Trading Functions
HW AcceptTrade() - A pending trade will be accepted.
AddTradeMoney() - Adds the money dropped into the player's trade frame.
CancelTrade() - Declines the offer to trade with the other player.
CancelTradeAccept() - Cancels the trade attempt which required an accept.
ClickTargetTradeButton(index)
ClickTradeButton(index) - Equivalent of a mouseclick on the trade window buttons [1-7]
CloseTrade() - Closes the trade.
GetPlayerTradeMoney - Returns the amount of money the player has in the trade window.
GetTargetTradeMoney - Returns the amount of money in the trade frame of the target player.
GetTradePlayerItemInfo(id) - Returns information about a trade item.
GetTradePlayerItemLink(id) - Returns an itemLink for the given item in your side of the trade window (if open)
GetTradeTargetItemInfo(id) - Returns information about a trade item.
GetTradeTargetItemLink(id) - Returns an itemLink for the given item in the other player's side of the trade window (if open)
InitiateTrade(UnitId) - Asks the specified unit to trade.
PickupPlayerMoney(copper) - Picks up an amount of money from the player.
PickupTradeMoney(copper) - Picks up an amount of money from the player's trade offer.
SetTradeMoney(copper) - Sets the amount of money offered as part of the player's trade offer.
ReplaceTradeEnchant() - Confirm the replacement of an enchantment via trade.