WoW API: SplitMoney

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API SplitMoney to API SplitMoney without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < SplitMoney

Splits the specified amount of copper between all of your party members from your money.

SplitMoney([copper])

Parameters[edit]

Arguments[edit]

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

Example[edit]

SplitMoney(30); --1
SplitMoney(203); --2
SplitMoney(30201); --3
SplitMoney(); --4
Result
  1. Splits 30 copper.
  2. Splits 2 silver and 3 copper.
  3. Splits 3 gold and 2 silver and 1 copper.
  4. Splits all the money in your possession.

Detials[edit]

Defaults to all your current money.