Welcome to Altis Life RPG

Register now to gain access to all of our features.
Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.


Note that you can now sign-in with your Steam account.


This message will be removed once you have signed in.

  • Announcements

    • AltisLifeRpg

      Opening Announcement   09/13/2016

      Opening Announcement We are happy to announce the official reopening of the community assistance forum Altis Life RPG (open source public property). Before going any further, let's go over the current situation. As you are already aware, the forum and the database of Altisliferpg.com had been hacked a few weeks ago. This unfortunate situation has touched many communities of Arma 3. The various databases were erased, and since they were under the responsibility of the previous administration, no backup was able to recover the lost data. This means that all the tedious work must be redone. This regrettable situation has led Tonic to transfer the responsibility of its administration to a new and neutral party. This party has as sole goal to reunite every community, as diverse as they are, together to perpetuate the development of our beloved mod AltisLifeRPG.  First of all, I think it is important to clarify our intentions. Foremost, we want to reassure you that we are not proclaiming being the owners of the previous versions of Altis Life (open source public property) in collaboration with BoGuu based on Tonic' codes. As you know, Boguu has been a major player in the most recent versions. Please note that this platform is and will always remain open to future developers such as Boguu that would like to elevate Altis Life RPG to the next level. By doing so, we take our role as an official reference platform very seriously in the eyes of the vast community of Altis Life RPG. We are ready to face this responsibility. We are aware that the content added by users could be provided by external sources or from the original website. If you see a tutorial that you've created on our platform where you are not credited as the author, please mention it immediately to the administration and we will promptly fix the situation. Please note that seeing the overwhelming amount of content added by the community, we will not proactively search other community assistance websites to validate if proper credits were given to the various authors. Instead, it will be the author's responsibility to be proactive in contacting the administration. Since the majority of the content found on other websites came originally from Altisliferpg.com, we encourage members joining us to share any content deemed pertinent coming from other platforms without forgetting to credit the authors.       Finally, to clarify the rumors circulating: - The forum was not scammed. It was transferred directly from Bryan 'Tonic' Boardwine to our administration. A domain cannot be scammed. - The forum was transferred as an independent entity which has as a sole mission to perpetuate the forum and not let it die out.       Altisliferpg.com Regards, the Administration.       Feel free to join us on Discord in the Altis Life RPG Community section of the forum.   And of course if you have any question, feel free to message us here.
    • Rozo

      Donations   09/18/2016

      Hello,
        We've added a donation block on the right side. All of those donation goes directly to the developer of Altis Life mod ( currently BoGuu ). None of that money is used to maintain the forum. In the future we might add a donation button to support the forum, but for now we want to encourage the developer because they went through a lot. To discuss this topic - Here
    • Shakir Darwish

      IS YOUR SERVER BROKEN SINCE 1.64 UPDATE?   09/22/2016

      If your server is broken since 1.64 go check this link thanks. https://github.com/AsYetUntitled/Framework/issues/104
    • Rozo

      Sad Day   01/04/2017

      Good evening community of Altis Life RPG, Today was a sad day. We learned the hard way that one of the helper was using his status and visibility on the forum to do things i wouldn't imagine.  We were warned about this user in the beginning, we talked about his behavior and he said that they were things of the past. We were fooled.
      Unfortunately, he fooled other community members by selling stolen content and impersonating his role as a developer in another community. Here's a remember of one of the rules on our forum, No selling scripts, snippets, or services.   So if anyone come across someone who's selling his services, scripts or whatever, Report them. Especially if it's coming from an Helper, Mod, Admin. No one in the staff should ask for money, we already mention this when we reopened the forum and that rule is here to stay.

      We can't be sorry enough for what happen here, for any harm it as caused among other communities, for money that shouldn't been spent and we truly hope this doesn't happen again.

      As for the user in question, he is now banned from our forum and discord and we wish to never cross his path again.
        If there's anything we can do hit us on Discord or send a message to an admin.
      Thanks, Rozo.
TaskForceTactical

NATO Weapon Reserve [Robbable Place Like Fed For Weapons/Vehicles]

Hello everyone, I made this script not long ago for my server but it didn't go anywhere arma is feeling like a dead game for me so I'm releasing most of the scripts I made! ok so first things first,

Author: TaskForceTactical

Difficulty: Copy & Paste

 Couldn't have done this without Pril he helped me learn to script and also helped with any errors I had 

 

Create a file in Mission\Core\Civilian\ called "fn_demoChargeTimerBank.sqf" and paste this into it!

#include "..\..\script_macros.hpp"
/*
    File: fn_demoChargeTimerBank.sqf
    Author: TaskForceTactical

    Description:
    Starts the timer and handles spawning of vehicles/weapons for NATO Ground Vehicles/Armory
*/
private ["_uiDisp","_time","_timer","_spawnVehicle","_vehicleArray","_vehicleDir","_vehicleSpawn","_var"];
disableSerialization;
"lifeTimer" cutRsc ["life_timer","PLAIN"];
_uiDisp = uiNamespace getVariable "life_timer";
_timer = _uiDisp displayCtrl 38301;
_time = time + (1 * 5);

for "_i" from 0 to 1 step 0 do {
    if (isNull _uiDisp) then {
        "lifeTimer" cutRsc ["life_timer","PLAIN"];
        _uiDisp = uiNamespace getVariable "life_timer";
        _timer = _uiDisp displayCtrl 38301;
    };
    if (round(_time - time) < 1) exitWith {};
    if (!(fed_bank1 getVariable ["chargeplaced",false])) exitWith {};
    _timer ctrlSetText format ["NATO Reserve: %1",[(_time - time),"MM:SS.MS"] call BIS_fnc_secondsToString];
    sleep 0.08;
};
"lifeTimer" cutText["","PLAIN"];

if (!(fed_bank1 getVariable["chargeplaced",false])) exitWith {};

fed_bank1 setVariable ["chargeplaced",false,true];
fed_bank1 setVariable ["safe_open",true,true];
fed_bank1 setVariable ["locked",false,true];
[true,"relicArmory",1] call life_fnc_handleInv;

_vehicleSpawn = getMarkerPos "reserve_car_1";
_vehicleDir = markerDir "reserve_car_1";

_vehicleArray = [
                "B_T_MBT_01_TUSK_F",
                "B_MRAP_01_hmg_F",
                "B_LSV_01_armed_F",
                "B_MRAP_01_gmg_F",
				"CUP_B_Dingo_CZ_Des",
				"CUP_B_Dingo_GL_CZ_Des"
                ];

	_spawnVehicle = (_vehicleArray call BIS_fnc_selectRandom) createVehicle _vehicleSpawn;
	_spawnVehicle setDir _vehicleDir;
	_spawnVehicle setPos _vehicleSpawn;
	_spawnVehicle setVectorUp (surfaceNormal _vehicleSpawn);
	life_vehicles pushBack _spawnVehicle;

	[_spawnVehicle,"trunk_in_use",false,true] remoteExecCall ["TON_fnc_setObjVar",2];
	[_spawnVehicle,"vehicle_info_owners",[[getPlayerUID player,profileName]],true] remoteExecCall ["TON_fnc_setObjVar",2];
	life_vehicles pushBack _spawnVehicle;
	[getPlayerUID player,playerSide,_spawnVehicle ,1] remoteExecCall ["TON_fnc_keyManagement",2];
	[(getPlayerUID player),playerSide,_spawnVehicle ,0] remoteExecCall ["TON_fnc_vehicleCreate",0];

	sleep 0.8;
	clearWeaponCargoGlobal _spawnVehicle;
	clearMagazineCargoGlobal _spawnVehicle;
	clearItemCargoGlobal _spawnVehicle;
	clearBackpackCargoGlobal _spawnVehicle;

_var=floor(random 6);
if (_var==0) then {fed_bank1 addWeaponCargoGlobal ["CUP_arifle_M4A1_camo", 2]; fed_bank1 addWeaponCargoGlobal ["CUP_arifle_Mk16_CQC", 1]; fed_bank1 addWeaponCargoGlobal ["CUP_arifle_XM8_Carbine_FG", 1]; fed_bank1 addWeaponCargoGlobal ["CUP_arifle_FNFAL", 1]; fed_bank1 addMagazineCargoGlobal ["CUP_30Rnd_556x45_Stanag", 20]; fed_bank1 addMagazineCargoGlobal ["CUP_20Rnd_762x51_FNFAL_M", 20];};
if (_var==1) then {fed_bank1 addWeaponCargoGlobal ["launch_Titan_F", 1]; fed_bank1 addMagazineCargoGlobal ["Titan_AA", 4]; fed_bank1 addWeaponCargoGlobal ["CUP_arifle_FNFAL_railed", 1]; fed_bank1 addWeaponCargoGlobal ["CUP_arifle_L85A2", 1]; fed_bank1 addMagazineCargoGlobal ["CUP_30Rnd_556x45_Stanag", 20]; fed_bank1 addMagazineCargoGlobal ["CUP_20Rnd_762x51_FNFAL_M", 20];};
if (_var==2) then {fed_bank1 addWeaponCargoGlobal ["CUP_lmg_Mk48_des", 2]; fed_bank1 addWeaponCargoGlobal ["CUP_launch_M136", 2]; fed_bank1 addWeaponCargoGlobal ["CUP_arifle_CZ805_B", 2]; fed_bank1 addWeaponCargoGlobal ["CUP_srifle_L129A1_HG", 1]; fed_bank1 addMagazineCargoGlobal ["CUP_20Rnd_762x51_CZ805B", 20]; fed_bank1 addMagazineCargoGlobal ["CUP_M136_M", 6]; fed_bank1 addMagazineCargoGlobal ["CUP_20Rnd_762x51_L129_M", 20]; fed_bank1 addMagazineCargoGlobal ["CUP_100Rnd_TE4_LRT4_White_Tracer_762x51_Belt_M", 6]; fed_bank1 addMagazineCargoGlobal ["CUP_20Rnd_762x51_L129_M", 20];};
if (_var==3) then {fed_bank1 addWeaponCargoGlobal ["HandGrenade_Stone", 15]; fed_bank1 addWeaponCargoGlobal ["CUP_srifle_SVD_des_ghillie_pso", 2]; fed_bank1 addWeaponCargoGlobal ["CUP_srifle_AWM_des", 2]; fed_bank1 addWeaponCargoGlobal ["CUP_srifle_M107_Base", 1]; fed_bank1 addWeaponCargoGlobal ["srifle_DMR_02_F", 1]; fed_bank1 addMagazineCargoGlobal ["CUP_10Rnd_762x54_SVD_M", 15]; fed_bank1 addMagazineCargoGlobal ["10Rnd_338_Mag", 10]; fed_bank1 addMagazineCargoGlobal ["CUP_10Rnd_127x99_m107", 10]; fed_bank1 addMagazineCargoGlobal ["CUP_5Rnd_86x70_L115A1", 10];};
if (_var==4) then {fed_bank1 addWeaponCargoGlobal ["srifle_GM6_F", 2]; fed_bank1 addWeaponCargoGlobal ["optic_LRPS", 2]; fed_bank1 addMagazineCargoGlobal ["5Rnd_127x108_APDS_Mag", 10]; fed_bank1 addMagazineCargoGlobal ["5Rnd_127x108", 10];};
if (_var==5) then {fed_bank1 addWeaponCargoGlobal ["SatchelCharge_Remote_Mag", 10]; fed_bank1 addWeaponCargoGlobal ["ClaymoreDirectionalMine_Remote_Mag", 5]; fed_bank1 addWeaponCargoGlobal ["muzzle_snds_H", 1]; fed_bank1 addWeaponCargoGlobal ["muzzle_snds_acp", 1];};

	sleep 3;
	[0] call SOCK_fnc_updatePartial;
	
	sleep 300;
	fed_bank1 setVariable ["locked",true,true];

 

Then add in the "Functions.hpp" file underneath Civilian 

class demoChargeTimerBank {};

 

Now, make a new file inside of Core\Items\ called fn_codeCracker.sqf and paste this into it:

#include "..\..\script_macros.hpp"
/*
    File: fn_codeCracker.sqf
    Author: TaskForceTactical

    Description:
    Code Cracker for the vault of vehicles reserve
*/
private ["_vault","_handle"];
_vault = param [0,ObjNull,[ObjNull]];

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"))) exitWith {
     hint format [localize "STR_Civ_NotEnoughCops",(LIFE_SETTINGS(getNumber,"minimum_cops"))];
};

private _vaultHouse = [[["Altis", "Land_Research_HQ_F"], ["Tanoa", "Land_Medevac_house_V1_F"]]] call TON_fnc_terrainSort;
private _altisArray = [16019.5,16952.9,0];
private _takistanArray = [4769.027,10458.156,1.361];
private _tanoaArray = [11074.2,11501.5,0.00137329];
private _pos = [[["Takistan", _takistanArray], ["Tanoa", _tanoaArray]]] call TON_fnc_terrainSort;

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

