DayZ
1,334 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 (13)
100
Jul 24 @ 10:24am
Servers using this mod!
....
18
1
Jan 19 @ 6:22pm
Add to TraderObjects.txt
Faith13
4
Apr 18 @ 1:16pm
Any Nitrado users have a guide for using banking?
LucienWMoon
< >
1,364 Comments
Rustybongs803 Sep 24 @ 5:48am 
Hey bud, if I was to do this,

{
"m_ClassName": "Aztec Coins100",
"m_ClassName": "Casino Coins100",
"m_Value": 100
},

Would this allow 2 currencies?
Deadcraft  [author] Sep 21 @ 12:47am 
@Sabot3ur The only "dependency" my mod has in regards to the trader mod are the class names for the currency. I don't know if the rework changed them or not. If it did, that's the issue and you can easily fix it by replacing the old ones in the banking mod config.

@Bumblebeechitus Are you running the normal trader mod or another mod with different currency. If so, just update the currency class names in the config, assuming you haven't done so already. Either way, if you edited the config, run it through some json validator to make sure it is still valid and also make sure that the values of the currency are integers and not floats, e.g. just 1 instead of 1.0
Bumblebeechitus Sep 20 @ 5:30pm 
I managed to install the ATMs but it would not let me depoist money into the ATM
Sabot3ur Sep 20 @ 3:21pm 
Ok, but on esseker with Dr. Jones Trader reworked you can not deposit. Maybe a local problem of me, but could not fix. TY
Deadcraft  [author] Sep 20 @ 1:10pm 
@Sabot3ur It should work fine as far as I know
Sabot3ur Sep 18 @ 10:54pm 
@deadcraft Does it work with Trader Fixes and features, can not deposit money :-( ?
Deadcraft  [author] Sep 16 @ 12:30am 
@KamikShock Yeah, as long as you don't mean on a monetized server. In that case it technically is as well, but you'd obviously have to be approved by Bohemia for monetization.
KamikShock Sep 15 @ 8:23am 
Hello. Your mod is for free to use?
st4v0 Aug 10 @ 1:02pm 
Or use the builder section in vpp admin to place them
zraider13 Aug 10 @ 12:04pm 
@Mytis85 you have to spawn them on the map. There are numerous ways of doing that. One common method is in TraderObjects.txt. For example like this:
<Object> DC_BankingATM
<ObjectPosition> 4199.451172, 3.863819, 4702.307129
<ObjectOrientation> 24.999979, 0, 0

There are other ways as well but all will require some XML editing and most likely use of the editor mod to place them where you want them.