Jump to content
AllenFromStacysmom

[Release] Mission- Kill Benlate

Recommended Posts

Hey,guys.                            Closed sorry

So, I wrote this mission based on the the example mission from WAI

This is fairly easy to install, but you need to have WAI installed in server.pbo.

 

Mission Plot:

It's Benlate, OMG, guys, we gotta take him down.

-Two optional ending of the mission: 

1.This is not the real Benlate, we just killed a group of Middle East bandits.

2.Yes! We did it, Benlate is now died.

 

Screenshots:

- Screenshots of Benlate mission and real benlatemission:

https://www.dropbox.com/sh/zt19qpgi8hm4byf/AAA7NohKmvzq51WgxQiUyMRQa?dl=0

 

Requirement:

-PBO to pack mission file

-WAI

 

Installation:

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

Link :  

---Create file named benlate.sqf and real_benlate.sqf dayz_server\WAI\missions\hero

In benlate.sqf, copy and paste:

 



Closed sorry
 

In real_benlate.sqf, Copy and paste

Closed sorry
 

 

---Edit the config.sqf :

find 

// 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",12],
						["armed_vehicle",10],
						["bandit_base",10],
						["captured_mv22",10],
						["ikea_convoy",12],
						["destroyed_ural",12],
						["disabled_milchopper",12],
						["mayors_mansion",10],
						["weapon_cache",12]
						
									];

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 benlate and real_benlate

so it would look like this 

// 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",10],
						["armed_vehicle",10],
						["bandit_base",10],
						["captured_mv22",10],
						["ikea_convoy",10],
						["destroyed_ural",10],
						["disabled_milchopper",10],
						["mayors_mansion",10],
						["weapon_cache",12],
                                                ["benlate",4],
                                                ["real_benlate",4] 

						
									];

Make sure the number add up to 100.

 

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

Cool missions bud, checked them out and they were pretty cool. I redid the messages as the English wasn't great. Feel free to use them if you like:

 

"Rumour has it that Benlate is back on the scene. Heros, lock and load."

"Turns out it wasn't Benlate; just a group of Middle East bandits."    /    "Thank God, Benlate has been executed."

"Looks like Benlate escaped once again... sigh."

 

Edit: just found a little bug, in your real_benlate.sqf you have:

b_missionrunning = false;

Which should be:

h_missionrunning = false;

as they're hero missions. It stopped the map markers from showing for me.

Share this post


Link to post
Share on other sites

Cool missions bud, checked them out and they were pretty cool. I redid the messages as the English wasn't great. Feel free to use them if you like:

 

"Rumour has it that Benlate is back on the scene. Heros, lock and load."

"Turns out it wasn't Benlate; just a group of Middle East bandits."    /    "Thank God, Benlate has been executed."

"Looks like Benlate escaped once again... sigh."

 

Edit: just found a little bug, in your real_benlate.sqf you have:

b_missionrunning = false;

Which should be:

h_missionrunning = false;

as they're hero missions. It stopped the map markers from showing for me.

Thanks for correctting me, haha yeah, English isn't my first language :P

And I will make the correction and upload a new file :D

Share this post


Link to post
Share on other sites

Same here.

 

 

does this work for the WAI 2.2.0? I added it but have yet to see the mission appear

I am not sure actually, it works well on the newest version.

 

try to set the chance of other missions to zero, and set 50 50 for two benlate mission, and reduce the mission spawn time, so you can see if they spawn in

Share this post


Link to post
Share on other sites

The benlate/realbenlate mission does not want to be "secured" after killing everybody. This is what it spams in my RPT log :
 

if (_complet>
21:24:18   Error Undefined variable in expression: _objectivetarget
21:24:18 File z\addons\dayz_server\WAI\compile\mission_winorfail.sqf, line 82
21:24:20 Error in expression <ith {_complete = false;};
} count units _objectivetarget;
};
};
};

Share this post


Link to post
Share on other sites

 

The benlate/realbenlate mission does not want to be "secured" after killing everybody. This is what it spams in my RPT log :

 

if (_complet>
21:24:18   Error Undefined variable in expression: _objectivetarget
21:24:18 File z\addons\dayz_server\WAI\compile\mission_winorfail.sqf, line 82
21:24:20 Error in expression <ith {_complete = false;};
} count units _objectivetarget;
};
};
};

can you write down what is on line 82 of mission_winorfail.sqg?

Share this post


Link to post
Share on other sites

