Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 3.0.2 / 1.13.2

Breaks up an amount of money into gold/silver/copper with icons.

formattedAmount = GetCoinTextureString(amount[, fontHeight])

Arguments

amount 
number - the amount of money in copper (for example, the return value from GetMoney)
fontHeight 
Optional Number - the height of the coin icon; if not specified, defaults to 14.

Returns

formattedAmount 
string - a string suitable for printing or displaying.

Example

/script print(GetCoinTextureString(12345))
1g 23s 45c
Advertisement