Jump to content
!TS JORDAN

[Tutorial] Altis Central Bank - Second Fed!

Recommended Posts

17 hours ago, Elite IV said:

Can you elaborate on that bro? I still don't know what you mean.

So the original fed box, have you done anything to that? 

 

14 hours ago, Hyper4u said:

using it for 5.0

I have not tested it for 5.0 seen as it is a dev branch so these is functions that may not work, sorry. 

Link to post
Share on other sites
1 minute ago, !TS JORDAN said:

Okay um, can you give me your life_server pbo? and your mission.sqm?

Bro, i don't know how to explain this.

 

It was already working that entire time. The only reason why the vault was empty was being there were never cops online. Now that i have a 10+ active player base i tested it again to see the multiplier function for the federal reserve in general and then bam i receive counterfeit currency. Only problem is that even when 3 cops are online they only give 1 counterfeit currency vitem.

So i reduced to multiplier anyways.

 

Thank you, appreciate it.

  • Like 1
Link to post
Share on other sites
On 25/10/2016 at 9:10 AM, !TS JORDAN said:

(Life_fnc_AAN, CLIENTE

I have 2 problems 1 whenever it explodes the box tells me that the box is empty. 2 problem is not the Coordinates to put the building. Please, I need help to finish the bank's mission. Regards and thank you very much in advance. PS excuse my English level

Edited by camikaze69
Link to post
Share on other sites
11 hours ago, camikaze69 said:

I have 2 problems 1 whenever it explodes the box tells me that the box is empty. 2 problem is not the Coordinates to put the building. Please, I need help to finish the bank's mission. Regards and thank you very much in advance. PS excuse my English level

If no cops on then there no money additionally what do you mean by the cords....

Link to post
Share on other sites
5 hours ago, !TS JORDAN said:

If no cops on then there no money additionally what do you mean by the cords....

Position of closed structure, for closed doors. If you can only upload the mission.sqm with the bobeda structure I would appreciate it. I would be very useful. Thank you very much for replying and thank you all for these contributions. a greeting. excuse my English

Edited by camikaze69
traductor
Link to post
Share on other sites
17 hours ago, camikaze69 said:

Position of closed structure, for closed doors. If you can only upload the mission.sqm with the bobeda structure I would appreciate it. I would be very useful. Thank you very much for replying and thank you all for these contributions. a greeting. excuse my English

I dont have that mission anymore, just look inside th life_server init file and the others, thats how it locks the doorrss

Link to post
Share on other sites
On 26/10/2016 at 8:52 AM, !TS JORDAN said:

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

I add that line in the mission.sqm but it does not show anything. Everything invisible does not appear. any solution?

Link to post
Share on other sites
On 06/03/2017 at 7:10 AM, Mads Timm said:

@!TS JORDAN

Error with me! Warning Message: File mpmissions\TimmTestServer.Jackson_County\description.ext, line 192: /Federal_Safe/Controls/ButtonClose/: Missing '}'

 

federalReserve.hpp

 

Here: 

class Federal_Safe {
    idd = 3500;
    name = "Federal_Safe";
    movingEnable = 0;
    enableSimulation = 1;

    class controlsBackground {
        class RscTitleBackground: Life_RscText {
            colorBackground[] = {218,196,13,0.5};
            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[] = {218,196,13,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 = 3502;
            text = "";
            sizeEx = 0.030;
            x = 0.11;
            y = 0.29;
            w = 0.3;
            h = 0.42;
        };

        class TrunkEdit: Life_RscEdit {
            idc = 3505;
            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[] = {218,196,13,0.5};
            onButtonClick = "[] call life_fnc_safeTake;";
            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);
		};
	};
}:
            
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);
        };
    };
};

 

Link to post
Share on other sites

this is my error Error in expression <able ["safe",count playableUnits,true];
fed_bank_1 setVariable ["safe",count pla>
  Error position: <fed_bank_1 setVariable ["safe",count pla>
  Error Undefined variable in expression: fed_bank_1
File life_server\init.sqf, line 123

Edited by DReaMeR
Link to post
Share on other sites
On 25/10/2016 at 9:10 AM, !TS JORDAN said:

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

this script don't work! When i plant the code cracker, the time its bugged "i can't see the all time only "02:", and when the code finish i can't take the money plase help me to fix that

Link to post
Share on other sites
On 02/04/2017 at 10:48 PM, erBradipo said:

this script don't work! When i plant the code cracker, the time its bugged "i can't see the all time only "02:", and when the code finish i can't take the money plase help me to fix that

The script may be outdated now.

Link to post
Share on other sites

I have 3 questions 

1. How can i change the timer to minutes with seconds.

2. How can i change the message thing from central bank to something else.

3. How can i add a message for the whole server same as federal, and how can i edit this message.

Thanks :)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.