_vault setVariable ["chargeplaced",true,true];
[5,"<t size='1.2'><t color='#FF0000'>NATO Armory/Vehicles Reserve</t></t><br/><br/><t size='1'>!!!!!!!The NATO Armory And Vehicles Reserve is currently undergoing a robbery!!!!!!!</t>"] remoteExec ["life_fnc_broadcast",0];
[2,"!!!!!!!THE NATO ARMORY AND VEHICLES RESERVE IS BEING ROBBED!!!!!!!"] remoteExec ["life_fnc_broadcast",0];


[] remoteExec ["life_fnc_demoChargeTimerBank",[opfor,player]];

Now, inside of the file core\pmenu\fn_useItem.sqf add this:

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

Now, inside of the editor add a Cargo Box Net and call fed_bank1, [NOTE: The buildings this is placed in will not lock without some editing]

inside of the cargo boxes init add this

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

Thats it i believe, although, you will have to replace the classnames of the vehicle/weapons it spawns if i missed anything let me know and ill update it 

Edited by TaskForceTactical
  • Like 1

Share this post


Link to post
Share on other sites
Just now, TaskForceTactical said:

What do you mean? "the count"?

Right now it count cops like the same count as fed, there needs to be like 7 cops or something like that online to rob it, I want to make it so it counts people with rebel license instead

Share this post


Link to post
Share on other sites
1 minute ago, TaskForceTactical said:

So there has to be a certain amount of people on with a rebel license to rob it? or the player only needs a rebel license to rob it?

So there has to be a certain amount of people on with a rebel license to rob it

Share this post


Link to post
Share on other sites

the only thing i can think of is this but this would check if theres a certain amount of civs online and that the player has a rebel license, the only way i could think of doing it is if the rebels were OPFOR but im relatively new to scripting but im sure someone else could give you an answer.

If you did want to do the way i mentioned above this is how.

First replace the line in fn_codeCracker.sqf

if (west countSide playableUnits < (LIFE_SETTINGS(getNumber,"minimum_cops"))) exitWith {

To this

if (civ countSide playableUnits < (LIFE_SETTINGS(getNumber,"minimum_rebels")) license_civ_rebel) exitWith {

and then in config_master.hpp under the minimum_cops line, add this

minimum_rebels = 5; //Amount of civs with rebel licenses needed to rob the whatever your calling it...

but without rebels being OPFOR i dont know how it is done sorry i couldn't help

Edited by TaskForceTactical
typo...
  • Like 1

Share this post


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

the only thing i can think of is this but this would check if theres a certain amount of civs online and that the player has a rebel license, the only way i could think of doing it is if the rebels were OPFOR but im relatively new to scripting but im sure someone else could give you an answer.

If you did want to do the way i mentioned above this is how.

First replace the line in fn_codeCracker.sqf


if (west countSide playableUnits < (LIFE_SETTINGS(getNumber,"minimum_cops"))) exitWith {

To this


if (civ countSide playableUnits < (LIFE_SETTINGS(getNumber,"minimum_rebels")) license_civ_rebel) exitWith {

and then in config_master.hpp under the minimum_cops line, add this


minimum_rebels = 5; //Amount of civs with rebel licenses needed to rob the whatever your calling it...

but without rebels being OPFOR i dont know how it is done sorry i couldn't help

Thanks anyways dude :) will probably add Opfor

Share this post


Link to post
Share on other sites
1 hour ago, [IL] KingCrazyHunter said:

@TaskForceTactical will this work if you also have https://www.altisliferpg.com/topic/555-tutorial-altis-central-bank-second-fed/ ?

 

It will. Make the same files and functions as that system but call it Depot for example at the end instead of Bank. And instead of fed_bank1 you make fed_bank2 for this. In short: Make 2 of everything.

  • Like 1

Share this post


Link to post
Share on other sites
Just now, LeanderYTO said:

It will. Make the same files and functions as that system but call it Depot for example at the end instead of Bank. And instead of fed_bank1 you make fed_bank2 for this. In short: Make 2 of everything.

Figured, thanks

Share this post


Link to post
Share on other sites

Really ? The one I posted is directly from my mission works for me

 

[in fact I was silly and got it from the Sam apologies will update post]

Edited by TaskForceTactical

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