Jump to content

[Beta Release] Gold Coin based Single Currency & Banking System w\Soul 2.0 *Linux DS*


DeanReid

Recommended Posts

*This is for Linux users only*

 

*Development Status*

- Single Currency - 100%

- Single Currency/Multi-Char - 50%

Admin Restriction through Database 30%

- 999 Hive Support - 10%

 

Issues:

 

- No Known Issues at the moment.

 

 

Download *Automatic*

 

Github

 

Instruction Manual

 

Mission.pbo 

Nothing much changes in the mission.pbo so you could just follow Zupa and Soul's steps for that or use the provided mission, Only major changes are in the server.pbo

 

Server.pbo

The following files were changed in the server.pbo nothing else 

 

- server_playerSetup.sqf

- server_playerSync.sqf

- server_functions.sqf

 

All changes in server_playerSetup and playerSync would be easy enough to just copy and paste the files but all changes are clearly marked in the file and I will eventually write up a full tutorial when I get a second

 

in the server_functions.sqf

 

Under

/* PVS/PVC - Skaronator */
server_sendToClient =            compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_sendToClient.sqf";

place this line

#include "\z\addons\dayz_server\bankzones\bankinit.sqf"

and copy the bankzones folder into the main server file

 

 

Battleye Filters

 

Default

 

Replace the line 2 with the following

5 "" !"PVDZE_" !"norrn" !"usec" !="remExField" !="remExFP" !="drn_AskServerDynamicWeatherEventArgs" !="BIS_effects_gepv" !="PVDZ_Server_Simulation" !="PVDZE_bank_Save" !="PVDZE_account_Doublecheck"

infiSTAR

On Line 7 after !="PVDZE_obj_getlocalVars"

add

!="PVDZE_bank_Save" !="PVDZE_account_Doublecheck"

 

 

 

SQL Query

Copy the following into a SQL Query  e.g phpmyadmin

SET FOREIGN_KEY_CHECKS=0;

DROP TABLE IF EXISTS `Banking_DATA`;

CREATE TABLE `Banking_DATA` (
`PlayerUID` varchar(20) NOT NULL DEFAULT '0',
`PlayerName` varchar(128) NOT NULL DEFAULT 'Null',
`BankSaldo` bigint(24) NOT NULL DEFAULT '0',
`LastUpdated` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`PlayerUID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

ALTER TABLE `Character_DATA` ADD CashMoney int(11) NOT NULL DEFAULT 0 AFTER PlayerUID;

 

Writer.pl

To be safe use the file provided as it could corrupt your database if not done correctly all you need to do is copy 

use constant {
INSTANCE => 11, # Chernarus instance
DB_NAME => 'dayz_epoch', # Set database name
DB_LOGIN => 'USER', # Set database login
DB_PASSWD => 'PASSWORD', # Set database password
DB_HOST => 'localhost', # Set database host
DB_PORT => 3306, # Set database port (default 3306)

CACHE_DIR => $ENV{'PWD'}.'/cache/',
# Start inventory of player
INVENTORY => '[["8Rnd_9x18_Makarov","8Rnd_9x18_Makarov","ItemBandage","ItemPainkiller"],["ItemMap","ItemCompass","ItemRadio","Makarov","ItemSodaCoke","FoodbeefCooked"]]',
BACKPACK => '["DZ_Patrol_Pack_EP1",[],[]]',
MODEL => '"Survivor2_DZ"'
}; 

from the old writer.pl and replace in the new one.

 

 

 

Credits

 

Maca134 - Original Single Currency code for CCG Servers

Zupa *Original Public Release*

- Soul *Modified Hive*

- AsReMix *Sexy GUI*

A Pollo *Writing up writer.pl changes for Linux and alot of the changes in server.pbo

 

If any of the credits are wrong on who did what then let me know   :P

 

 

If you are looking for the Windows version follow the link below

[PROJECT] Gold Coin bases Single Currency & Banking System

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...