API InitiateTrade

Opens the Trade window with selected target.

InitiateTrade(UnitId);


 * Arguments
 * (String UnitId)


 * UnitId : Either "player", "party1", "party2, "party3", "party4", or "target".


 * Returns

nil on failure

TargetByName("Bob"); InitiateTrade("target");
 * Example


 * Result

Opens the Trade window with selected target.


 * Description


 * Opens the Trade window with selected target.

Related Events:
 * TRADE_ACCEPT_UPDATE
 * TRADE_CLOSED
 * TRADE_MONEY_CHANGED
 * TRADE_PLAYER_ITEM_CHANGED
 * TRADE_REPLACE_ENCHANT
 * TRADE_REQUEST
 * TRADE_REQUEST_CANCEL