Jump to content
AllenFromStacysmom

[Release] WAI Missions- Denny' Farm & Troop's Supply

Recommended Posts

2 Bandit WAI customized missions 

--- Denny's Farm

--- Troop's Supply

 

 

Mission Plot:

--- Denny is giving out some supplies at his farm.

--- The local troop just received their supply.

 

Screenshots:

https://www.dropbox.com/sh/k9txqxw6q4qx71t/AADTvplz45CXdSrW8Pyo5W8Fa?dl=0

 

Requirement:

-PBO to pack mission file

-WAI

 

Installation:

---Download and install WAI to your server.pbo

Link :   

---Create  farmer_give.sqf and troop_supply.sqf files in dayz_server\WAI\missions\bandits

In farmer_give.sqf

Copy and paste

// Made by AllenFromStacysMom
//check out my server for more fun mission, IP: 142.4.215.203:2502
if(isServer) then {

	private 		["_complete","_crate_type","_mission","_position","_crate","_baserunover","_baserunover1","_baserunover2"];

	_position		= [30] call find_position;
	_mission		= [_position,"Easy","Denny's Farm","MainBandit",true] call mission_init;
	
	diag_log 		format["WAI: [Mission:[Bandit] Denny's Farm]: Starting... %1",_position];

	//Setup the crate
	_crate_type 	= crates_small call BIS_fnc_selectRandom;
	_crate 			= createVehicle [_crate_type,[(_position select 0) + 15,(_position select 1) + 5,0], [], 0, "CAN_COLLIDE"];

	//Medical Supply Camp
	_baserunover1 	= createVehicle ["Land_Farm_Cowshed_a",[(_position select 0) +15, (_position select 1) -20,0],[], 0, "CAN_COLLIDE"];
	_baserunover2 	= createVehicle ["Land_Farm_Cowshed_b",[(_position select 0) +35, (_position select 1) +10,0],[], 0, "CAN_COLLIDE"];
	_baserunover 	= [_baserunover1,_baserunover2];

	{ _x setVectorUp surfaceNormal position  _x; } count _baserunover;

	//Troops
	[[_position select 0,_position select 1,0],4,"Easy","Random",4,"Random","Assistant","Random","Hero",_mission] call spawn_group;
	[[_position select 0,_position select 1,0],4,"Easy","Random",4,"Random","RU_Villager2","Random","Hero",_mission] call spawn_group;
	[[_position select 0,_position select 1,0],1,"Random","Random",4,"Random","Citizen2_EP1","Random","Hero",_mission] call spawn_group;

	//[[(_position select 0) + 100, _position select 1, 0],[(_position select 0) + 100, _position select 1, 0],50,2,"tractor","random","bandit","bandit",_mission] call vehicle_patrol;

	
	//Condition
	_complete = [
		[_mission,_crate],				// mission number and crate
		["crate"],						// ["crate"], or ["kill"], or ["assassinate", _unitGroup],
		[_baserunover], 				// cleanup objects
		"Denny is giving out supply at his farm",	// mission announcement
		"Bandit robbed the old farmer, what the hell",									// mission success
		"Survivors have obtained the supply from Denny, thanks"									// mission fail
	] call mission_winorfail;

	if(_complete) then {
		[_crate,6,5,[40,crate_items_medical],5] call dynamic_crate;
	};

	diag_log format["WAI: [Mission:[Bandit] Denny's Farm]: Ended at %1",_position];
	
	b_missionrunning = false;
};





 

In troop_supply.sqf, copy and paste:


// Made by AllenFromStacysMom
//check out my server for more fun mission, IP: 142.4.215.203:2502
 
