WoW:API SplitMoney: Difference between revisions

m
Move page script moved page API SplitMoney to WoW:API SplitMoney without leaving a redirect
No edit summary
m (Move page script moved page API SplitMoney to WoW:API SplitMoney without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{removedapi|1.9.1|}}
{{wowapi|removed=1.9.1}}


'''USE THIS FUNCTION CAREFULLY'''<br>
Splits the specified amount of copper between all of your party members from your money.
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''
SplitMoney([copper])


----
== Parameters ==
=== Arguments ===
* copper (number) - amount of copper to split between party members. If nil, all of your current money is split.


Splits given money amongst the current party members.  (including yourself)  Defaults to all your money.
== Example ==
 
  SplitMoney(30); --1
SplitMoney("goldsilvercopper")
  SplitMoney(203); --2
 
  SplitMoney(30201); --3
----
;''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
  SplitMoney(); --4


;''Result''
;Result
1. splits 30 copper
# Splits 30 copper.
2. splits 2 silver and 3 copper
# Splits 2 silver and 3 copper.
3. splits 2 gold and 1 silver
# Splits 3 gold and 2 silver and 1 copper.
4. splits all the money in your possession
# Splits all the money in your possession.


----
== Detials ==
{{WoW API}}
Defaults to all your current money.
Anonymous user