Jump to content
!TS JORDAN

[Tutorial] Altis Central Bank - Second Fed!

Recommended Posts

Altis Central Bank

!TS JORDAN

The tutorial adds a bank to Altis, it is based on the federal reserve scripts I have just edited them to work with a new location and what not, as well as the new bank there is a new "News Broadcast" when players rob the bank. You don't have to bolt cut any doors you just place the "codeCracker" like the blasting charge wait 6 mins for the timer (Defend it from cops, time can be altered) you get less money than what you would get from robbing the fed. Let's get started!

NOTE: THIS IS FOR 4.4 - I MADE THIS USING 4.4r3

The files I use will be linked as a zip file for ease of access.

Server File Edits:

1. missionname.altis >> config >> Config_Master.sqf

Under line "minimum_cops" add

minimum_cops_bank = 0; //Minimum cops required online to rob the Bank

2. missionname.altis >> config >> Config_vItems.sqf

Add under Class VirtualItems 

class codeCracker {
        variable = "codeCracker";
        displayName = "STR_Item_codeCracker";
        weight = 2;
        buyPrice = 14000;
        sellPrice = 5000;
        illegal = true;
        edible = -1;
        icon = "icons\codeCracker.paa";
};

class counterfitCash {
        variable = "counterfitCash";
        displayName = "STR_Item_counterfitCash";
        weight = 4;
        buyPrice = -1;
        sellPrice = 52500;
        illegal = true;
        edible = -1;
        icon = "icons\counterfitCash.paa";
};

3. missionname.altis >> config >> Config_vItems.sqf

Add to your rebel and gang store. (Somewhere in Class VirtualShops)  

class rebel {
        name = "STR_Shops_Rebel";
        side = "civ";
        license = "rebel";
        level[] = { "", "", -1, "" };
        items[] = { "waterBottle", "rabbit", "apple", "redgull", "tbacon", "lockpick", "pickaxe", "toolkit", "fuelFull", "peach", "boltcutter", "blastingcharge","codeCracker"};
};

class gang {
        name = "STR_Shops_Gang";
        side = "civ";
        license = "";
        level[] = { "", "", -1, "" };
        items[] = { "waterBottle", "rabbit", "apple", "redgull", "tbacon", "lockpick", "pickaxe", "toolkit", "fuelFull", "peach", "boltcutter", "blastingcharge","codeCracker"};
};

class counterfitCash {
        name = "STR_Shops_CounterfitCash";
        side = "civ";
        license = "";
        level[] = { "", "", -1, "" };
        items[] = { "counterfitCash" };
};

NOTE: IF YOU ALREADY HAVE CUSTOM ITEMS JUST COPY THE "codeCracker" LINE!! MAKE SURE YOU ADD THE "counterfitCash" SHOP THOUGH!!

4. missionname.altis >> CfgRemoteExec.sqf

Add under "F(life_fnc_AAN,CLIENT)"

F(life_fnc_AAN_Bank,CLIENT)
F(TON_fnc_handleBlastingChargeBank,SERVER)
F(life_fnc_demoChargeTimerBank,ANYONE)

5. missionname.altis >> functions.hpp

Under "Class Civillian" add

class demoChargeTimerBank {};

Should look something like this: 

class Civilian {
        file = "core\civilian";
        class civLoadout {};
        class civMarkers {};
        class demoChargeTimer {};
		class demoChargeTimerBank {}; //Add this
        class freezePlayer {};
        class jail {};
        class jailMe {};
        class knockedOut {};
        class knockoutAction {};
        class removeLicenses {};
        class robPerson {};
        class robReceive {};
        class tazed {};
};

6. missionname.altis >> functions.hpp

Under "Class Dialog_Controls" add

class safeInventoryBank {};  
class safeOpenBank {};  
class safeTakeBank {};