Sure, here it is : 
 

 if (_type == "assassinate") exitWith {
_objectivetarget = (_this select 1) select 1;
{
_complete = true;
if (alive _x) exitWith {_complete = false;};
} count units _objectivetarget;                  // This is the line 82 for me here
};
};
};

Share this post


Link to post
Share on other sites

 

Sure, here it is : 

 

 if (_type == "assassinate") exitWith {
_objectivetarget = (_this select 1) select 1;
{
_complete = true;
if (alive _x) exitWith {_complete = false;};
} count units _objectivetarget;                  // This is the line 82 for me here
};
};
};

do the fake benlate mission work well?

for the real benlate one, do benlate spawn? or the mission doesnt end after you kill him?

 

is there an extra "};" in mission_winorfail.sqg? not quite sure what is causing this

Share this post


Link to post
Share on other sites

I do not remember much if the fake_benlate mission did work or not. The last time I did the mission it was real_benlate, he appeared but does not complete the mission after killing him and his wife. I am not quite sure of if there is an extra }; in the mission_winorfail.sqf but I will post it here. :

if(isServer) then {

 
private ["_max_ai","_timeout_time","_currenttime","_starttime","_msglose","_msgwin","_msgstart","_objectives","_crate","_marker","_in_range","_objectivetarget","_position","_type","_complete","_timeout","_mission","_killpercent","_delete_mines","_cleanunits","_clearmission","_baseclean"];
 
_mission = (_this select 0) select 0;
_crate = (_this select 0) select 1;
_type = (_this select 1) select 0;
_baseclean = _this select 2;
_msgstart = _this select 3;
_msgwin = _this select 4;
_msglose = _this select 5;
 
_position = position _crate;
_timeout = false;
_complete = false;
_starttime = time;
_timeout_time = ((wai_mission_timeout select 0) + random((wai_mission_timeout select 1) - (wai_mission_timeout select 0)));
_max_ai = (wai_mission_data select _mission) select 0;
_killpercent = _max_ai - (_max_ai * (wai_kill_percent / 100));
 
[nil,nil,rTitleText,_msgstart,"PLAIN",10] call RE;
 
clearWeaponCargoGlobal _crate;
clearMagazineCargoGlobal _crate;
 
_crate setVariable ["ObjectID","1",true];
_crate setVariable ["permaLoot",true];
_crate allowDamage false;
 
while {!_timeout && !_complete} do {
 
sleep 1;
_currenttime = time;
{
if((isPlayer _x) && (_x distance _position <= wai_timeout_distance)) then {
_starttime = time;
};
 
} count playableUnits;
 
if (_currenttime - _starttime >= _timeout_time) then {
_timeout = true;
};
 
call {
 
if (_type == "crate") exitWith {
 
if(wai_kill_percent == 0) then {
 
{
if((isPlayer _x) && (_x distance _position <= 20)) then {
_complete = true
};
} count playableUnits;
 
} else {
 
if(((wai_mission_data select _mission) select 0) <= _killpercent) then {
{
if((isPlayer _x) && (_x distance _position <= 20)) then {
_complete = true
};
} count playableUnits;
};
 
};
 
};
 
if (_type == "kill") exitWith {
if(((wai_mission_data select _mission) select 0) == 0) then {
_complete = true
};
};
 
if (_type == "assassinate") exitWith {
_objectivetarget = (_this select 1) select 1;
{
_complete = true;
if (alive _x) exitWith {_complete = false;};
} count units _objectivetarget;
};
};
};
 
if (_complete) then {
 
// if (typeOf(_crate) in (crates_large + crates_medium + crates_small)) then {
if(wai_crates_smoke && sunOrMoon == 1) then {
_marker = "smokeShellPurple" createVehicle getPosATL _crate;
_marker setPosATL (getPosATL _crate);
_marker attachTo [_crate,[0,0,0]];
};
 
if (wai_crates_flares && sunOrMoon != 1) then {
_marker = "RoadFlare" createVehicle getPosATL _crate;
_marker setPosATL (getPosATL _crate);
_marker attachTo [_crate, [0,0,0]];
 
_in_range = _crate nearEntities ["CAManBase",1250];
 
{
if(isPlayer _x && _x != player) then {
PVDZE_send = [_x,"RoadFlare",[_marker,0]];
publicVariableServer "PVDZE_send";
};
} count _in_range;
 
};
 
// };
_delete_mines = ((wai_mission_data select _mission) select 2);
 
if(count _delete_mines > 0) then {
 
{
if(typeName _x == "ARRAY") then {
 
{
deleteVehicle _x;
} count _x;
 
} else {
 
deleteVehicle _x;
 
};
 
} count _delete_mines;
 
};
 
wai_mission_data set [_mission, -1];
 
[nil,nil,rTitleText,_msgwin,"PLAIN",10] call RE;
 
if (wai_clean_mission) then {
 
[_position,_baseclean] spawn {
private ["_pos","_clean","_finish_time","_cleaned","_playernear","_currenttime"];
_pos = _this select 0;
_clean = _this select 1;
_finish_time = time;
_cleaned = false;
while {!_cleaned} do {
 
_playernear = false;
 
{
if ((isPlayer _x) && (_x distance _pos < 400)) exitWith { _playernear = true };
} count playableUnits;
 
_currenttime = time;
 
if ((_currenttime - _finish_time >= wai_clean_mission_time) && !_playernear) then {
 
{
if(typeName _x == "ARRAY") then {
 
{
if ((_x getVariable ["ObjectID", nil]) == nil) then {
deleteVehicle _x;
};
} count _x;
 
} else {
if ((_x getVariable ["ObjectID", nil]) == nil) then {
deleteVehicle _x;
};
};
 
} forEach _clean;
 
_cleaned = true;
 
};
 
sleep 1;
};
};
};
};
 
if (_timeout) then {
 
{
 
if (_x getVariable ["mission", nil] == _mission) then {
 
if (alive _x) then {
 
_cleanunits = _x getVariable ["missionclean",nil];
 
if (!isNil "_cleanunits") then {
 
call {
if(_cleanunits == "ground") exitWith { ai_ground_units = (ai_ground_units -1); };
if(_cleanunits == "air") exitWith { ai_air_units = (ai_air_units -1); };
if(_cleanunits == "vehicle") exitWith { ai_vehicle_units = (ai_vehicle_units -1); };
if(_cleanunits == "static") exitWith { ai_emplacement_units = (ai_emplacement_units -1); };
};
};
};
 
deleteVehicle _x;
};
 
} count allUnits + vehicles + allDead;
 
{
if(typeName _x == "ARRAY") then {
 
{
deleteVehicle _x;
} count _x;
 
} else {
 
deleteVehicle _x;
};
 
} forEach _baseclean + ((wai_mission_data select _mission) select 2) + [_crate];
 
wai_mission_data set [_mission, -1];
 
[nil,nil,rTitleText,_msglose,"PLAIN",10] call RE;
};
 
_complete
 
};
 

Share this post


Link to post
Share on other sites

I do not remember much if the fake_benlate mission did work or not. The last time I did the mission it was real_benlate, he appeared but does not complete the mission after killing him and his wife. I am not quite sure of if there is an extra }; in the mission_winorfail.sqf but I will post it here. :

if(isServer) then {

 
private ["_max_ai","_timeout_time","_currenttime","_starttime","_msglose","_msgwin","_msgstart","_objectives","_crate","_marker","_in_range","_objectivetarget","_position","_type","_complete","_timeout","_mission","_killpercent","_delete_mines","_cleanunits","_clearmission","_baseclean"];
 
_mission = (_this select 0) select 0;
_crate = (_this select 0) select 1;
_type = (_this select 1) select 0;
_baseclean = _this select 2;
_msgstart = _this select 3;
_msgwin = _this select 4;
_msglose = _this select 5;
 
_position = position _crate;
_timeout = false;
_complete = false;
_starttime = time;
_timeout_time = ((wai_mission_timeout select 0) + random((wai_mission_timeout select 1) - (wai_mission_timeout select 0)));
_max_ai = (wai_mission_data select _mission) select 0;
_killpercent = _max_ai - (_max_ai * (wai_kill_percent / 100));
 
[nil,nil,rTitleText,_msgstart,"PLAIN",10] call RE;
 
clearWeaponCargoGlobal _crate;
clearMagazineCargoGlobal _crate;
 
_crate setVariable ["ObjectID","1",true];
_crate setVariable ["permaLoot",true];
_crate allowDamage false;
 
while {!_timeout && !_complete} do {
 
sleep 1;
_currenttime = time;
{
if((isPlayer _x) && (_x distance _position <= wai_timeout_distance)) then {
_starttime = time;
};
 
} count playableUnits;
 
if (_currenttime - _starttime >= _timeout_time) then {
_timeout = true;
};
 
call {
 
if (_type == "crate") exitWith {
 
if(wai_kill_percent == 0) then {
 
{
if((isPlayer _x) && (_x distance _position <= 20)) then {
_complete = true
};
} count playableUnits;
 
} else {
 
if(((wai_mission_data select _mission) select 0) <= _killpercent) then {
{
if((isPlayer _x) && (_x distance _position <= 20)) then {
_complete = true
};
} count playableUnits;
};
 
};
 
};
 
if (_type == "kill") exitWith {
if(((wai_mission_data select _mission) select 0) == 0) then {
_complete = true
};
};
 
if (_type == "assassinate") exitWith {
_objectivetarget = (_this select 1) select 1;
{
_complete = true;
if (alive _x) exitWith {_complete = false;};
} count units _objectivetarget;
};
};
};
 
if (_complete) then {
 
// if (typeOf(_crate) in (crates_large + crates_medium + crates_small)) then {
if(wai_crates_smoke && sunOrMoon == 1) then {
_marker = "smokeShellPurple" createVehicle getPosATL _crate;
_marker setPosATL (getPosATL _crate);
_marker attachTo [_crate,[0,0,0]];
};
 
if (wai_crates_flares && sunOrMoon != 1) then {
_marker = "RoadFlare" createVehicle getPosATL _crate;
_marker setPosATL (getPosATL _crate);
_marker attachTo [_crate, [0,0,0]];
 
_in_range = _crate nearEntities ["CAManBase",1250];
 
{
if(isPlayer _x && _x != player) then {
PVDZE_send = [_x,"RoadFlare",[_marker,0]];
publicVariableServer "PVDZE_send";
};
} count _in_range;
 
};
 
// };
_delete_mines = ((wai_mission_data select _mission) select 2);
 
if(count _delete_mines > 0) then {
 
{
if(typeName _x == "ARRAY") then {
 
{
deleteVehicle _x;
} count _x;
 
} else {
 
deleteVehicle _x;
 
};
 
} count _delete_mines;
 
};
 
wai_mission_data set [_mission, -1];
 
[nil,nil,rTitleText,_msgwin,"PLAIN",10] call RE;
 
if (wai_clean_mission) then {
 
[_position,_baseclean] spawn {
private ["_pos","_clean","_finish_time","_cleaned","_playernear","_currenttime"];
_pos = _this select 0;
_clean = _this select 1;
_finish_time = time;
_cleaned = false;
while {!_cleaned} do {
 
_playernear = false;
 
{
if ((isPlayer _x) && (_x distance _pos < 400)) exitWith { _playernear = true };
} count playableUnits;
 
_currenttime = time;
 
if ((_currenttime - _finish_time >= wai_clean_mission_time) && !_playernear) then {
 
{
if(typeName _x == "ARRAY") then {
 
{
if ((_x getVariable ["ObjectID", nil]) == nil) then {
deleteVehicle _x;
};
} count _x;
 
} else {
if ((_x getVariable ["ObjectID", nil]) == nil) then {
deleteVehicle _x;
};
};
 
} forEach _clean;
 
_cleaned = true;
 
};
 
sleep 1;
};
};
};
};
 
if (_timeout) then {
 
{
 
if (_x getVariable ["mission", nil] == _mission) then {
 
if (alive _x) then {
 
_cleanunits = _x getVariable ["missionclean",nil];
 
if (!isNil "_cleanunits") then {
 
call {
if(_cleanunits == "ground") exitWith { ai_ground_units = (ai_ground_units -1); };
if(_cleanunits == "air") exitWith { ai_air_units = (ai_air_units -1); };
if(_cleanunits == "vehicle") exitWith { ai_vehicle_units = (ai_vehicle_units -1); };
if(_cleanunits == "static") exitWith { ai_emplacement_units = (ai_emplacement_units -1); };
};
};
};
 
deleteVehicle _x;
};
 
} count allUnits + vehicles + allDead;
 
{
if(typeName _x == "ARRAY") then {
 
{
deleteVehicle _x;
} count _x;
 
} else {
 
deleteVehicle _x;
};
 
} forEach _baseclean + ((wai_mission_data select _mission) select 2) + [_crate];
 
wai_mission_data set [_mission, -1];
 
[nil,nil,rTitleText,_msglose,"PLAIN",10] call RE;
};
 
_complete
 
};
 

