economy
Base machine type for machinery that needs to interact with users spending Space Cash or credit from Money Accounts has helper procs to automate account authentification and handling transactions.
Vars | |
account_database | the economy database this machine is connected to |
---|---|
cash_stored | Amount of cash "stored" in this machine (used for smashing and grabbing mechanics) |
cash_transaction | Amount of cash inserted into the machine during a transaction |
restricted_bypass | Can this machine access restricted money accounts? |
smash_and_grab | If you beat the shit out of this machine, will money fling out? |
Procs | |
dispense_space_cash | create the most effective combination of space cash piles to make up the requested amount |
Var Details
account_database
the economy database this machine is connected to
cash_stored
Amount of cash "stored" in this machine (used for smashing and grabbing mechanics)
cash_transaction
Amount of cash inserted into the machine during a transaction
restricted_bypass
Can this machine access restricted money accounts?
smash_and_grab
If you beat the shit out of this machine, will money fling out?
Proc Details
dispense_space_cash
create the most effective combination of space cash piles to make up the requested amount
Will create up to 10 stacks of space cash based on the given amount, if there is more than 100,000 given, this proc will return the amount not dispensed.
Arguments:
- amount - amount of space cash to dispense
- user - the mob to dispense the space cash to