API GetCoinTextureString

104,670pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetCoinTextureString

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]);

Parameters Edit

Arguments Edit

Integer - the amount of money in copper (for example, the return value from GetMoney)
Integer - (optional) the height of the coin icon; if not specified, it defaults to 14 (or the chat window font size? unsure)

Returns Edit

String - a string suitable for printing or displaying

Example Edit

/script print(GetCoinTextureString(12345))
1Gold 23Silver 45Copper

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Also on Fandom

Random Wiki