Should look like this: 

    class Dialog_Controls {
        file = "dialog\function";
        class bankDeposit {};
        class bankTransfer {};
        class bankWithdraw {};
        class displayHandler {};
        class gangDeposit {};
        class gangWithdraw {};
        class garageLBChange {};
        class impoundMenu {};
        class progressBar {};
        class safeFix {};
        class safeInventory {};
		class safeInventoryBank {}; //Add this
        class safeOpen {};			
		class safeOpenBank {}; //Add this
        class safeTake {};
		class safeTakeBank {}; //Add this
        class sellGarage {};
        class setMapPosition {};
        class spawnConfirm {};
        class spawnMenu {};
        class spawnPointCfg {};
        class spawnPointSelected {};
        class unimpound {};
        class vehicleGarage {};
        class wireTransfer {};
    };

7. missionname.altis >> dialog >> federalReserve.hpp

Add at the bottom of the file

class Federal_Safe_1 {
    idd = 6666;
    name = "Federal_Safe_1";
    movingEnable = 0;
    enableSimulation = 1;

    class controlsBackground {
        class RscTitleBackground: Life_RscText {
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
            idc = -1;
            x = 0.1;
            y = 0.2;
            w = 0.33;
            h = (1 / 25);
        };

        class RscBackground: Life_RscText {
            colorBackground[] = {0, 0, 0, 0.7};
            idc = -1;
            x = 0.1;
            y = 0.2 + (11 / 250);
            w = 0.33;
            h = 0.7 - (22 / 250);
        };

        class RscTitleText: Life_RscTitle {
            colorBackground[] = {0, 0, 0, 0};
            idc = 3501;
            text = "";
            x = 0.1;
            y = 0.2;
            w = 0.33;
            h = (1 / 25);
        };

        class VehicleWeight : RscTitleText {
            idc = 3504;
            style = 1;
            text = "";
        };

        class RscTrunkText: Life_RscText {
            idc = -1;
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
            text = "$STR_Trunk_TInventory";
            sizeEx = 0.04;
            x = 0.11;
            y = 0.25;
            w = 0.3;
            h = 0.04;
        };
    };

    class Controls {
        class TrunkGear: Life_RscListBox {
            idc = 6669;
            text = "";
            sizeEx = 0.030;
            x = 0.11;
            y = 0.29;
            w = 0.3;
            h = 0.42;
        };

        class TrunkEdit: Life_RscEdit {
            idc = 6662;
            text = "1";
            sizeEx = 0.030;
            x = 0.11;
            y = 0.72;
            w = 0.3;
            h = 0.03;
        };

        class TakeItem: Life_RscButtonMenu {
            idc = -1;
            text = "$STR_Trunk_Take";
            colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
            onButtonClick = "[] call life_fnc_safeTakeBank;";
            x = 0.19;
            y = 0.78;
            w = (6.25 / 40);
            h = (1 / 25);
        };

        class ButtonClose: Life_RscButtonMenu {
            idc = -1;
            //shortcuts[] = {0x00050000 + 2};
            text = "$STR_Global_Close";
            onButtonClick = "closeDialog 0;";
            x = 0.1;
            y = 0.9 - (1 / 25);
            w = (6.25 / 40);
            h = (1 / 25);
        };
    };
};

8. CentralBank.zip

Grab the zip file attached and place the files in thew corresponding folders, every file shows where it is meant to go!

9. missionname.altis >> core >> pmenu >> fn_useItem.sqf

In the file add this under:

    case (_item isEqualTo "blastingcharge"): {
        player reveal fed_bank;
        (group player) reveal fed_bank;
        [cursorObject] spawn life_fnc_blastingCharge;
        closeDialog 0;
    };

Add:

	case (_item isEqualTo "codeCracker"): {
        player reveal fed_bank_1;
        (group player) reveal fed_bank_1;
        [cursorObject] spawn life_fnc_codeCracker;
        closeDialog 0;
    };

10. missionname.altis >> functions.hpp

Add to the items class:

class codeCracker {};

Life_Server Edits: 

1. life_server >> init.sqf

Under the line "fed_bank setVariable ["safe",count playableUnits,true];" add

fed_bank_1 setVariable ["safe",count playableUnits,true];

2.  life_server >> config.cpp

Under "Class Systems" add

class handleBlastingChargeBank {};