if(isServer) then {
 
private ["_complete","_crate_type","_mission","_position","_crate","_playerPresent","_rndnum","_rndgro","_num_guns","_num_tools","_num_items"];
 
_position = [30] call find_position;
_mission = [_position,"Medium","Troop Supply","MainBandit",true] call mission_init;
 
diag_log format["WAI: [Mission:[bandit] Troop Supply]: Starting... %1",_position];
 
//Setup the crate
_crate_type = crates_small call BIS_fnc_selectRandom;
_crate = createVehicle [_crate_type,[(_position select 0),(_position select 1),0], [], 0, "CAN_COLLIDE"];
 
_baserunover1 = createVehicle ["CDF_WarfareBArtilleryRadar",[(_position select 0) +15, (_position select 1) -20,0],[], 0, "CAN_COLLIDE"];
_baserunover = [_baserunover1];
{ _x setVectorUp surfaceNormal position  _x; } count _baserunover;
 
//Troops
[[(_position select 0) + 5,_position select 1,0],3,"Medium","Random",4,"Random","Pierce","Random","Hero",_mission] call spawn_group;
[[(_position select 0) + 5,_position select 1,0],3,"Medium","Random",4,"Random","US_Delta_Force_Assault_EP1","Random","Hero",_mission] call spawn_group;
[[(_position select 0) + 5,_position select 1,0],3,"Medium","Random",4,"Random","MVD_Soldier_GL","Random","Hero",_mission] call spawn_group;
[[(_position select 0) + 5,_position select 1,0],1,"Medium","Random",4,"Random","RUS_Commander","Random","Hero",_mission] call spawn_group;
for "_i" from 0 to _rndgro do {
[[_position select 0,_position select 1,0],_rndnum,"Easy","Random",3,"Random","Hero","Random","Hero",_mission] call spawn_group;
};
_rndnum = 1 + round (random 4);
_rndgro = 1 + round (random 3);
 
//Static Guns
[[
[(_position select 0) + 10, (_position select 1) + 10, 0],
[(_position select 0) + 10, (_position select 1) - 10, 0]
],"M2StaticMG","Easy","Hero","Hero",0,2,"Random","Random",_mission] call spawn_static;
 
//Condition
_complete = [
[_mission,_crate],
["crate"],
[],
"The local troop have obtained a weapon crate. Check your map for the location!",
"Bandits have secured the supply!",
"Bandits did not secure the supply in time"
] call mission_winorfail;
 
if(_complete) then {
[_crate,10,4,0,2] call dynamic_crate;
};
 
diag_log format["WAI: [bandit] troop_supply ended at %1",_position];
 
b_missionrunning = false;
};
_rndnum = 1 + round (random 4);
_rndgro = 1 + round (random 3);

//Static Guns [[ [(_position select 0) + 10, (_position select 1) + 10, 0], [(_position select 0) + 10, (_position select 1) - 10, 0] ],"M2StaticMG","Easy","Hero","Hero",0,2,"Random","Random",_mission] call spawn_static; //Condition _complete = [ [_mission,_crate], // mission number and crate ["crate"], // ["crate"], or ["kill",wai_kill_percent], or ["assassinate", _unitGroup], [], // cleanup objects "The local troop have obtained a weapon crate. Check your map for the location!", // mission announcement "Bandits have secured the supply!", // mission success "Bandits did not secure the supply in time" // mission fail ] call mission_winorfail; if(_complete) then { [_crate,10,4,0,2] call dynamic_crate; }; diag_log format["WAI: [bandit] troop_supply ended at %1",_position]; b_missionrunning = false; }; 

---Edit the config.sqf :

find 

wai_bandit_missions = [
["armed_vehicle",10],
["black_hawk_crash",10],
["captured_mv22",10],
["broken_down_ural",10],
["hero_base",10],
["ikea_convoy",10],
["medi_camp",10],
["presidents_mansion",10],
["sniper_extraction",10],
["weapon_cache",10],


]; 

the missions you have may be different from me, and the number after the mission name is the chance of the mission will happen

Example:  ["mission_name",chance in %]

---Add in farmer_give and troop_supply

so it would look like this 

wai_bandit_missions = [
["armed_vehicle",10],
["black_hawk_crash",10],
["captured_mv22",10],
["broken_down_ural",10],
["hero_base",10],
["ikea_convoy",10],
["medi_camp",4],
["presidents_mansion",10],
["sniper_extraction",10],
["weapon_cache",4],
["farmer_give",6],
["troop_supply",6]


];  

Make sure the number add up to 100. You can change the chance of the mission happen by change the number in % to whatever you want.

 

Now you are done!

Repack your server.pbo to try out the missions  :D

 

Let me know if there is any problem with the mission.

Share this post


Link to post
Share on other sites

how can we make this a hero event? im running a pve.

Edit troop_supply.sqf

change 

	_mission  =             [_position,"Medium","Troop Supply","MainBandit",true] call mission_init;
	
	diag_log 		format["WAI: [Mission:[Bandit] Troop Supply]: Starting... %1",_position];

to 

	_mission		= [_position,"Medium","Troop Supply","MainHero",true] call mission_init;
	
	diag_log 		format["WAI: [Mission:[Hero] Troop Supply]: Starting... %1",_position];

change

//Troops
	[[(_position select 0) + 5,_position select 1,0],3,"Medium","Random",4,"Random","Pierce","Random","Hero",_mission] call spawn_group;
	[[(_position select 0) + 5,_position select 1,0],3,"Medium","Random",4,"Random","US_Delta_Force_Assault_EP1","Random","Hero",_mission] call spawn_group;
	[[(_position select 0) + 5,_position select 1,0],3,"Medium","Random",4,"Random","MVD_Soldier_GL","Random","Hero",_mission] call spawn_group;
	[[(_position select 0) + 5,_position select 1,0],1,"Medium","Random",4,"Random","RUS_Commander","Random","Hero",_mission] call spawn_group;
	for "_i" from 0 to _rndgro do {
		[[_position select 0,_position select 1,0],_rndnum,"Easy","Random",3,"Random","Hero","Random","Hero",_mission] call spawn_group;
	};

	//Static Guns
	[[
		[(_position select 0) + 10, (_position select 1) + 10, 0],
		[(_position select 0) + 10, (_position select 1) - 10, 0]
	],"M2StaticMG","Easy","Hero","Hero",0,2,"Random","Random",_mission] call spawn_static;

