🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
These functions relate to[Trading](https://wow.gamepedia.com/Trade "Trade"). HW[AcceptTrade](https://wow.gamepedia.com/API_AcceptTrade "API AcceptTrade")() - A pending trade will be accepted. [AddTradeMoney](https://wow.gamepedia.com/API_AddTradeMoney "API AddTradeMoney")() - Adds the money dropped into the player's trade frame. [BeginTrade](https://wow.gamepedia.com/API_BeginTrade "API BeginTrade")() [CancelTrade](https://wow.gamepedia.com/API_CancelTrade "API CancelTrade")() - Declines the offer to trade with the other player. [CancelTradeAccept](https://wow.gamepedia.com/index.php?title=API_CancelTradeAccept&action=edit&redlink=1 "API CancelTradeAccept (page does not exist)")() - Cancels the trade attempt which required an accept. [ClickTargetTradeButton](https://wow.gamepedia.com/index.php?title=API_ClickTargetTradeButton&action=edit&redlink=1 "API ClickTargetTradeButton (page does not exist)")(index) [ClickTradeButton](https://wow.gamepedia.com/index.php?title=API_ClickTradeButton&action=edit&redlink=1 "API ClickTradeButton (page does not exist)")(index) - Equivalent of a mouseclick on the trade window buttons \[1-7\]. [CloseTrade](https://wow.gamepedia.com/API_CloseTrade "API CloseTrade")() - Closes the trade. [GetPlayerTradeMoney](https://wow.gamepedia.com/API_GetPlayerTradeMoney "API GetPlayerTradeMoney")() - Returns the amount of money the player has in the trade window. [GetTargetTradeMoney](https://wow.gamepedia.com/API_GetTargetTradeMoney "API GetTargetTradeMoney")() - Returns the amount of money in the trade frame of the target player. [GetTradePlayerItemInfo](https://wow.gamepedia.com/index.php?title=API_GetTradePlayerItemInfo&action=edit&redlink=1 "API GetTradePlayerItemInfo (page does not exist)")(id) - Returns information about a trade item. [GetTradePlayerItemLink](https://wow.gamepedia.com/API_GetTradePlayerItemLink "API GetTradePlayerItemLink")(id) - Returns an[itemLink](https://wow.gamepedia.com/ItemLink "ItemLink")for the given item in your side of the trade window (if open) [GetTradeTargetItemInfo](https://wow.gamepedia.com/API_GetTradeTargetItemInfo "API GetTradeTargetItemInfo")(id) - Returns information about a trade item. [GetTradeTargetItemLink](https://wow.gamepedia.com/API_GetTradeTargetItemLink "API GetTradeTargetItemLink")(id) - Returns an[itemLink](https://wow.gamepedia.com/ItemLink "ItemLink")for the given item in the other player's side of the trade window (if open) [InitiateTrade](https://wow.gamepedia.com/API_InitiateTrade "API InitiateTrade")(UnitId) - Asks the specified unit to trade. [SetTradeMoney](https://wow.gamepedia.com/API_SetTradeMoney "API SetTradeMoney")(copper) - Sets the amount of money offered as part of the player's trade offer.