WoW:API GetTargetTradeMoney: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GetTargetTradeMoney to WoW:API GetTargetTradeMoney without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<center>'''GetPlayerTradeMoney''' ''-Documentation edited by [[Mind]]-''</center>
{{wowapi}}


Gets the amount of money in the trade window for the target user.
Gets the amount of money in the trade window for the target user.


  GetPlayerTradeMoney();
  GetTargetTradeMoney();


----
----
Line 15: Line 15:
----
----
;''Example''
;''Example''
  x = GetPlayerTradeMoney();
  x = GetTargetTradeMoney();


;''Result''
;''Result''
Line 23: Line 23:
;''Description''
;''Description''


: Retreives the amount of money the target user is giving to the current user (you) for a trade session.  
: Retreives the amount of money the target user is giving to the current user (you) for a trade session.
 
----
{{Template:WoW API}}

Latest revision as of 04:46, 15 August 2023

WoW API < GetTargetTradeMoney

Gets the amount of money in the trade window for the target user.

GetTargetTradeMoney();

Arguments
(none)

Returns

Returns a string in the format of ggggsscc where g is gold, s is silver, and c is copper.


Example
x = GetTargetTradeMoney();
Result

This function will return a string "692214", for 69g 22s 14c.


Description
Retreives the amount of money the target user is giving to the current user (you) for a trade session.