Should look like this:

        class Systems {
            file = "\life_server\Functions\Systems";
            class managesc {};
            class cleanup {};
            class huntingZone {};
            class getID {};
            class vehicleCreate {};
            class spawnVehicle {};
            class getVehicles {};
            class vehicleStore {};
            class vehicleDelete {};
            class spikeStrip {};
            class transferOwnership {};
            class federalUpdate {};
            class chopShopSell {};
            class clientDisconnect {};
            class cleanupRequest {};
            class setObjVar {};
            class keyManagement {};
            class vehicleUpdate {};
            class recupkeyforHC {};
            class handleBlastingCharge {};
			class handleBlastingChargeBank {}; //Add this
        };

 

3. life_server >> Functions >> Systems >> federalUpdate.sqf

Under line "_funds = fed_bank getVariable ["safe",0];" add

 

_bfunds = fed_bank_1 getVariable ["safe",0];

4. life_server >> Functions >> Systems >> federalUpdate.sqf

Under line "fed_bank setVariable ["safe",round(_funds+((count playableUnits)/2)),true];" add

fed_bank_1 setVariable ["safe",round(_bfunds+((count playableUnits)/5)),true];

5. CentralBank.zip

Same as before add the marked "life_server" files from the zip into the corresponding folders. 

"mission.sqf" Edits: 

1. Create an object "Land_CargoBox_V1_F" 

