DayZ
1,093 ratings
Banking
2
2
6
5
5
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
21.118 MB
Aug 16, 2019 @ 3:47am
Nov 26, 2020 @ 11:33pm
13 Change Notes ( view )

Subscribe to download
Banking

Description
This mod adds a banking system and requires the Community Framework.

The config can be found in a folder called "DC_Banking" located in the server profile folder and by default supports the currency from the Trader mod by Dr_J0nes.
You do not have to create the config yourself, it will get generated once you start the server for the first time after installing the mod or if no config could be found:
//Do not copy this config directly, let it generate a new one on the first server start after installing this mod instead, otherwise it will cause issues, since the comments in here are causing issues with the json format { "m_DefaultMaxCurrency": 10000, //The maximum amount of currency a player can have stored "m_StartCurrency": 0, //The amount of currency that players start with in their account "m_PlaceExcessiveCurrencyOnGround": 1, //A bool that decides whether currency that can not be carried by the player is placed on the ground "m_CreateLogs": 1, //A bool that decides whether logs should be created in the script*.log file in the server profile folder "m_MessageDisplayTime": 5, //The time that messages will be displayed for in seconds "m_TransactionDelayTime": 1, //The time that users will have to wait before being able to make another deposit/withdrawal request in seconds "m_BankingCurrencyArray": [ //An array that contains all currency class names and values { "m_ClassName": "MoneyRuble100", "m_Value": 100 }, { "m_ClassName": "MoneyRuble50", "m_Value": 50 }, { "m_ClassName": "MoneyRuble25", "m_Value": 25 }, { "m_ClassName": "MoneyRuble10", "m_Value": 10 }, { "m_ClassName": "MoneyRuble5", "m_Value": 5 }, { "m_ClassName": "MoneyRuble1", "m_Value": 1 } ] }

