WoW:API GetMoney: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
/script SendChatMessage("I have "..GetMoney().." copper.")
/script SendChatMessage("I have "..GetMoney().." copper.")


[[Category:API Functions|GetMoney]]
----
[[Category:API Channel Functions|GetMoney]]
{{WoW API}}

Revision as of 04:47, 4 January 2006

Returns an integer value of your held money.

This will need to be parsed to display gold, silver, copper seperately.

format could be expressed as ..ggggsscc

Example:

/script DEFAULT_CHAT_FRAME:AddMessage(GetMoney(),1,1,1);

Another Example:

/script SendChatMessage("I have "..GetMoney().." copper.")


Template:WoW API