WoW:API InitiateTrade: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (TargetByName is no longer a part of the World of Warcraft API. New way is TargetUnit(player playername))
Line 18: Line 18:
----
----
;''Example''
;''Example''
  TargetByName("Bob");
  TargetUnit("player Bob");
  InitiateTrade("target");
  InitiateTrade("target");
;''Result''
;''Result''


Opens the Trade window with selected target.
Opens the Trade window with selected target (Bob).


----
----

Revision as of 02:39, 29 July 2015

WoW 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


Example
TargetUnit("player Bob");
InitiateTrade("target");
Result

Opens the Trade window with selected target (Bob).


Description
Opens the Trade window with selected target.

Related Events: