WoW:API GetMoney: Difference between revisions

449 bytes added ,  19 February 2007
No edit summary
Line 29: Line 29:


Assuming the player has {{gsc|111|22|33}}.
Assuming the player has {{gsc|111|22|33}}.
== Example 2 ==
/script DEFAULT_CHAT_FRAME:AddMessage("[Money Pouch] contains "..(GetMoney()/10000).." gold.",1,1,1);
/script SendChatMessage("[Money Pouch] contains "..(GetMoney()/10000).." gold.");
<big>'''Result'''</big>
111.2233
[Player] says: [Money Pouch] contains 111.2233 gold.
Assuming the player has {{gsc|111|22|33}}.
By deviding with 10000 you get a result in gold. The decimals behind the dot are the silver and the copper.
Anonymous user