Player data can be found in the "PlayerDatabase" folder and is named after the steamID64 of the corresponding player:
{ "m_PlainID": "01234567891234567", //ID of the player "m_Username": "Survivor", //Name of the player that was last used while using the banking system "m_OwnedCurrency": 11000, //Amount of currency the player has stored "m_MaxOwnedCurrencyBonus": 4000 //Maximum amount of currency the player can own on top of the max currency set in the config (To, for example, allow long-time players or event winners to store more than normal players) }

By default an ATM with the classname "DC_BankingATM" is used to access the banking menu and has to be placed like a custom building (using the community offline mode or getting the position and orientation manually), but any object should be usable as long as the action "DC_ActionOpenBankingMenu" is added.
Classnames: "DC_BankingLocker" "DC_BankingATM" "DC_BankingATMRed" "DC_BankingATMGreen" "DC_BankingATMBlue" "DC_BankingATMDarkGreen" "DC_BankingATMDarkBlue" "DC_BankingATMOrange" "DC_BankingATMYellow" "DC_BankingATMPurple" "DC_BankingATMWhite" "DC_BankingATMGray" Green Mountain ATM: Position: "3706.7 402.012 5984.86" Orientation: "90 0 0" Position: "3704.7 402.332 6003.1" Orientation: "275 0 0" Kumyrna ATM: Position: "8360.15 292.054 5994.15" Orientation: "325 0 0" Position: "8350.7 292.011 5978.3" Orientation: "235 0 0" If you should be using the Stary or Klen trader mods: Stary ATM: Position: "6262.1 301.012 7725.4" Orientation: "35 0 0" Klen ATM: Position: "11477.8 341.941 11341.6" Orientation: "35 0 0" If you are using the community offline mode function: SpawnObject("DC_BankingATM", "3706.7 402.012 5984.86", "90 0 0"); //Green Mountain ATM 1 SpawnObject("DC_BankingATM", "3704.7 402.332 6003.1", "275 0 0"); //Green Mountain ATM 2 SpawnObject("DC_BankingATM", "8360.15 292.054 5994.15", "325 0 0"); //Kumyrna ATM 1 SpawnObject("DC_BankingATM", "8350.7 292.011 5978.3", "235 0 0"); //Kumyrna ATM 2 SpawnObject("DC_BankingATM", "6262.1 301.012 7725.4", "35 0 0"); //Stary ATM SpawnObject("DC_BankingATM", "11477.8 341.941 11341.6", "35 0 0"); //Klen ATM Thanks to =]PMC[=Tyson for providing the locations for his PMC traders: SpawnObject( "DC_BankingATMDarkGreen", "13326.676758 6.065017 6766.269043", "-20.000000 0.000000 0.000000" ); //PMC Trader Funfair SpawnObject( "DC_BankingATMDarkBlue", "13345.848633 6.033757 6739.655273", "75.000000 0.000000 0.000000" ); //PMC Trader Funfair SpawnObject( "DC_BankingATMOrange", "13349.243164 5.359690 6703.152344", "160.000000 0.000000 0.000000" ); //PMC Trader Funfair SpawnObject( "DC_BankingATMRed", "13324.538086 6.165526 6765.516602", "-20.000000 0.000000 0.000000" ); //PMC Trader Funfair SpawnObject( "DC_BankingATM", "9164.450195 93.925499 13163.900391", "50.000004 0.000000 0.000000" ); //PMC Trader Prison SpawnObject( "DC_BankingATMDarkBlue", "9172.360352 90.937103 13229.299805", "-45.000000 0.000000 0.000000" ); //PMC Trader Prison SpawnObject( "DC_BankingATM", "172.014313 472.758850 11316.481445", "35.000004 0.000000 0.000000" ); //PMC Trader Camp

Most items should be useable as currency.
Double clicking on the amount field will empty it. Double clicking on the deposit/withdraw buttons while the amount field is 0 will deposit/withdraw as much currency as possible.

You should probably not double click the withdraw button while the amount is set to 0 like mentioned above since you might end up dropping part of the withdrawn money on the ground if you don't have enough room in your inventory to hold it.

Everything should work as intended, but I only tested this mod with a couple of people at once, so if anyone finds bugs, issues or has suggestions just hit me up on steam or discord: Deadcraft#8378

I do not give permission to distribute, repack, reupload or modify this mod in any way without my permission. Monetizing features of this mod (for example selling increases in maximum storable currency) is also not allowed.

Should your server break Bohemia's monetization guidelines in any way, you are not allowed to use this mod.
Popular Discussions View All (14)
93
May 2 @ 2:59am
Servers using this mod!
....
16
1
Jun 27 @ 12:02pm
Add to TraderObjects.txt
Faith13
7
Feb 22, 2021 @ 12:10pm
PINNED: How to add custom objects to your map
Deadcraft
< >
1,269 Comments
SCLowTonez Jun 17 @ 7:32pm 
I do not plan on making a similar mod nor distributing the works derived from the source files. Just use this as some what of a reference to see how to code a GUI addition that counts the money in a players inventory and displays it on screen so I don't have to count all the money I collect as I am collecting it, I want it to be added up and shown to me on screen. All work I do will not intervene with this mod as I will use all unique pathing so it will not conflict with the Bank mod as I use this amazing mod myself on my server. So I will be testing to see if any scripts conflict which for this to work correctly for me it must not. But no worries there anyhow since I DO NOT wish to release the counter on workshop.
SCLowTonez Jun 17 @ 7:14pm 
Hey Deadcraft, AMAZING skills on Developing this Mod! I was wondering if I could use the source to see how to create a CurrencyCounter addition to my GUI. I just wish to view the source files and view them as a guide to help me learn Code. Very interested in educating myself on scripting and development and wish to have permission to view these works as educational reference.
vip-razor Jun 12 @ 11:55pm 
Здравствуйте можно использовать ваш мод на своем сервере?
Revo Jun 4 @ 10:13pm 
@blackout idk if you ever got it fixed but if anybody else has this problem lowering the max currency should do the trick
Deadcraft  [author] May 25 @ 9:10am 
@Blackout Run your config through some json validator. You most like have some syntax error in there
Blackout May 25 @ 9:03am 
I am having an issue where the ATM does not recognize money in the players inventory. Players can not deposit anything. What am I missing?
O6packvskeg May 19 @ 10:16am 
we are trying to get your permission to modify the file structure to save the banking info outside of the server folder in order to link 2 servers to the same bank that way they will keep their money on either server but hive isnt compatible so we were hoping you would show a little mercy and allow us to try , we arent sure it will even work but we wanted to get your permission to try first
Deadcraft  [author] May 19 @ 1:54am 
@O6packvskeg I generally don't allow repacking and I don't take commissions for DayZ mods either. For most modifications there shouldn't be any need to repack to begin with as you can use the modded and override keywords to adjust most of the functionality of a mod
O6packvskeg May 18 @ 2:01pm 
@Deadcraft
O6packvskeg May 18 @ 2:00pm 
would possibly even commission you to do it for me if your interested