Breaks up an amount of money into gold/silver/copper.
formattedAmount = GetCoinText(amount [, separator])
Arguments
- amount
- number - the amount of money in copper (for example, the return value from GetMoney)
- separator
- string? - a string to insert between the formatted amounts of currency, if there is more than one type
Returns
- formattedAmount
- string - a (presumably localized) string suitable for printing or displaying
Example
/script print(GetCoinText(12345," ")) 1 Gold 23 Silver 45 Copper /script print(GetCoinText(12345,"X")) 1 GoldX23 SilverX45 Copper