this allowDamage false; this enableSimulation false; this addAction[localize""STR_MAR_Open_Vault"",life_fnc_safeOpenBank,"""",0,false,false,"""",' playerSide isEqualTo civilian && {_target getVariable [""safe_open"",false]} ']; this addAction[localize""STR_MAR_Fix_Vault"",life_fnc_safeFix,"""",0,false,false,"""",' playerSide isEqualTo west && {_target getVariable [""safe_open"",false]} ' ];

NOTE: DON'T FORGET TO MAKE A MARKER SO PEOPLE KNOW WHERE THE BANK IS!

SORRY RAN OUT OF SPACE I'LL ADD THE COUNTERFITCASH SHOP IN THE COMMENTS!

 

 

 

 

 

CenteralBank.zip

Edited by !TS JORDAN
Added the fn_useitem.sqf edits... Forgot :/ Also added the codeCracker.
  • Thanks 1

Share this post


Link to post
Share on other sites

"mission.sqm" Edits:

2. Create an NPC (Or just copy another shop as a template)

In the init field add

this allowDamage false; this enableSimulation false; this addAction[localize""STR_MAR_counterfitCash"",life_fnc_virt_menu,""counterfitCash""];

String table Edits: 

File location "missionname.altis >> stringtable.xml"

1. Under the "Package Shops" add

<Key ID="STR_Shops_counterfitCash">
            <Original>Fake money 4 real money</Original>
</Key>

2.  Under the "Package Items" add

<Key ID="STR_Item_counterfitCash">
            <Original>Counterfit Cash</Original>
</Key>
<Key ID="STR_Item_codeCracker">
            <Original>Code Cracker</Original>
</Key>

Pretty sure that's everything... Enjoy, any questions don't be afraid to comment 

Happy developing :DDD

  • Thanks 1

Share this post


Link to post
Share on other sites

 

4 hours ago, !TS JORDAN said:

"mission.sqf" Edits: 

1. Create an object "Land_CargoBox_V1_F" 

this allowDamage false; this enableSimulation false; this addAction[localize""STR_MAR_Open_Vault"",life_fnc_safeOpenBank,"""",0,false,false,"""",' playerSide isEqualTo civilian && {_target getVariable [""safe_open"",false]} ']; this addAction[localize""STR_MAR_Fix_Vault"",life_fnc_safeFix,"""",0,false,false,"""",' playerSide isEqualTo west && {_target getVariable [""safe_open"",false]} ' ];

NOTE: DON'T FORGET TO MAKE A MARKER SO PEOPLE KNOW WHERE THE BANK IS!

SORRY RAN OUT OF SPACE I'LL ADD THE COUNTERFITCASH SHOP IN THE COMMENTS!!

CenteralBank.zip

Mission.sqf or .sqm?

And i need help with mission.sqm, put example or anything :S

Edited by Only Desert Eagle

Share this post


Link to post
Share on other sites

Mission.sqm sorry, 

If you add this is will place the bank building, vault, and marker. South East of Kavala:

		class Item2192
		{
			dataType="Object";
			class PositionInfo
			{
				position[]={3998.2195,57.340942,12175.192};
				angles[]={0,3.2704895,0};
			};
			side="Empty";
			flags=1;
			class Attributes
			{
			};
			id=3267;
			type="Land_Offices_01_V1_F";
			atlOffset=0.46258926;
		};

		class Item2183
		{
			dataType="Object";
			class PositionInfo
			{
				position[]={3988.0337,62.737106,12178.229};
				angles[]={0,5.6524229,0};
			};
			side="Empty";
			flags=4;
			class Attributes
			{
				skill=0.60000002;
				init="this allowDamage false; this enableSimulation false; this addAction[localize""STR_MAR_Open_Vault"",life_fnc_safeOpenBank,"""",0,false,false,"""",' playerSide isEqualTo civilian && {_target getVariable [""safe_open"",false]} ']; this addAction[localize""STR_MAR_Fix_Vault"",life_fnc_safeFix,"""",0,false,false,"""",' playerSide isEqualTo west && {_target getVariable [""safe_open"",false]} ' ];";
				name="fed_bank_1";
			};
			id=3268;
			type="Land_CargoBox_V1_F";
			atlOffset=0.00010681152;
			class CustomAttributes
			{
				class Attribute0
				{
					property="allowDamage";
					expression="_this allowdamage _value;";
					class Value
					{
						class data
						{
							class type
							{
								type[]=
								{
									"BOOL"
								};
							};
							value=0;
						};
					};
				};
				nAttributes=1;
			};
		};

		class Item2244
		{
			dataType="Marker";
			position[]={4007.574,-1.0318071e-035,12178.676};
			name="fed_reserve_1";
			text="Centeral Altis Bank";
			type="mil_box";
			colorName="Color4_FD_F";
			id=3334;
			atlOffset=-49.067787;
		};

If you add this is will place the NPC and Marker just outside Kavala:

		class Item2245
		{
			dataType="Marker";
			position[]={4056.1741,-7.3037298e-019,13844.016};
			name="gold_bar_dealer_1";
			text="Counterfit Cash Dealer";
			type="loc_ViewTower";
			colorName="ColorYellow";
			angle=195.81697;
			id=3335;
			atlOffset=-32.12751;
		};
		class Item2246
		{
			dataType="Group";
			side="Civilian";
			class Entities
			{
				items=1;
				class Item0
				{
					dataType="Object";
					class PositionInfo
					{
						position[]={4056.457,32.662659,13843.819};
						angles[]={0,3.1657481,6.2828364};
					};
					side="Civilian";
					flags=6;
					class Attributes
					{
						skill=0.60000002;
						init="this allowDamage false; this enableSimulation false; this addAction[localize""STR_MAR_counterfitCash"",life_fnc_virt_menu,""counterfitCash""];";
					};
					id=3337;
					type="C_man_p_fugitive_F";
					atlOffset=0.018512726;
					class CustomAttributes
					{
						class Attribute0
						{
							property="allowDamage";
							expression="_this allowdamage _value;";
							class Value
							{
								class data
								{
									class type
									{
										type[]=
										{
											"BOOL"
										};
									};
									value=0;
								};
							};
						};
						class Attribute1
						{
							property="enableSimulation";
							expression="if !(is3DEN) then {_this enablesimulationglobal _value;};";
							class Value
							{
								class data
								{
									class type
									{
										type[]=
										{
											"BOOL"
										};
									};
									value=0;
								};
							};
						};
						class Attribute2
						{
							property="pitch";
							expression="_this setpitch _value;";
							class Value
							{
								class data
								{
									class type
									{
										type[]=
										{
											"SCALAR"
										};
									};
									value=1;
								};
							};
						};
						nAttributes=3;
					};
				};
			};
			class Attributes
			{
			};
			id=3336;
			atlOffset=0.018512726;
		}

@Only Desert Eagle

Edited by !TS JORDAN
Added the NPC
  • Thanks 1

Share this post


Link to post
Share on other sites

1. Create an object "Land_CargoBox_V1_F" 

this allowDamage false; this enableSimulation false; this addAction[localize""STR_MAR_Open_Vault"",life_fnc_safeOpenBank,"""",0,false,false,"""",' playerSide isEqualTo civilian && {_target getVariable [""safe_open"",false]} ']; this addAction[localize""STR_MAR_Fix_Vault"",life_fnc_safeFix,"""",0,false,false,"""",' playerSide isEqualTo west && {_target getVariable [""safe_open"",false]} ' ];

 

When this variable is put in the missing file, is there a missing code that is not written in? Excuse me, can you tell me how you solve this problem?

 

 

1$H[}NW2`NABHPR`M)W`2WA.png

Share this post


Link to post
Share on other sites

For the Vault / Box:

this allowDamage false; this enableSimulation false; this addAction[localize"STR_MAR_Open_Vault",life_fnc_safeOpenBank,"",0,false,false,"",' playerSide isEqualTo civilian && {_target getVariable ["safe_open",false]} ']; this addAction[localize"STR_MAR_Fix_Vault",life_fnc_safeFix,"",0,false,false,"",' playerSide isEqualTo west && {_target getVariable ["safe_open",false]} ' ];

For the NPC / Trader:

this allowDamage false; this enableSimulation false; this addAction[localize"STR_MAR_counterfitCash",life_fnc_virt_menu,"counterfitCash"];

@hjyydkl122

Share this post


Link to post
Share on other sites
3 hours ago, hjyydkl122 said:

Still appear such problems, however, what is the specific solution?

To use the same thing i am using? Which i posted above?? It should be working, how are you inserting it in, Via editor or directly from the mission.sqm?

Share this post


Link to post
Share on other sites

i have tried this but get no option to rob bank plz help 

 

class Item3434
		{
			dataType="Object";
			class PositionInfo
			{
				position[]={3998.2195,57.340942,12175.192};
				angles[]={0,3.2704895,0};
			};
			side="Empty";
			flags=1;
			class Attributes
			{
			};
			id=3267;
			type="Land_Offices_01_V1_F";
			atlOffset=0.46258926;
		};
		class Item3435
		{
			dataType="Object";
			class PositionInfo
			{
				position[]={3988.0332,62.736893,12178.229};
				angles[]={0,5.6524229,0};
			};
			side="Empty";
			class Attributes
			{
				skill=0.60000002;
				init="this allowDamage false; this enableSimulation false; this addAction[localize""STR_MAR_Open_Vault"",life_fnc_safeOpenBank,"""",0,false,false,"""",' playerSide isEqualTo civilian && {_target getVariable [""safe_open"",false]} ']; this addAction[localize""STR_MAR_Fix_Vault"",life_fnc_safeFix,"""",0,false,false,"""",' playerSide isEqualTo west && {_target getVariable [""safe_open"",false]} ' ];";
				name="fed_bank_1";
			};
			id=3268;
			type="Land_CargoBox_V1_F";
			atlOffset=11.724064;
			class CustomAttributes
			{
				class Attribute0
				{
					property="allowDamage";
					expression="_this allowdamage _value;";
					class Value
					{
						class data
						{
							class type
							{
								type[]=
								{
									"BOOL"
								};
							};
							value=0;
						};
					};
				};
				nAttributes=1;
			};
		};
		class Item3436
		{
			dataType="Marker";
			position[]={4007.574,-1.0318071e-035,12178.676};
			name="fed_reserve_1";
			text="Centeral Altis Bank";
			type="mil_box";
			colorName="Color4_FD_F";
			id=3334;
			atlOffset=-49.067787;
		};
		class Item3437
		{
			dataType="Marker";
			position[]={4056.1741,-7.3037298e-019,13844.016};
			name="gold_bar_dealer_1";
			text="Counterfit Cash Dealer";
			type="loc_ViewTower";
			colorName="ColorYellow";
			angle=195.81697;
			id=3335;
			atlOffset=-32.12751;
		};
		class Item3438
		{
			dataType="Group";
			side="Civilian";
			class Entities
			{
				items=1;
				class Item0
				{
					dataType="Object";
					class PositionInfo
					{
						position[]={4056.5,32.643787,13844.55};
						angles[]={0,3.3842983,0};
					};
					side="Civilian";
					flags=3;
					class Attributes
					{
						init="this allowDamage false; this enableSimulation false; this addAction[localize""STR_MAR_Open_Vault"",life_fnc_safeOpenBank,"""",0,false,false,"""",' playerSide isEqualTo civilian && {_target getVariable [""safe_open"",false]} ']; this addAction[localize""STR_MAR_Fix_Vault"",life_fnc_safeFix,"""",0,false,false,"""",' playerSide isEqualTo west && {_target getVariable [""safe_open"",false]} ' ]; " \n "";
						isPlayer=1;
					};
					id=21463;
					type="C_man_p_fugitive_F";
					atlOffset=0.51300049;
					class CustomAttributes
					{
						class Attribute0
						{
							property="pitch";
							expression="_this setpitch _value;";
							class Value
							{
								class data
								{
									class type
									{
										type[]=
										{
											"SCALAR"
										};
									};
									value=1;
								};
							};
						};
						nAttributes=1;
					};
				};
			};

from my mission.sqm

Share this post


Link to post
Share on other sites

have added the codebreaker to fn_useitem to make it usable and its still not working any assistance wud go a long way to making a Working tutorial

Share this post


Link to post
Share on other sites
11 hours ago, armagod said:

have added the codebreaker to fn_useitem to make it usable and its still not working any assistance wud go a long way to making a Working tutorial

Did i forget the fn_useItem? Ill add it now :/

Share this post


Link to post
Share on other sites
1 hour ago, gżegżółek said:
case (EQUAL(_item,"codeCracker")): {
		
		[cursorObject] spawn life_fnc_codeCracker;
	};

use item timer end this error---->

 

Error in expression <d_bank getVariable["safe",0];
_bfunds = fed_bank_1 getVariable ["safe",0];
fed_b>
  Error position: <fed_bank_1 getVariable ["safe",0];
fed_b>
  Error Undefined variable in expression: fed_bank_1
File life_server\Functions\Systems\fn_federalUpdate.sqf, line 12

 

Show me your federalUpdate file?

Share this post


Link to post
Share on other sites

soory bad error

 

this error use item end timer 

Quote

if (!(fed_bank_1 getVariable["chargeplaced",fa>
  Error position: <fed_bank_1 getVariable["chargeplaced",fa>
  Error Undefined variable in expression: fed_bank_1
File life_server\Functions\Systems\fn_handleBlastingChargeBank.sqf, line 11
 

mein code

/*
    Author: GetSomePanda / Panda
    SteamID: 76561198145366418
    File Name: fn_handleBlastingCharge.sqf
    Information: Nothing really special, just handles the fed explosion over the server so if the client who place the charge logs out it still blows up.
*/
private ["_bomb","_time"];
_time = time + (3 * 60);
waitUntil{(round(_time - time) < 1)};
sleep 0.9;
if (!(fed_bank_1 getVariable["chargeplaced",false])) exitWith {};

_bomb = "Bo_GBU12_LGB_MI10" createVehicle [getPosATL fed_bank_1 select 0, getPosATL fed_bank_1 select 1, (getPosATL fed_bank_1 select 2)+0.5];
fed_bank_1 setVariable ["chargeplaced",false,true];
fed_bank_1 setVariable ["safe_open",true,true];

 

Share this post


Link to post
Share on other sites
24 minutes ago, gżegżółek said:

soory bad error

 

this error use item end timer 

mein code

/*
    Author: GetSomePanda / Panda
    SteamID: 76561198145366418
    File Name: fn_handleBlastingCharge.sqf
    Information: Nothing really special, just handles the fed explosion over the server so if the client who place the charge logs out it still blows up.
*/
private ["_bomb","_time"];
_time = time + (3 * 60);
waitUntil{(round(_time - time) < 1)};
sleep 0.9;
if (!(fed_bank_1 getVariable["chargeplaced",false])) exitWith {};

_bomb = "Bo_GBU12_LGB_MI10" createVehicle [getPosATL fed_bank_1 select 0, getPosATL fed_bank_1 select 1, (getPosATL fed_bank_1 select 2)+0.5];
fed_bank_1 setVariable ["chargeplaced",false,true];
fed_bank_1 setVariable ["safe_open",true,true];

 

 

Did you add the variable in the life_server >> init.sqf??

Share this post


Link to post
Share on other sites

ye

 

....
/* Set the amount of gold in the federal reserve at mission start */
fed_bank setVariable ["safe",count playableUnits,true];
fed_bank_1 setVariable ["safe",count playableUnits,true];
[] spawn TON_fnc_federalUpdate;

 

Share this post


Link to post
Share on other sites
3 minutes ago, gżegżółek said:

ye

 

....
/* Set the amount of gold in the federal reserve at mission start */
fed_bank setVariable ["safe",count playableUnits,true];
fed_bank_1 setVariable ["safe",count playableUnits,true];
[] spawn TON_fnc_federalUpdate;

 

 

And the box in the mission.sqm if called fed_bank_1??

Share this post


Link to post
Share on other sites
5 minutes ago, gżegżółek said:

ye

 

....
/* Set the amount of gold in the federal reserve at mission start */
fed_bank setVariable ["safe",count playableUnits,true];
fed_bank_1 setVariable ["safe",count playableUnits,true];
[] spawn TON_fnc_federalUpdate;

 

 
 

Use this in your useItem.sqf 

	case (_item isEqualTo "codeCracker"): {
        player reveal fed_bank_1;
        (group player) reveal fed_bank_1;
        [cursorObject] spawn life_fnc_codeCracker;
        closeDialog 0;
    };

 

Share this post


Link to post
Share on other sites
9 minutes ago, hjyydkl122 said:

I want to find a debit card, code, can let the players, not carry cash, the same can also be in the store consumption, moderators can give an excuse me?

Message me, i have an idea how that could work...

Share this post


Link to post
Share on other sites

with help from @!TS JORDAN  missing from tut is 

class codeCracker {}; in class items  of function.hpp

and updated codebreaker working for me

#include "..\..\script_macros.hpp"
/*
    File: fn_codeCracker.sqf
    Author: Bryan "Tonic" Boardwine

    Description:
    Code Cracker for the bank vault and nothing  more.. Yet.
*/
private ["_vault","_handle"];
_vault = cursorObject;

if (isNull _vault) exitWith {}; //Bad object
if (typeOf _vault != "Land_CargoBox_V1_F") exitWith {hint localize "STR_ISTR_Blast_VaultOnly"};
if (_vault getVariable ["chargeplaced",false]) exitWith {hint localize "STR_ISTR_Blast_AlreadyPlaced"};
if (_vault getVariable ["safe_open",false]) exitWith {hint localize "STR_ISTR_Blast_AlreadyOpen"};
if (west countSide playableUnits < (LIFE_SETTINGS(getNumber,"minimum_cops_bank"))) exitWith {
     hint format [localize "STR_Civ_NotEnoughCops",(LIFE_SETTINGS(getNumber,"minimum_cops_bank"))];
};

/*
private _vaultHouse = ALTIS_TANOA("Land_Research_house_V1_F","Land_Medevac_house_V1_F");
_altisArray = [16019.5,16952.9,0];
_tanoaArray = [11074.2,11501.5,0.00137329];
private _pos = ALTIS_TANOA(_altisArray,_tanoaArray);
*/

if (!([false,"codeCracker",1] call life_fnc_handleInv)) exitWith {}; //Error?

_vault setVariable ["chargeplaced",true,true];
remoteExec ['life_fnc_AAN_Bank',-2];
hint localize "STR_ISTR_Blast_KeepOff";


[] remoteExec ["life_fnc_demoChargeTimerBank",[west,player]];
[] remoteExec ["TON_fnc_handleBlastingChargeBank",2];

 

Share this post


Link to post
Share on other sites

as per fed_bank_1 setVariable ["safe",round(_bfunds+((count playableUnits)/5)),true];

 

in fn)federalupdate.sqf in life server

calls for available players in server and divides the amount that spawns

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×