GetPlayerTradeMoney

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 1.0.0 / 1.13.2

Returns the amount of money the player has in the trade window.

playerTradeMoney = GetPlayerTradeMoney()

Arguments
(none)

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

Example
x = GetPlayerTradeMoney();
Result

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


Description
Retreives the amount of money the current user (you) are giving to another player for a trade session.