Community Money Box - adrianomesl/script_shack_support GitHub Wiki

Community Money Box is a script that turns any object into a money box with the features listed below.

Features

  • Anybody can deposit.
  • Versatile withdrawal grant modes.
    • Specific users.
    • Group membership
    • Both of the above
  • Easy to manage granted users. Dialog based user grants management.
  • Easy two-touches withdrawal. First touch shows the withdrawal options, second touch to pay up the selected amount.
  • Keep record of the last twenty transactions. A report can be obtained at any moment.

Configuration

DepositButtons: CSV<integer> - Default 100,200,500,1000. A comma separated list of amounts to present for deposit. The standard SL dialog is used here so the option to enter a custom amount is also available.

Withdrawals are dialog based. The recipient needs to select an amount from the presents. We can configure the minimum and the maximum of these buttons. The intermediate options are calculated based on the current balance and the values of the following settings.

MinimumWithdrawal: <integer> - Default 10. The minimum amount allowed for withdrawal in a single operation.

MaximumWithdrawal: <integer> - Default 1000. The maximum amount allowed for withdrawal in a single operation.

InitialBalance: <integer> - Default 0. When the script is restarted for any reason, the default balance is set to this value. If nothing is given here, the balance will be set to 0 $L.

Withdrawal options

Withdrawal options are calculated by starting at the MaximumWithdrawal amount and dividing by 2 until one of the following two conditions are reached:

  • The amount is smaller than MinimumWithdrawal
  • The number of options is twelve (only up to twelve buttons will be displayed)

A maximum amount of 1000 will generate the following withdrawal options: 1000, 500, 250, 125, 62, 31 and 15. In order for all twelve buttons to show up the maximum amount and the balance should have to be 20480. Anything less will always use less than twelve buttons.

What's next?

We are here to help. Use the Contact page to learn how to get support.

Was this page helpful?

If this page was not helpful enough or it's out of date; please let us know; we want to make it better!.

⚠️ **GitHub.com Fallback** ⚠️