Zupa's Banner

Temp transferred

The 999 Single Currency & Banking DayZ Epoch

This version is onl if u can reach the arma root directory! I dont take responsibilty for hackers hacking in the system. I hope your admin team deals with hem.

There is still alot of optimizing to be done. So i don't know if would lower your server performance.

In the download folder, there is a full working mission and server pbo.

Github / Download

Mission PBO

0. Drop the content of the "Zupa" zip file in the root of your missions pbo.

1. You will need a custom compiles and variables and selfactions. If you want this scripts, i think you already have those 3


//in init.sqf , default stuff.
call compile preprocessFileLineNumbers "init\variables.sqf";
// and
call compile preprocessFileLineNumbers "init\compiles.sqf";


// in compiles
fnc_usec_selfActions =	compile preprocessFileLineNumbers "compile\fn_selfActions.sqf";

                

2. In your compiles , change the bottom so it looks like this.


call compile preprocessFileLineNumbers "gold\player_traderMenu.sqf";

initialized = true;

                

3. In your compiles , change the player_wearclothes line to this: !!! VERY IMPORTANT


// Otherwise your server will crash.
player_wearClothes =		compile preprocessFileLineNumbers "compile\player_wearClothes.sqf";
                

4. In your description.ext


// Completely on the top
#include "CfgServerTrader\cfgServerTrader.hpp"
                            

 //search for
aiKills = 1;
diagRadio = 1;
diagHit = 1;
// add this here
#include "addons\playerhud\commonhud.hpp"
#include "hw.hpp"

                            

// Add all this on the bottom
class RscTitles
{
#include "addons\playerhud\hud.hpp"
};

#include "defines.hpp"
#include "gold\common.hpp"
#include "gold\bank_dialog.hpp"
#include "gold\give_player_dialog.hpp"

                            

5. In your variables.sqf


// Add on top so it looks like this
disableSerialization;

DZE_ATM = ["Laptop_EP1"]; // objects where u can bank, add them here if u want extra's.
                            

6. In your init.sqf


// Add this
DZE_ConfigTrader = true;
DZE_AsReMix_PLAYER_HUD = true; //Open Custom 	AsReMix Player HUD

//Above these guys
//Load in compiled functions
call compile preprocessFileLineNumbers "init\variables.sqf";				//Initilize the Variables (IMPORTANT: Must happen very early)
progressLoadingScreen 0.1;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\publicEH.sqf";				//Initilize the publicVariable event handlers
progressLoadingScreen 0.2;
call compile preprocessFileLineNumbers "\z\addons\dayz_code\medical\setup_functions_med.sqf";	//Functions used by CLIENT for medical
progressLoadingScreen 0.4;
call compile preprocessFileLineNumbers "init\compiles.sqf";				//Compile regular functions
progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders.sqf";				//Compile trader configs
progressLoadingScreen 1.0;


                            
     // and this completely at the bottom
        execVM "gold\init.sqf";
        execVM "gold\addbankmarkers.sqf";
     // my debug
            if (!isDedicated) then {
            if (DZE_AsReMix_PLAYER_HUD) then {
            execVM "addons\playerhud\playerHud.sqf"//AsReMix Player HUD
            };
            };

7. I recommend using my server traders , if you don't, then see that the trader id's are the same as the ones from the config trader files.

