Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

8 Screenshots

  • 807
  • 26
  • 214.53 kB

About BankSystem

Adds a banking system to the game. It is an extended system of economics.

 

Features

  • ATM system (each player can install his own ATM and receive profit from it)
  • ATMs can break
  • ATMs can be repaired
  • Money transfer system between players
  • HumanNPC support
  • Ability for players to earn money
  • Adds a new item to the game (banknotes)
  • Auto Wipe (each item can be customized)
  • Working through third-party economy plugins (optional)
  • Conversion from ServerRewards and Economics

 

Commands

  • bank - open the bank interface
  • bank.givenote [target] [amount] - give banknotes to the player
  • bank.giveatm [target] - give ATM to the player
  • bank.setbalance [target] - set balance to the player
  • bank.deposit [target] - deposit money to the player
  • bank.withdraw [target] - withdraw money from a player
  • bank.transfer [player] [target] - transferring money from a player to another player
  • bank.wipe [type] (0 - all, 1 - players, 2 - logs, 3 - ATMs) - wipe data
  • bank.convert.economics - convert from Economics
  • bank.convert.serverrewards- convert from ServerRewards

 

Hooks

private object CanPlayerCreateCard(BasePlayer player)
private void OnPlayerCreatedCard(BasePlayer player)
private void OnBalanceChanged(ulong member, int amount)

 

API

private bool HasCard(BasePlayer player)
private bool HasCard(ulong member)

private int Balance(BasePlayer player)
private int Balance(ulong member)

private bool Deposit(BasePlayer player, int amount)
private bool Deposit(string member, int amount)
private bool Deposit(ulong member, int amount)

private bool Withdraw(BasePlayer player, int amount)
private bool Withdraw(string member, int amount)
private bool Withdraw(ulong member, int amount)

private bool Transfer(BasePlayer member, BasePlayer target, int amount)
private bool Transfer(string member, string target, int amount)
private bool Transfer(ulong member, ulong target, int amount)

 

Permissions

You can set permission in config, for example: 

"Permission (example: banksystem.use)": "banksystem.use",

You can also configure permissions for ATM breakage%

 

 

Config

{
  "Work with Notify?": true,
  "Commands": [
    "bank"
  ],
  "Permission (example: banksystem.use)": "",
  "Starting balance": 100,
  "Card Image": "https://i.imgur.com/Br9z7Ou.png",
  "Transit Image": "https://i.imgur.com/h2bqMu4.png",
  "Withdraw Image": "https://i.imgur.com/lwVwxm3.png",
  "Transfer Image": "https://i.imgur.com/TBIxUnz.png",
  "Exit Image": "https://i.imgur.com/OGoMu9N.png",
  "Currency Settings": {
    "Display Name": "RUSTNote",
    "Short Name": "sticks",
    "Skin": 2536195910
  },
  "Card expiry date (in days)": 7,
  "ATM Settings": {
    "Minimum deposit fee": 0.0,
    "Maximum deposit fee": 10.0,
    "Default deposit fee": 1.0,
    "Step deposit fee": 0.1,
    "Minimum withdrawal fee": 0.0,
    "Maximum withdrawal fee": 10.0,
    "Default withdrawal fee": 1.0,
    "Step withdrawal fee": 0.1,
    "Default breakage percentage during operation": 1.0,
    "Breakage percentage during operation": {
      "banksystem.vip": 0.7,
      "banksystem.premium": 0.5
    },
    "Repair Settings": {
      "Items (for 1%)": [
        {
          "Short Name": "scrap",
          "Amount (for 1%)": 2.0,
          "Skin": 0,
          "Title (empty - default)": ""
        },
        {
          "Short Name": "metalpipe",
          "Amount (for 1%)": 1.0,
          "Skin": 0,
          "Title (empty - default)": ""
        },
        {
          "Short Name": "metal.fragments",
          "Amount (for 1%)": 15.0,
          "Skin": 0,
          "Title (empty - default)": ""
        }
      ]
    },
    "Display Name": "ATM",
    "Skin": 2457425342,
    "Spawn Settings": {
      "Monuments": {
        "compound": {
          "Display Name": "ATM",
          "Position": {
            "x": -3.5,
            "y": 1.15,
            "z": 2.7
          },
          "Rotation": -90.0,
          "Deposit Fee": 0.0,
          "Withdraw Fee": 0.0
        }
      }
    }
  },
  "Tracking Settings": {
    "Cost Table (shortname - cost)": {
      "sulfur.ore": 0.5,
      "metal.ore": 0.5,
      "hq.metal.ore": 0.5,
      "stones": 0.5,
      "crate_elite": 10.0,
      "crate_normal": 7.0,
      "crate_normal_2": 4.0
    }
  },
  "Wipe Settings": {
    "Wipe Players?": false,
    "Wipe Logs?": true,
    "Wipe ATMs?": true
  },
  "NPC Settings": {
    "NPCs": [
      "1234567",
      "7654321",
      "4644687478"
    ]
  }
}

 

 

  • Like 1

Mevent's Other Downloads


User Feedback

About Us

Codefling is a forward-thinking platform for developers to share and monetize their work from plugins to game assets and everything in-between.

4,288 files sold to 445 customers and $63,094 of payments processed this year!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.