Wowpedia
Advertisement
Game Flavors
Links
Patch
Added in 3.0.2 / 1.13.2

Breaks down an amount of money into gold/silver/copper, inserts appropriate "|T" texture strings for coin icons, and returns the resulting string.

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