8. IF you want safezones at my ATM's then use these sensors in your mission.sqm ( watch out with the unmbers and the item=xx varaible on top


                	class Item8
		{
			position[]={6772.35,0.103,2494.58};
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonebank1";
			expCond="(player distance zonebank1) < 15;";
			expActiv="TitleText[""Now entering Banking area"",""PLAIN DOWN""]; canbuild = false;insafezone = true;";
			expDesactiv="TitleText[""Now leaving Banking area"",""PLAIN DOWN""]; canbuild = true;insafezone = false;";
			class Effects
			{
			};
		};

		class Item9
		{
			position[]={10005.678, 0.61099607,1861.6836,  };
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonebank2";
			expCond="(player distance zonebank2) < 15;";
			expActiv="TitleText[""Now entering Banking area"",""PLAIN DOWN""]; canbuild = false;insafezone = true;";
			expDesactiv="TitleText[""Now leaving Banking area"",""PLAIN DOWN""]; canbuild = true;insafezone = false;";
			class Effects
			{
			};
		};

		class Item10
		{
			position[]={12214.157,  0.61100769,9731.7646  };
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonebank3";
			expCond="(player distance zonebank3) < 15;";
			expActiv="TitleText[""Now entering Banking area"",""PLAIN DOWN""]; canbuild = false;insafezone = true;";
			expDesactiv="TitleText[""Now leaving Banking area"",""PLAIN DOWN""]; canbuild = true;insafezone = false;";
			class Effects
			{
			};
		};
		class Item11
		{
			position[]={13343.663, 0.61099243,5488.4917 };
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonebank4";
			expCond="(player distance zonebank4) < 15;";
			expActiv="TitleText[""Now entering Banking area"",""PLAIN DOWN""]; canbuild = false;insafezone = true;";
			expDesactiv="TitleText[""Now leaving Banking area"",""PLAIN DOWN""]; canbuild = true;insafezone = false;";
			class Effects
			{
			};
		};
		class Item12
		{
			position[]={1008.7841, 0.60786343,2218.9775 };
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonebank5";
			expCond="(player distance zonebank5) < 15;";
			expActiv="TitleText[""Now entering Banking area"",""PLAIN DOWN""]; canbuild = false;insafezone = true;";
			expDesactiv="TitleText[""Now leaving Banking area"",""PLAIN DOWN""]; canbuild = true;insafezone = false;";
			class Effects
			{
			};
		};

			class Item13
		{
			position[]={8666.5801, 0.73773193,6517.2212};
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonebank6";
			expCond="(player distance zonebank6) < 15;";
			expActiv="TitleText[""Now entering Banking area"",""PLAIN DOWN""]; canbuild = false;insafezone = true;";
			expDesactiv="TitleText[""Now leaving Banking area"",""PLAIN DOWN""]; canbuild = true;insafezone = false;";
			class Effects
			{
			};
		};

		class Item14
		{
			position[]={3649.0173, 0.73773193,8532.2158};
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zonebank25";
			expCond="(player distance zonebank25) < 15;";
			expActiv="TitleText[""Now entering Banking area"",""PLAIN DOWN""]; canbuild = false;insafezone = true;";
			expDesactiv="TitleText[""Now leaving Banking area"",""PLAIN DOWN""]; canbuild = true;insafezone = false;";
			class Effects
			{
			};
		};
            

9. fn_selfactions.sqf


// underneeth the folling:
	player removeAction s_player_fuelauto;
	s_player_fuelauto = -1;
	player removeAction s_player_fuelauto2;
	s_player_fuelauto2 = -1;

//paste this
	player removeAction s_givemoney_dialog;
	s_givemoney_dialog = -1;
	player removeAction s_bank_dialog;
	s_bank_dialog = -1;
	player removeAction s_bank_dialog2;
	s_bank_dialog2 = -1;
        

// add the following

   		//banking FROM HERE

	if(_typeOfCursorTarget in DZE_UnLockedStorage and (player distance _cursorTarget < 3)) then {
		if (s_bank_dialog < 0) then {
				s_bank_dialog = player addAction ["Online Banking", "gold\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
		};
	} else {
     	player removeAction s_bank_dialog;
		s_bank_dialog = -1;
	};

	// banking atm

	if(_typeOfCursorTarget in DZE_ATM  and (player distance _cursorTarget < 3)) then {
		if (s_bank_dialog2 < 0) then {
			s_bank_dialog2 = player addAction ["Bank ATM", "gold\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
		};
	} else {
		player removeAction s_bank_dialog2;
		s_bank_dialog2 = -1;
	};

                 // TO HERE

//Above the following line.

	//Allow owner to pack vault
        

//look for the following line
// Study Body
// And change that whole block of code with the following.

// Study Body
	if (_player_studybody) then {
		if (s_player_studybody < 0) then {
		 // --------ZUPA - Check Wallet --------
				s_player_studybody = player addAction [("<t color=""#FF0000"">"+("Check Wallet") + "</t>"), "gold\check_wallet.sqf",_cursorTarget, 0, false, true, "",""];
			// ---- ZUPA END ---
		};
	} else {
		player removeAction s_player_studybody;
		s_player_studybody = -1;
	};
        

//Above the following line

//Fuel Pump


// put the following


if (_isMan and _isAlive and !_isZombie and !_isAnimal and !(_traderType in serverTraders)) then {
    if (s_givemoney_dialog < 0) then {
        s_givemoney_dialog = player addAction [format["Give Money to %1", (name _cursorTarget)], "gold\give_player_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
    };
} else {
    player removeAction s_givemoney_dialog;
    s_givemoney_dialog = -1;
};

            

Extra. You can edit bank limits at gold/init.sqf in the config part. (default = limits disabled).

Server PBO

10. Copy the compile/player_setup.sqf and the compile/player_sync.sqf from my server pbo to your compiles folder in your server pbo.

11. Copy the bankzones folder to your server pbo from my server pbo.

12. in "init/server_functions.sqf" add the following right under server_maintainArea ...


// Zupa - SC
execVM "\z\addons\dayz_server\bankzones\banks.sqf";
        

Dll's

1. Place the dll's from rootdll folder in your servers arma2oa root folder (overwrite).

2. Place the dll from serverdll folder in your servers @Dayz_epoch folder (overwrite).

Under Construction

Will be added soon.

Under Construction

Will be released soon.

Under Construction

Will be released soon.