Navigation menu

WoW:API SetTradeMoney: Difference between revisions

Jump to navigation Jump to search
m
Move page script moved page API SetTradeMoney to WoW:API SetTradeMoney without leaving a redirect
mNo edit summary
m (Move page script moved page API SetTradeMoney to WoW:API SetTradeMoney without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
Sets the amount of money offered as part of the player's trade offer.
SetTradeMoney(copper);


----
== Arguments ==
;''Arguments''
; copper : Amount of money, in copper, to offer for trade.


:''amount - Amount of money to drop in the trade window in copper.''
== Example ==
The following will put {{cost|g=1}} into the trade window:
SetTradeMoney(1 * 100 * 100);


----
== See also ==
;''Returns''
* {{api|PickupTradeMoney}}
 
* {{api|AddTradeMoney}}
:;nil
 
----
;''Example''
This example will drop in 1 gold.
SetTradeMoney(10000);
 
;''Result''
 
----
;''Description''
 
: Drops the <amount> of money (in copper pieces) into the trade window.
Anonymous user