WoW:API SplitMoney: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (formatting)
No edit summary
Line 27: Line 27:
  3. splits 2 gold and 1 silver
  3. splits 2 gold and 1 silver
  4. splits all the money in your possession
  4. splits all the money in your possession
----
----
{{Template:WoW API}}
{{WoW API}}
[[Category:API Functions|SetMapZoom]]
[[Category:API World Map Functions|SetMapZoom]]
 
 
[[Category:API Functions|SplitMoney]]
[[Category:API Group Functions|SplitMoney]]

Revision as of 05:27, 4 January 2006

USE THIS FUNCTION CAREFULLY
As it seems to split all your money to your party members without further warning when called without argument!

The rest of this page not entirely confirmed at the moment


Splits given money amongst the current party members. (including yourself) Defaults to all your money.

SplitMoney("goldsilvercopper")

Arguments
A string containing numbers representing the amount of money to be split.

Example
SplitMoney("30"); --1
SplitMoney("203"); --2
SplitMoney("20100"); --3
SplitMoney(); --4
Result
1. splits 30 copper
2. splits 2 silver and 3 copper
3. splits 2 gold and 1 silver
4. splits all the money in your possession

Template:WoW API