Yeah I found an error in the mission file, I uploaded the new sqf,

it should be working fine now

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 Adam1911
      TWZ - The Walking Z Overpoch Server
      Server IP: 54.37.244.16:2302
      Discord: Discord
      Website: Website
      Top Server Features:
      PvE Only Server.
      Dedicated server for max performance.
      6 Hour Restarts.
      Full day/night cycle. (No Voting)
      Indestructible bases.
      Custom AI Missions.
      High loot spawns.
      Slow (Walking) Zombies.
      Custom Traders. (10k/50k/100k/500k humanity)
      Paychecks every hour. (Scales with humanity)
      Humanity Quests.
      Anit Stealing for all vehicles. (Prevents anyone from stealing your vehicles)
      Simi Militarised.
    • By Pickle Rick
      ip - 192.154.248.253
      Discord.gg/9m99XxM
      NEW SERVER UP AND RUNNING.. FULL OF AI, PVP HELL...  Stop in and ask Pickle Rick or OTROD for a free tank

    • By Ghostrider-GRG
      Originally concieved by Blckeagls and supported here with permission
      Completely rewritten  to remove bugs and add functionallity.
       
       
      Current Version: Version 6.96
      Current Build: 197
      Description.
      Built-in support for Epoch or Exile.
      Updated: Built in Headless client support.
      New: includes tools to export missions from A3EDEN Editor - minimal editing/scripting required to generate new missions once the design is completed in the editr.
      A complete static and dynamic mission system rolled into one.
       
      AI infantry will aggressively pursue attackers, flank, use cover, and communicate with aircraft and ground vehicles.
      Supports missions on land and underwater.
      Includes hostage and arrest enemy leader style missions as well as conventional capture the crate missions.
      Missions can have infantry, static weapons, armed vehicle patrols and aircraft defending the area.
      Built in support for militarized missions with tanks and attack helis or jets if you wish.
      AI loadouts can be defined by arrays or based on items in CfgPricing (Epoch) or the Arsenal (Exile)
      Supports spawning of static AI infantry, vehicles, aircraft, surface vessels, static emplaced weapons and subs with scuba divers.
      Includes tools forspawning map addons exported using M3EDEN editor plugin.
      Includes tools for spawning static loot crates which can be randomized at each area, be spawned with a smoking wreck nearby to create that post-appocolyptic feels, and have randomized .oot.
      To download go to: https://github.com/Ghostrider-DbD-/blckeagles-revisited-RC
      For installation see: https://github.com/Ghostrider-DbD-/blckeagles-revisited-RC/blob/master/INSTALLATION.txt
      For a complete changelog see: https://github.com/Ghostrider-DbD-/blckeagles-revisited-RC/blob/master/changeLog.sqf
      Credits:
          Epoch Mod developer team, and in particular AWOL whose code has provided many lessons in scripting.
        blckeagls - Original developer of mission system 2.0.2   Narines - bug fixes and improvements.   Bill (DBD Clan) example compositions.   cyncrwler for help with troubleshooting and testing   Brian Soanes for helpful changes and performance tweaks.   Grahame for many rounds of testing, feedback and suggestions regarding features.   zxbutchxz for extensive testing of AI behavior. MGTDB for the fix for an issue with interacting with captives/targets on Exile servers. * Additional Credits include authors of other missions systems and scripts who's work influenced this release:
         Halve and He-Man.     Face (A3EAI)     KiloSwiss (SEM)     Hogscrapper (HC missions for A3)     the Vampire (DZMS and VEMF)     The FUCHS (EMS)     lazylink (early A2 Epoch mission system)     Matt11 (Wicked AI) Updates: License
      This Mission System is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
      http://creativecommons.org/licenses/by-nc-sa/4.0/
       
       

       
    • By Voltan
      Hey guys, (@salival hoping you can assist here buddy)
      I will preface this by saying that I am using Epoch 1.0.5.1 and server files provided by @Ultima_weapon
      I am getting this error in my console from WAI:
      I found something related here on page 7 here:
      https://epochmod.com/forum/topic/43666-release-wicked-ai-223-106/page/7/
      But this did not fix my issue.
      Here is the spawn_group.sqf:
      and the spawn_static.sqf:
      Anyone know what could cause this?
    • By Vladick
      BSBS Server IP: 216.244.93.103:7802
      Website: https://bsbsepoch.000webhostapp.com/
      Discord: https://discord.gg/PVn8PvG
      Server Features:
      PvPvE Database wiped 1/5/18 ESS V3 spawn selection Coins and Global Banking WAI missions and Roaming DZAI Bandits Customized map additions Skalisky Bridge Skalisky Island Bandit Camp with high loot (fun mission!) Garage Door Opener Virtual Garage Deploy bike Refuel, Repair, Rearm Take clothes Bury Body Butcher Body Locate vehicle with keys and GPS One plot poll per player Indestructible bases Trader Safe Zones Day/Night Schedule 4-hour restarts
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...