Skip to content

Stakes, escrow & rental ​

np_darts only moves money between players and pubs: stakes are player versus player, never against the house.

How a charge works ​

Config.Payments What happens
'auto' (default) With np_payments running every charge is a checkout sheet the player confirms (cash or bank, Request with payee none: np_darts holds the money). Without it the framework account Config.Stakes.account (bank) is charged directly
true np_payments is required. Without it every paid action is refused (payments_unavailable)
false Framework money only

Refunds go back through np_payments Refund(ref) to the exact account the money came from; framework charges are paid back to the same account. Before a match starts np_darts asks np_payments IsBusy, so nobody is pulled into a match in the middle of another payment.

Stakes ​

  1. The host sets a stake in the lobby, between Config.Stakes.min and the lower of Config.Stakes.max and the pub's stakeCap, in steps of Config.Stakes.step. No stakes in practice or against the house regular.
  2. When the match starts every player gets a checkout sheet for the stake, all at once. All or nothing: if one declines or can't pay, everyone who already paid is refunded and the match doesn't start.
  3. Each held stake is a row in np_darts_escrow (status held).
  4. At the end the winner gets the pot minus the pub's rake into Config.Stakes.payout (bank). The rake (the pub's rake in %, capped by Config.Stakes.rakeMax, 10 %) goes to the pub's balance and revenue.
End Money
Won, conceded or forfeited Pot minus rake to the winner
Ended by staff (EndMatch, /darts end, np_admin) or a resource stop Every stake refunded
Winner offline at payout A payout_due row, paid when they next load (with a toast)
Refund to an offline player A refund_due row, paid when they next load

Crash safety. Open escrow rows from a previous run are settled at start: stakes paid through np_payments are refunded with Refund(ref), the rest is paid back when the player next loads. A crash or restart never eats a stake.

Big stakes (from Config.Sway.nerves.bigStakeFrom, $1,000) add a little nerves to the sway. A pub's handicapAbove forces the handicap by average above a stake.

Board rental ​

When Config.Rental.enabled and the pub's rental is above 0, the host pays the rental for Config.Rental.minutes (60) when a match starts, unless a player of the match already holds a valid rental. A rental lets you host again for free until it runs out. While the renter is in the pub and not part of the new match, nobody else can start a match on that board (Someone rented this board.). The rental counts as pub revenue and goes to the pub's balance.

Pub Rental Rake Stake cap Handicap above
The Yellow Jack $15 5 % $1,000 $250
Lost MC Clubhouse none 8 % $2,500 none
Tequi-la-la $20 5 % $1,500 $500

These are the shipped defaults in config_pubs.lua; owners change them in the owner panel.

Other charges ​

All through the same checkout sheet (or the framework account):

What Price Paid to
A dart set in the pro shop The set's price np_darts (no payee)
Changing grip, shaft or flight of a bought set Config.Gear.partPrice (60 / 25 / 15) np_darts
New sisal The pub's sisalPrice (240) The pub balance pays first, else the owner
A placed board The pub's boardPrice (1,800) The pub balance pays first, else the owner (staff place for free)
League entry The league's entry Pub revenue
Cup entry The cup's entry, held in escrow The prize pool, minus the house cut

Weekly challenge rewards and cup prizes are paid to the bank. See Leagues, cups & challenges.