to 

//Troops
	[[(_position select 0) + 5,_position select 1,0],3,"Medium","Random",4,"Random","Pierce","Random","Bandit",_mission] call spawn_group;
	[[(_position select 0) + 5,_position select 1,0],3,"Medium","Random",4,"Random","US_Delta_Force_Assault_EP1","Random","Bandit",_mission] call spawn_group;
	[[(_position select 0) + 5,_position select 1,0],3,"Medium","Random",4,"Random","MVD_Soldier_GL","Random","Bandit",_mission] call spawn_group;
	[[(_position select 0) + 5,_position select 1,0],1,"Medium","Random",4,"Random","RUS_Commander","Random","Bandit",_mission] call spawn_group;
	for "_i" from 0 to _rndgro do {
		[[_position select 0,_position select 1,0],_rndnum,"Easy","Random",3,"Random","Hero","Random","Bandit",_mission] call spawn_group;
	};

	//Static Guns
	[[
		[(_position select 0) + 10, (_position select 1) + 10, 0],
		[(_position select 0) + 10, (_position select 1) - 10, 0]
	],"M2StaticMG","Easy","Bandit","Bandit",0,2,"Random","Random",_mission] call spawn_static;

change 

		"The local troop have obtained a weapon crate. Check your map for the location!",	// mission announcement
		"Bandits have secured the supply!",									// mission success
		"Bandits did not secure the supply in time"							// mission fail
	

to 

		"The local Bandit troop have obtained a weapon crate. Check your map for the location!",	// mission announcement
		"Heros have secured the supply!",									// mission success
		"Heros did not secure the supply in time"							// mission fail
	

in the end, change

	b_missionrunning = false;

to 

	h_missionrunning = false;

 Now go to WAI\Config

Add the mission file name to the hero mission list:

	// Missions
		wai_hero_missions			= [ 								// ["mission filename",% chance of picking this mission],Make sure the chances add up to 100,or it will not be accurate percentages
										["black_hawk_crash",8],
										["armed_vehicle",10],
										["bandit_base",6],
										["captured_mv22",8],
										["ikea_convoy",8],
										["destroyed_ural",8],
										["disabled_milchopper",8],
										["mayors_mansion",6],
										["weapon_cache",8],
										["bunny_ranch",2],
										["chern_gang",8],
										["benlate",4],
										["bandit_squad",9],
										["ladyland",2],
										["AI_War",1],
										["real_benlate",4]
									];

I have some other missions, but don't worry about it, just add in the ["mission file name(troop_supply)", chance of event happen in %]

make sure the number add up to 100

 

It is the same thing for the other mission.

Share this post


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.

Loading...

  • Similar Content

    • By icomrade
      Hello all,
      We are pleased to announce the release of ArmA 2 DayZ Epoch 1.0.6, available for download at: http://epochmod.com/a2dayzepoch.php
      This release introduces the integration of some of the most common Epoch community modifications from prior epoch release, DayZ Mod 1.8.8, and a new group system that persists in the database.  Most of the highlights can be found in the change log below, which is fairly comprehensive, but by no means exhaustive.
      Please note that community addons/expansions for previous Epoch release WILL NOT work on Epoch 1.0.6, be sure to review the change log for which mods are now included. In addition, the loot table format has completely changed, you must base your loot table modifications on the new format, which can be found by evaluating the stock loot tables: https://github.com/EpochModTeam/DayZ-Epoch/tree/Release_1.0.6/SQF/dayz_code/Configs/CfgLoot
      1.0.5.1 and older Single Currency scripts are NOT compatible with 1.0.6, there is no included single currency script in this release. However, because we are so wonderful, we have chosen to integrate single currency saving to the DB, so a third-party HiveEXT is not necessary and the SQF is all that needs to be written/updated.
       
    • By heiko33
      Downlod        
      https://ln.sync.com/dl/043e1b3c0/wkrywtzv-idjkp722-wzfqg9g6-53b7xfyj
       
       
       
    • By FG_Trap
      Made a quick static ai mission that spawns on restart. 
      12 ai patrol the compound 
      4 Static m2's
      1 Heli Patrolling the compound 
      Crate for who ever clears all the ai.
      Some screenshots of the compound 


       
      https://github.com/Trapxxgods/Wai-Static-Mission 
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...