→ WoW API
Breaks down an amount of money into gold/silver/copper, inserts separator strings, and returns the resulting string.
formattedAmount = GetCoinText(amount, "separator");
- Integer - the amount of money in copper (for example, the return value from GetMoney)
- String - a string to insert between the formatted amounts of currency, if there is more than one type
- String - a (presumably localized) string suitable for printing or displaying
/script print(GetCoinText(12345," ")) 1 Gold 23 Silver 45 Copper /script print(GetCoinText(12345,"X")) 1 GoldX23 SilverX45 Copper
Community content is available under CC-BY-SA unless otherwise noted.