Jump to content
juandayz

EPOCH ADMIN EVENTS 1.6

Recommended Posts

16 minutes ago, WagnerMello said:

Juan, can I leave the mission starting alone and using this system together?

yup, you can use the normal event system.. and launch it manually.  basically its the same as manually events (event tools) but this is by server side.. and i remove all checks in events .sqfs  to check if thers another events running.. so you can have more than one event running at same time.  Tell me if u have some issue with kick restrictions.. cuz its not tested on infistar

Share this post


Link to post
Share on other sites
4 minutes ago, Cherdenko said:

Don´t you need to add

to the battleye filters in the publicvariable.txt?

just asking coz of the "PVDZE" at the start

i think yes.. dear mate .. you know im not good with filters :biggrin: that is why you , @Grahame and @theduke exist.. to help me with the bypass LOL

Share this post


Link to post
Share on other sites
6 minutes ago, Cherdenko said:

i´m also not good with be filters:wink:

but there where a lot of statements starting with PVDZE in my be filters so i thought there needed to be these

also USER:adminevents must be added for infistar users?

Share this post


Link to post
Share on other sites

Another fine bit of work @juandayz. Can confirm that it works well, with a couple of fixes.

First, the call in init.sqf must be:

[] execVM "admineventsclientside\init_adminevents.sqf"; 

Can also confirm that if using InfiStar you do need #USER:adminevents added to the _cmenu array and that !=PVDZE_adminevents must be added to the publicvariable.txt filter.

Later today I will respond to the individual event mods you've uploaded with some required BattlEye filters for InfiStar users. Just going through and testing them all now. (Also, I spawned the supply from air event and was pleasantly surprised that my DZAI helo patrols attacked the supply helicopter :cool:

Share this post


Link to post
Share on other sites

One other thing. Would it make sense to actually use the scripts in the standard DayZ Server modules folder rather than those in the adminevents/modules folder? I can see how having a test area may be useful of course...

Maybe add a config variable to select test or standard folders, with the test folder being adminevents/modules and standard being the modules folder

Share this post


Link to post
Share on other sites
9 hours ago, Grahame said:

One other thing. Would it make sense to actually use the scripts in the standard DayZ Server modules folder rather than those in the adminevents/modules folder? I can see how having a test area may be useful of course...

Maybe add a config variable to select test or standard folders, with the test folder being adminevents/modules and standard being the modules folder

i use a diferent modules folder cuz i remove the events checks for another events running. To execute more than one event at same time.

talking about it:

if (isNil "EPOCH_EVENT_RUNNING") then {
EPOCH_EVENT_RUNNING = false;
};
 
// Check for another event running
if (EPOCH_EVENT_RUNNING) exitWith {
diag_log("Event already running");
};

EPOCH_EVENT_RUNNING = true;

// Random chance of event happening
_spawnRoll = random 1;
if (_spawnRoll > _spawnChance and !_debug) exitWith {};

so in the standar folder,, the events scripts have this bunch of code.  and in the adminsmenu.. not

 

but if u wanna use one single folder open the server_adminevents.sqf located in the server side.. and change for this path

[] execVM "\z\addons\dayz_server\modules\" + (_event) + ".sqf";

Share this post


Link to post
Share on other sites
Quote

(Also, I spawned the supply from air event and was pleasantly surprised that my DZAI helo patrols attacked the supply helicopter :cool:

Lol open the supply_from_air.sqf and change the create center/group line if u dont want surprise attack :D

_this = createCenter east;
_center_1 = _this;
_unitGroup = createGroup _center_1;

i dont think the gunners will be attacks players changing the center by east cuz the ai sometimes is stupid

Share this post


Link to post
Share on other sites
3 hours ago, Leg-it said:

Everything seems to work for me, but the bomb-crate mission wont  de-spawn after they blow up and the priest wont take the bible from players to end mission.

redownload the .RAR or just

replace your bombcrate with this:

Spoiler
 //bombcrate by juandayz with base on rubbletown and 4 sidemissions

private ["_playernear","_timer","_spawnChance", "_spawnMarker", "_spawnRadius", "_markerRadius", "_item", "_debug", "_start_time", "_loot","_loot2", "_loot_amount", "_loot_box", "_wait_time", "_spawnRoll", "_position", "_event_marker", "_loot_pos", "_debug_marker","_loot_box", "_hint"];
 
_spawnChance =  0.70; // Percentage chance of event happening
_markerRadius = 250; // Radius the loot can spawn and used for the marker
_debug = true; // Puts a marker exactly were the loot spawns
 
_loot_box = "USVehicleBox";
_loot_lists = [
[
["M9SD","FN_FAL","M4A3_CCO_EP1","AKS_74_kobra","Sa58V_RCO_EP1","ItemEtool","ItemCrowbar","ItemKnife","ItemSledge","ItemCompass","Binocular","Binocular_Vector","NVGoggles","ItemGPS"],
["ItemBriefcase100oz","150Rnd_127x107_DSHKM","20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","20Rnd_762x51_FNFAL","30Rnd_762x39_SA58","30Rnd_762x39_SA58","30Rnd_762x39_SA58","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_545x39_AK","30Rnd_545x39_AK","30Rnd_545x39_AK","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD"]
],
[
["M4A1_HWS_GL_SD_Camo","M16A2GL","M16A4","M16A4_GL","M16A4_ACG_GL","M16A4_ACG","M4A1","M4A1_HWS_GL","M4A1_HWS_GL_camo","M4A1_HWS_GL_SD_Camo","M4A1_RCO_GL","M4A1_Aim","M4A1_Aim_camo","M4A1_AIM_SD_camo"],
["ItemBriefcase100oz","15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor"]
],
[
["ItemToolbox","M4A1_HWS_GL_SD_Camo","M16A2GL","M16A4","M16A4_GL","M16A4_ACG_GL","M16A4_ACG","M4A1","M4A1_HWS_GL","M4A1_HWS_GL_camo","M4A1_HWS_GL_SD_Camo","M4A1_RCO_GL","M4A1_Aim","M4A1_Aim_camo","M4A1_AIM_SD_camo"],
["15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor"]
],
[
["ChainSaw"],
["ItemBriefcase100oz","ItemBriefcase100oz","ItemCorrugated","ItemCorrugated","ItemCorrugated","ItemCorrugated","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemComboLock","ItemGenerator"]
],
[
["G36C_camo","M240_DZ","RPK_74"],
["ItemBriefcase100oz","100Rnd_762x51_M240","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_556x45_BetaCMag","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_556x45_BetaCMag","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_556x45_BetaCMag","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_556x45_BetaCMag","100Rnd_762x51_M240","200Rnd_556x45_M249","100Rnd_762x51_M240","100Rnd_762x51_M240","200Rnd_556x45_M249","2000Rnd_762x51_M134","2000Rnd_762x51_M134","ItemAVE","ItemLRK","ItemTNK","ItemARM","ItemORP","FishCookedSeaBass","FishCookedSeaBass","FishCookedSeaBass","FishCookedSeaBass","FishCookedSeaBass","FishCookedSeaBass","FishCookedSeaBass","FishCookedSeaBass","FishCookedSeaBass","FishCookedSeaBass"]
],
[
["M4A1_HWS_GL_SD_Camo","M16A2GL","M16A4","M16A4_GL","M16A4_ACG_GL","M16A4_ACG","M4A1","M4A1_HWS_GL","M4A1_HWS_GL_camo","M4A1_HWS_GL_SD_Camo","M4A1_RCO_GL","M4A1_Aim","M4A1_Aim_camo","M4A1_AIM_SD_camo"],
["ItemBriefcase100oz","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","FoodCanFrankBeans","FoodCanFrankBeans","FoodCanBakedBeans","FoodMRE","HandGrenade_east","2000Rnd_762x51_M134","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks"]
],
[
["VSS_vintorez","Saiga12K","M8_compact"],
["ItemBriefcase100oz","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_StanagSD","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag","HandGrenade_east","HandGrenade_east","FoodCanSardines","FoodMRE","FoodPistachio","FoodNutmix","FoodMRE","FoodPistachio","FoodNutmix","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks"]
]
];
_loot = _loot_lists call BIS_fnc_selectRandom;
_loot2 = _loot_lists call BIS_fnc_selectRandom;

_loot_amount = 75;
_wait_time = 900;
 
// Dont mess with theses unless u know what yours doing
_start_time = time;
_spawnRadius = 5000;
_spawnMarker = 'center';
 

 
// Random location
_position = [getMarkerPos _spawnMarker,0,_spawnRadius,10,0,2000,0] call BIS_fnc_findSafePos;
 
diag_log(format["Spawning loot event at %1", _position]);

_event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position];
_event_marker setMarkerShape "ELLIPSE";
_event_marker setMarkerType "Cricle01";
_event_marker setMarkerColor "ColorBlack";
_event_marker setMarkerAlpha 0.8;
_event_marker setMarkerBrush "DiagGrid";
_event_marker setMarkerSize [(_markerRadius + 50), (_markerRadius + 50)];
 
_loot_pos = [_position,0,(_markerRadius - 100),10,0,2000,0] call BIS_fnc_findSafePos;
 
if (_debug) then {
_debug_marker = createMarker [ format ["loot_event_debug_marker_%1", _start_time], _loot_pos];
_debug_marker setMarkerText "BOMBCRATE";
_debug_marker setMarkerShape "ICON";
_debug_marker setMarkerType "SupplyVehicle";
_debug_marker setMarkerColor "ColorRed";
_debug_marker setMarkerAlpha 1;
_debug_marker setMarkerSize [1,1];
};
 
diag_log(format["Creating ammo box at %1", _loot_pos]);
 
// Create ammo box
_loot_box = createVehicle [_loot_box,_loot_pos,[], 0, "NONE"];
clearMagazineCargoGlobal _loot_box;
clearWeaponCargoGlobal _loot_box;
_loot_box setVariable ["permaLoot",true];
 
// Cut the grass around the loot position
_clutter = createVehicle ["ClutterCutter_small_2_EP1", _loot_pos, [], 0, "CAN_COLLIDE"];
_clutter setPos _loot_pos;
// cut the grass    end
 
// Add loot
{
_loot_box addWeaponCargoGlobal [_x,1];
} forEach (_loot select 0);
{
_loot_box addMagazineCargoGlobal [_x,1];
} forEach (_loot select 1);
{
_loot_box addWeaponCargoGlobal [_x,1];
} forEach (_loot2 select 0);
{
_loot_box addMagazineCargoGlobal [_x,1];
} forEach (_loot2 select 1);
 
// Send Top Right message to users , requires Remote message script
//_hint = parseText format["<t align='center' color='#0D00FF' shadow='2' size='1.75'>THERS A BOMB CRATE!, Check your Map for the Location!</t><br/><t align='center' color='#ffffff'>THERS A BOMB CRATE!, Check your Map for the Location!</t>"];
//customRemoteMessage = ['hint', _hint];
//publicVariable "customRemoteMessage";

// Send center message to users
[nil,nil,rTitleText,"THERS A BOMB CRATE!, Check your Map for the Location!", "PLAIN",10] call RE;
diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]);

waitUntil{{isPlayer _x && _x distance _loot_box < 10  } count playableunits > 0};
[nil,nil,rTitleText,"BOMBCRATE IS ACTIVE NOW -25 SECONDS BEFORE EXPLODE!", "PLAIN",10] call RE;
_timer = 30;//change me if u want more o less time before bomb explode

 //#############################CREATE THE BOMB FUNCTION TO EXPLODE############################//
bombexp = {

_bomb = ["HelicopterExploSmall","HelicopterExploBig","Bo_GBU12_LGB"] call BIS_fnc_selectRandom;
_dabomb = objNull;

if (true) then
{
	_this = createVehicle [_bomb,_positionobj, [], 2, "CAN_COLLIDE"];
	_dabomb = _this;
};




};
//############################EXIT FROM HERE#################################################//


sleep 1;

 


_mark = "RoadFlare" createVehicle getPosATL _loot_box;
_mark attachTo [_loot_box, [0,0,-1]];
_positionobj = getPosATL _loot_box;    

 

sleep _timer;
_playernear = false;

{
if ((isPlayer _x) && (_x distance _loot_box < 15)) then {																																														
_x setDamage 1;
};
} count playableUnits;	


sleep 1;
call bombexp;

 

 
// Clean up
EPOCH_EVENT_RUNNING = false;
deleteVehicle _mark;
deleteVehicle _loot_box;
deleteMarker _event_marker;
if (_debug) then {
deleteMarker _debug_marker;
}; 

 

To get Elis book work required an extra step that i not included.

Spoiler

you need a custom fn_selfactions.sqf and at very bottom paste:

//Elis book
	private["_playerPos","_near"];

_playerPos = getPosATL player;
_near = count nearestObjects [_playerPos, ["RU_Priest"], 3] > 0;
 
if (_near) then {
        if (s_player_ebook < 0) then {
            s_player_ebook = player addaction[("<t color=""#F7D708"">" + ("Give Holy Book") +"</t>"),"custom\elisbook\elisbook.sqf"];
        };
    } else {
        player removeAction s_player_ebook;
        s_player_ebook = -1;
    };			
	

create  elisbook.sqf  (mpmissions\your instance\custom\elisbook\)

Spoiler

//eli`s book

private ["_hasitem","_LastUsedTime","_Time"];

_hasitem = "ItemBookBible" in magazines player;
_LastUsedTime = 1200;
_Time = time - lastuse;

 

if(_Time < _LastUsedTime) exitWith {
    cutText [format["you already give the Eli´s Book wait %1",(round(_Time - _LastUsedTime))], "PLAIN DOWN"];
};

if (!_hasitem) exitWith {
systemChat("You dont Have the Eli´s Book");
};

if (_hasitem) then {
systemChat("Tnks for give me Eli´s Book survivor");
lastuse = time;
player playActionNow "PutDown";
player removeMagazine "ItemBookBible";
sleep 1;
systemChat("Take a look on your inventory");
player addMagazine "ItemBriefcase100oz";
player addMagazine "ItemBriefcase100oz";
player addMagazine "ItemBriefcase100oz";
player addMagazine "ItemBriefcase100oz";
};

 

 

Share this post


Link to post
Share on other sites

Hey Juan, wonder if you can help. Ive just added this and also the player take clothes scripts, and Im not sure which one it is causing the error Im getting spammed with. Im sure Ive done something wrong somewhere but not sure where. This is the error.

 

Spoiler

if (!(_x getVariable ["permaLoot",false]) AN>
13:40:02   Error position: <!(_x getVariable ["permaLoot",false]) AN>
13:40:02   Error !: Type Number, expected Bool
13:40:02 File z\addons\dayz_server\system\scheduler\sched_lootpiles.sqf, line 27
13:40:02 Error in expression <etVariable ["created",_created];

Any idea what might be causing that?  I get the scroll menu in game and can launch events, so it seems to work. I also got this error when launching an event

Spoiler

3:28:14 Error in expression <er;
deleteVehicle _pilot;
deleteVehicle _gunner;
deleteVehicle _gunner2;
};
if (>
13:28:14   Error position: <_gunner;
deleteVehicle _gunner2;
};
if (>
13:28:14   Error Undefined variable in expression: _gunner
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 432
13:28:14 Error in expression <;
if (_spawnaddon) then {
deleteVehicle _objectslist00;
};
if (_flycrate) then {>
13:28:14   Error position: <_objectslist00;
};
if (_flycrate) then {>
13:28:14   Error Undefined variable in expression: _objectslist00
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 436
13:28:14 Error in expression <en {
if (_scrate1) then {
deleteVehicle _box;
deleteVehicle _chute;
};
if (_scra>
13:28:14   Error position: <_box;
deleteVehicle _chute;
};
if (_scra>
13:28:14   Error Undefined variable in expression: _box
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 440
13:28:14 Error in expression <;
};
if (_scrate2) then {
deleteVehicle _box2;
deleteVehicle _chute2;
};
if (_sc>
13:28:14   Error position: <_box2;
deleteVehicle _chute2;
};
if (_sc>
13:28:14   Error Undefined variable in expression: _box2
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 444
13:28:14 Error in expression <;
};
if (_scrate3) then {
deleteVehicle _box3;
deleteVehicle _chute3;
};
if (_sc>
13:28:14   Error position: <_box3;
deleteVehicle _chute3;
};
if (_sc>
13:28:14   Error Undefined variable in expression: _box3
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 448
13:28:14 Error in expression <;
};
if (_scrate4) then {
deleteVehicle _box4;
deleteVehicle _chute4;
};
};
if (>
13:28:14   Error position: <_box4;
deleteVehicle _chute4;
};
};
if (>
13:28:14   Error Undefined variable in expression: _box4
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 452

 

Share this post


Link to post
Share on other sites
1 hour ago, lwbuk said:

Hey Juan, wonder if you can help. Ive just added this and also the player take clothes scripts, and Im not sure which one it is causing the error Im getting spammed with. Im sure Ive done something wrong somewhere but not sure where. This is the error.

 

  Hide contents

if (!(_x getVariable ["permaLoot",false]) AN>
13:40:02   Error position: <!(_x getVariable ["permaLoot",false]) AN>
13:40:02   Error !: Type Number, expected Bool
13:40:02 File z\addons\dayz_server\system\scheduler\sched_lootpiles.sqf, line 27
13:40:02 Error in expression <etVariable ["created",_created];

Any idea what might be causing that?  I get the scroll menu in game and can launch events, so it seems to work. I also got this error when launching an event

  Hide contents

3:28:14 Error in expression <er;
deleteVehicle _pilot;
deleteVehicle _gunner;
deleteVehicle _gunner2;
};
if (>
13:28:14   Error position: <_gunner;
deleteVehicle _gunner2;
};
if (>
13:28:14   Error Undefined variable in expression: _gunner
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 432
13:28:14 Error in expression <;
if (_spawnaddon) then {
deleteVehicle _objectslist00;
};
if (_flycrate) then {>
13:28:14   Error position: <_objectslist00;
};
if (_flycrate) then {>
13:28:14   Error Undefined variable in expression: _objectslist00
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 436
13:28:14 Error in expression <en {
if (_scrate1) then {
deleteVehicle _box;
deleteVehicle _chute;
};
if (_scra>
13:28:14   Error position: <_box;
deleteVehicle _chute;
};
if (_scra>
13:28:14   Error Undefined variable in expression: _box
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 440
13:28:14 Error in expression <;
};
if (_scrate2) then {
deleteVehicle _box2;
deleteVehicle _chute2;
};
if (_sc>
13:28:14   Error position: <_box2;
deleteVehicle _chute2;
};
if (_sc>
13:28:14   Error Undefined variable in expression: _box2
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 444
13:28:14 Error in expression <;
};
if (_scrate3) then {
deleteVehicle _box3;
deleteVehicle _chute3;
};
if (_sc>
13:28:14   Error position: <_box3;
deleteVehicle _chute3;
};
if (_sc>
13:28:14   Error Undefined variable in expression: _box3
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 448
13:28:14 Error in expression <;
};
if (_scrate4) then {
deleteVehicle _box4;
deleteVehicle _chute4;
};
};
if (>
13:28:14   Error position: <_box4;
deleteVehicle _chute4;
};
};
if (>
13:28:14   Error Undefined variable in expression: _box4
13:28:14 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 452

 

think zabans take clothes work well.. try replace your supply_from_air.sqf with it.

Spoiler

private ["_flycrate","_finishEvent","_heli","_gunners","_usewaypoints","_waypointsrange","_markeronradius","_markerRadius","_followmarker","_spawnChance",
"_spawnRadius","_spawnMarker","_position","_positionarray","_startingpos","_spawnRoll","_marker_on_radius","_follow_marker","_heli_class","_unitGroup",
"_aiskin","_helicopter","_pilot","gunner","gunner2","_follow_marker","_despawn_timer","_missiontimeout","_cleanmission","_playerPresent","_starttime",
"_currenttime","_tools","_items","_weapon","_weapon2","_weapon3","_weapon4","_weapon5","_weapon6","_giveWep","_possibleMags","_mag","_crateItems","_var",
"_distance","_boxtype","_getPos","_positiondrop","_box","_chute","_smoke","_box2","_chute2","_smoke2","_positiondrop2","_positiondrop3","_box3","_chute3",
"_smoke3","_box4","_chute4","_smoke","_positiondrop4","_items1","_items2","_items3","_mag2","_giveWep2","_crateItems1","_crateItems2","_crateItems3",
"_scrate1","_scrate2","_scrate3","_scrate4","_spawnaddon","_objectslist00","_loot_lists","_loot","_loot2","_paratroops","_getheliPos","_airpos","_enemyskin",
"_para1","_para2","_parachute2","_paratroop4","_unitchute2","_pgroup","_posjump","_getPosjump","_parachute1"];

 

 

 

//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////CONFIGS/////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//

 


_finishEvent = 400;//duration time

_waypointsrange = 100;//range to move
_markeronradius = true; // Puts a marker at radius
_markerRadius = 250; //  spawn and used for the marker
_followmarker = true; //spawn marker to follow the heli

//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////CONFIGS/////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//

//Loot for box 3/4

_loot_lists = [
[
["BAF_LRR_scoped","DMR_DZ","SCAR_H_LNG_Sniper","M240_DZ"],
["5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","5Rnd_86x70_L115A1","20Rnd_762x51_DMR","20Rnd_762x51_DMR","20Rnd_762x51_B_SCAR","20Rnd_762x51_B_SCAR","100Rnd_762x51_M240","100Rnd_762x51_M240","Skin_TK_INS_Soldier_AR_EP1_DZ","Skin_RUS_Commander_DZ","FoodbaconCooked","FoodGoatCooked","ItemSodaFranka","ItemSodaMzly","PartGeneric"]
],
[
["revolver_gold_EP1"],
["6Rnd_45ACP","6Rnd_45ACP","6Rnd_45ACP","SmokeShellGreen","HandGrenade_west","HandGrenade_west","HandGrenade_east","HandGrenade_east","1Rnd_HE_M203","ItemGoldBar10oz","ItemGoldBar10oz","ItemGoldBar10oz","ItemGoldBar10oz","ItemKiloHemp","ItemKiloHemp","ItemKiloHemp","PipeBomb"]
],
[
["Binocular_Vector","NVGoggles","ItemMatchbox","ItemEtool","ItemHatchet","ItemMachete","ItemPickaxe","ItemSledge"],
["ItemLightBulb","ItemMixOil","plot_pole_kit","ItemGoldBar10oz","ItemGoldBar10oz","ItemGoldBar10oz","ItemGoldBar10oz","ItemGoldBar10oz","ItemGoldBar10oz","ItemGoldBar10oz"]
],
[
["ChainSaw"],
["ItemSandbag","ItemWire","equip_brick","ItemDesertTent","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemPole","ItemComboLock","ItemGenerator"]
],
[
["RPK_DZ","RPK_DZ","PKM_DZ","PKM_DZ"],
["75Rnd_545x39_RPK","75Rnd_545x39_RPK","75Rnd_762x39_RPK","75Rnd_762x39_RPK","100Rnd_762x54_PK","100Rnd_762x54_PK","100Rnd_762x54_PK","100Rnd_762x54_PK","ItemSodaPepsi","ItemSodaPepsi","ItemSodaPepsi","ItemSodaPepsi","ItemSodaPepsi","ItemSodaPepsi","ItemKiloHemp","ItemKiloHemp","ItemKiloHemp","ItemKiloHemp","ItemKiloHemp","ItemKiloHemp","ItemKiloHemp",""]
],
[
["L110A1_DZ"],
["ItemAntibiotic","ItemAntibacterialWipe","bloodBagONEG","bloodBagBPOS","transfusionKit","bloodTester","equip_gauze","equip_rag","equip_herb_box","equip_string","ItemMorphine"]
],
[
["Crossbow_DZ","MR43_DZ","RedRyder","Mosin_DZ","LeeEnfield_DZ"],
["12Rnd_Quiver_Wood","1Rnd_Bolt_Tranquilizer","1Rnd_Bolt_Explosive","5Rnd_762x54_Mosin","5Rnd_762x54_Mosin","10Rnd_303British","10Rnd_303British","equip_gauzepackaged","equip_rope","equip_rag","ItemMorphine","ItemMorphine","MortarBucket","MortarBucket","MortarBucket","MortarBucket","MortarBucket","MortarBucket","transfusionKit","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks"]
],
[
["M4SPR","M14_DZ","M24_des_EP1"],
["5Rnd_17HMR","5Rnd_17HMR","5Rnd_762x51_M24","5Rnd_762x51_M24","20Rnd_762x51_DMR","20Rnd_762x51_DMR","10Rnd_762x54_SVD","10Rnd_762x54_SVD","10Rnd_762x54_SVD"]
],

[
["SVD_DZ","SVD_DZ","SVD_des_EP1","SVD_des_EP1"],
["PartWheel","PartWheel","PartWheel","PartGlass","PartGlass","PartGlass","PartEngine","PartEngine","PartVRotor","PartVRotor","PartFueltank","PartFueltank","ItemFuelcan","ItemFuelcan","ItemJerrycan","ItemJerrycan","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks","CinderBlocks","10Rnd_762x54_SVD","10Rnd_762x54_SVD"]
]
];
_loot = _loot_lists call BIS_fnc_selectRandom;
_loot2 = _loot_lists call BIS_fnc_selectRandom;

//config loot for box 1-2//
_tools = ["ItemPickaxe","ItemEtool","ItemKnife","ItemFishingPole","ItemHatchet","ItemMatchbox","ItemCrowbar"];
_items = ["ItemSodaPepsi","ItemMorphine","bloodBagONEG","ItemBloodbag","ItemComboLock","ItemKiloHemp","5Rnd_17HMR","5Rnd_17HMR","5Rnd_762x51_M24","5Rnd_762x51_M24","20Rnd_762x51_DMR","20Rnd_762x51_DMR","10Rnd_762x54_SVD","10Rnd_762x54_SVD","10Rnd_762x54_SVD"];


//weapon lists
_weapon = "L110A1_DZ";
_weapon2 = "M4SPR";
_weapon3 = "PKM_DZ";
_weapon4 = "RPK_74";
_weapon5 = "BAF_LRR_scoped";
_weapon6 = "M240_DZ";
_giveWep = [_weapon,_weapon2,_weapon3,_weapon4,_weapon5,_weapon6] call BIS_fnc_selectRandom;
_giveWep2 = [_weapon,_weapon2,_weapon3,_weapon4,_weapon5,_weapon6] call BIS_fnc_selectRandom;
_possibleMags = getArray (configfile >> "cfgWeapons" >> _giveWep >> "magazines");
_mag = _possibleMags select 0;
_crateItems = [_items] call BIS_fnc_selectRandom;

_var = floor((random 2) + 1);
//-----------//

 

 

//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////CONFIG THE EVENT SPAWN/////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//
_spawnChance =  0.70;
_spawnRadius = 5000;
_spawnMarker = 'center';
_position = [getMarkerPos "center",0,5500,10,0,2000,0] call BIS_fnc_findSafePos;
_positionarray = [
[(_position select 0) - 14.5, (_position select 1) - 21,-0.012],
[(_position select 0) - 20, (_position select 1) - 20,-0.012],
[(_position select 0) + 25, (_position select 1) + 5,-0.012],
[(_position select 0) + 16, (_position select 1) - 14,-0.012],
[(_position select 0) + 49, (_position select 1) + 17.5,-0.012],
[(_position select 0) + 38.5, (_position select 1) - 16,-0.012]
];
_startingpos = _positionarray call BIS_fnc_selectRandom;

if (isNil "EPOCH_EVENT_RUNNING") then {
EPOCH_EVENT_RUNNING = false;
};
 

//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////END SPAWN CONFIG///////////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//

 

 


//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////CONFIG MARKERS/////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//
if (_markeronradius) then {
_marker_on_radius = createMarker ["helirad",_position];
_marker_on_radius setMarkerShape "ELLIPSE";
_marker_on_radius setMarkerType "Cricle01";
_marker_on_radius setMarkerColor "ColorRed";
_marker_on_radius setMarkerAlpha 0.8;
_marker_on_radius setMarkerBrush "DiagGrid";
_marker_on_radius setMarkerSize [(_markerRadius + 50), (_markerRadius + 50)];
};

if (_followmarker) then {
_follow_marker = createMarker ["marker-follow-heli",_startingpos];
_follow_marker setMarkerText "Helicopter";
_follow_marker setMarkerShape "ICON";
_follow_marker setMarkerType "mil_triangle";
_follow_marker setMarkerColor "ColorBlue";
_follow_marker setMarkerAlpha 1;
_follow_marker setMarkerSize [0.8,0.8];

};
//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////////////////////SPAWNS/////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//

 

//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////SPAWN THE HELI AND AI/////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//

    
_aiskin = ["TK_Commander_EP1","RU_Soldier_AR","Ins_Commander","RU_Soldier_TL","TK_Soldier_SL_EP1"] call BIS_fnc_selectRandom;

_this = createCenter west;
_this setFriend [west, 1];
_center_1 = _this;
_unitGroup = createGroup _center_1;
//

//spawnai
_pilot = objNull;
_pilot = _unitGroup createUnit [_aiskin, _startingpos, [], 1, "NONE"];
_pilot addEventHandler ["handleDamage", {false}];
[_pilot] joinSilent _unitGroup;

sleep 1;
_heli_class = ["UH1H_DZE","UH1Y_DZE"] call BIS_fnc_selectRandom;
_helicopter =  createVehicle [_heli_class, [(_position select 0) + 4, (_position select 1) + 100],[], 0, "FLY"];
_helicopter         setVehicleVarName "heli";
_helicopter         setFuel 1;
_helicopter         engineOn true;
_helicopter         setVehicleAmmo 1;
_helicopter         flyInHeight 150;
_helicopter         setVehicleLock "LOCKED";
_helicopter         addEventHandler ["GetOut",{(_this select 0) setFuel 0;(_this select 0) setDamage 1;}];
_helicopter addEventHandler ["handleDamage", {false}];

dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_helicopter];
_pilot     assignAsDriver _helicopter;
_pilot     moveInDriver _helicopter;

_gunner = _unitGroup createUnit [_aiskin,_startingpos,[],1,"NONE"];
_gunner assignAsGunner _helicopter;
_gunner addEventHandler ["handleDamage", {false}];
_gunner moveInTurret [_helicopter,[0]];
[_gunner] joinSilent _unitGroup;

_gunner2 = _unitGroup createUnit [_aiskin,_startingpos,[],1,"NONE"];
_gunner2 addEventHandler ["handleDamage", {false}];
_gunner2 assignAsGunner _helicopter;
_gunner2 moveInTurret [_helicopter,[1]];
[_gunner2] joinSilent _unitGroup;


//end of heli

 

_xpos = _position select 0;
_ypos = _position select 1;
// These are 4 waypoints in a NorthSEW around the center
_waypos1 = [_xpos, _ypos+20, 0];
_waypos2 = [_xpos+20, _ypos, 0];
_waypos3 = [_xpos, _ypos-20, 0];
_waypos4 = [_xpos-20, _ypos, 0];
_wp1 = _unitGroup addWaypoint [_waypos1, _waypointsrange];
_wp1 setWaypointType "MOVE";
_wp2 = _unitGroup addWaypoint [_waypos2, _waypointsrange];
_wp2 setWaypointType "MOVE";
_wp3 = _unitGroup addWaypoint [_waypos3, _waypointsrange];
_wp3 setWaypointType "MOVE";
_wp4 = _unitGroup addWaypoint [_waypos4, _waypointsrange];
_wp4 setWaypointType "MOVE";
_waypointend = _unitGroup addWaypoint [[_xpos,_ypos, 0], _waypointsrange];
_waypointend setWaypointType "CYCLE";

//send global text for each player
[nil,nil,rTitleText,"Thers an Civil Defense Helicopter check your map to get supplys", "PLAIN",10] call RE;

 


//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////TIME/PLAYERS MONITOR/////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//
_despawn_timer = 400;
_missiontimeout = true;
_cleanmission = false;
_playerPresent = false;
_starttime = floor(time);
while {_missiontimeout} do {
    sleep 10;
    _currenttime = floor(time);
    {if((isPlayer _x) && (_x distance _startingpos <= 100)) then {_playerPresent = true};}forEach playableUnits;//check for nearest players
    if (_currenttime - _starttime >= _despawn_timer) then {_cleanmission = true;};
    if ((_playerPresent) || (_cleanmission)) then {_missiontimeout = false;};
};

if (_playerPresent) then {
waitUntil{{isPlayer _x && _x distance _startingpos < 50  } count playableunits > 0};

sleep 3;

//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////SPAWN CRATES/////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//

//if ly crate config drop
_boxtype = "USVehicleBox_EP1";
_getPos = getPos _helicopter;
_positiondrop = [(_getPos select 0)-5, (_getPos select 1)-4, 25];
_positiondrop2 = [(_getPos select 0)+7, (_getPos select 1)-7, 50];
_positiondrop3 = [(_getPos select 0)+5, (_getPos select 1)-3, 40];
_positiondrop4 = [(_getPos select 0)-10, (_getPos select 1)-5, 30];
//


[nil,nil,rTitleText,"supply from above", "PLAIN",10] call RE;


_box = _boxtype createVehicle _positiondrop;
_box setVariable ["Mission",1,true];

_box setVariable ["ObjectID",""];
clearweaponcargoglobal _box;
clearmagazinecargoglobal _box;
_chute = createVehicle ["ParachuteMediumEast", getPos _box, [], 0, "FLY"];
_box attachTo [_chute, [0,0,3]];
_smoke = "SmokeShellBlue" createVehicle (getPos _box);
_smoke attachTo [_box, [0,0,0]];

//add loot
{_box addMagazineCargoGlobal [_x, _var];} forEach _crateItems;
{_box addWeaponCargoGlobal [_x, 1];} forEach _tools;
_box addMagazineCargoGlobal [_mag, _var];
_box addWeaponCargoGlobal [_giveWep, 1];


sleep 3;

 

_box2 = _boxtype createVehicle _positiondrop2;
_box2 setVariable ["Mission",1,true];

_box2 setVariable ["ObjectID",""];
clearweaponcargoglobal _box2;
clearmagazinecargoglobal _box2;
_chute2 = createVehicle ["ParachuteMediumEast", getPos _box2, [], 0, "FLY"];
_box2 attachTo [_chute2, [0,0,3]];
_smoke2 = "SmokeShellRed" createVehicle (getPos _box2);
_smoke2 attachTo [_box2, [0,0,0]];

//add loot
{_box2 addMagazineCargoGlobal [_x, _var];} forEach _crateItems;
{_box2 addWeaponCargoGlobal [_x, 1];} forEach _tools;
_box2 addMagazineCargoGlobal [_mag, _var];
_box2 addWeaponCargoGlobal [_giveWep, 1];


sleep 3;

 

_box3 = _boxtype createVehicle _positiondrop3;
_box3 setVariable ["Mission",1,true];

_box3 setVariable ["ObjectID",""];
clearweaponcargoglobal _box3;
clearmagazinecargoglobal _box3;

_chute3 = createVehicle ["ParachuteMediumEast", getPos _box3, [], 0, "FLY"];
_box3 attachTo [_chute3, [0,0,3]];
_smoke3 = "SmokeShellYellow" createVehicle (getPos _box3);
_smoke3 attachTo [_box3, [0,0,0]];

//add loot
{
_box3 addWeaponCargoGlobal [_x,1];
} forEach (_loot select 0);
{
_box3 addMagazineCargoGlobal [_x,1];
} forEach (_loot select 1);


sleep 3;

 

_box4 = _boxtype createVehicle _positiondrop4;
_box4 setVariable ["Mission",1,true];

_box4 setVariable ["ObjectID",""];
clearweaponcargoglobal _box4;
clearmagazinecargoglobal _box4;
_chute4 = createVehicle ["ParachuteMediumEast", getPos _box4, [], 0, "FLY"];
_box4 attachTo [_chute4, [0,0,3]];
_smoke4 = "SmokeShellGreen" createVehicle (getPos _box4);
_smoke4 attachTo [_box4, [0,0,0]];

//add loot
{
_box4 addWeaponCargoGlobal [_x,1];
} forEach (_loot2 select 0);
{
_box4 addMagazineCargoGlobal [_x,1];
} forEach (_loot2 select 1);

 


sleep 5;

 


//------------------------------------------------------------------------------------------------------------------------------------------------------------//
/////////////////////////////////////////////////DESPAWNS/////////////////////////////////////////////////////////////////////////////////////////
//------------------------------------------------------------------------------------------------------------------------------------------------------------//
sleep 100;

waitUntil{{isPlayer _x && _x distance _startingpos > 250  } count playableunits > 0};

 


//start to remove all

 

EPOCH_EVENT_RUNNING = false;
if (_followmarker) then {
deleteMarker _follow_marker;
};
if (_markeronradius) then {
deleteMarker _marker_on_radius;
};

deleteVehicle _helicopter;
deleteVehicle _pilot;
deleteVehicle _gunner;
deleteVehicle _gunner2;


deleteVehicle _objectslist00;


deleteVehicle _box;
deleteVehicle _chute;


deleteVehicle _box2;
deleteVehicle _chute2;


deleteVehicle _box3;
deleteVehicle _chute3;


deleteVehicle _box4;
deleteVehicle _chute4;

 

[nil,nil,rTitleText,"Helicopter has lost", "PLAIN",10] call RE;

}else{
sleep _finishEvent;
EPOCH_EVENT_RUNNING = false;
if (_followmarker) then {
deleteMarker _follow_marker;
};
if (_markeronradius) then {
deleteMarker _marker_on_radius;
};

deleteVehicle _helicopter;
deleteVehicle _pilot;
deleteVehicle _gunner1;
deleteVehicle _gunner2;


deleteVehicle _objectslist00;


deleteVehicle _box;
deleteVehicle _chute;


deleteVehicle _box2;
deleteVehicle _chute2;


deleteVehicle _box3;
deleteVehicle _chute3;


deleteVehicle _box4;
deleteVehicle _chute4;


[nil,nil,rTitleText,"Helicopter has lost", "PLAIN",10] call RE;
};

 

Share this post


Link to post
Share on other sites

Im still getting lots of errors. I thought the permaloot one was gone, but I spawned the player_supply mission and its back. It constantly spams the rpt.

Also getting other small errors with some of the other missions.

Player_supply

Spoiler

16:13:33 Error in expression <ep 60;
if (_plane) then {
deleteVehicle _carrier;
deleteVehicle _pilot;
};

wait>
16:13:33   Error position: <_carrier;
deleteVehicle _pilot;
};

wait>
16:13:33   Error Undefined variable in expression: _carrier
16:13:33 File z\addons\dayz_server\adminevents\modules\player_supply.sqf, line 185
16:13:33 Error in expression <waitUntil{{_rand_player  && _x distance _box > 500  } count playableunits > 0};
>
16:13:33   Error position: <_box > 500  } count playableunits > 0};
>
16:13:33   Error &&: Undefined variable in expression: _box
16:13:33 File z\addons\dayz_server\adminevents\modules\player_supply.sqf, line 189

Rubbletown

Spoiler

16:11:28 Error in expression <n {
deleteVehicle _enemy;
deleteVehicle _enemy1;
deleteVehicle _enemy2;
deleteVe>
16:11:28   Error position: <_enemy1;
deleteVehicle _enemy2;
deleteVe>
16:11:28   Error Undefined variable in expression: _enemy1
16:11:28 File z\addons\dayz_server\adminevents\modules\newrubbletown.sqf, line 343

Spoiler

16:09:32 Error in expression < setBehaviour "COMBAT";
_enemy setSkill _AISkills;

 

_enemy1 = objNull;
_enemy1>
16:09:32   Error position: <_AISkills;

 

_enemy1 = objNull;
_enemy1>
16:09:32   Error Undefined variable in expression: _aiskills
16:09:32 File z\addons\dayz_server\adminevents\modules\newrubbletown.sqf, line 136

Supply_from_air

Spoiler

15:56:26 Error in expression <deleteVehicle _gunner2;


deleteVehicle _objectslist00;


deleteVehicle _box;
de>
15:56:26   Error position: <_objectslist00;


deleteVehicle _box;
de>
15:56:26   Error Undefined variable in expression: _objectslist00
15:56:26 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 410

Army_camp

Spoiler

15:56:15 "RUNNING EVENT: armycamp on [2017,1,4,13,56]"
15:56:16 Error in expression <";
_enemy setBehaviour "COMBAT";
_enemy setSkill _AISkills;

 

_enemy1 = objNull>
15:56:16   Error position: <setSkill _AISkills;

 

_enemy1 = objNull>
15:56:16   Error 10 elements provided, 2 expected
15:56:16 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 333
15:56:16 Error in expression <
_enemy3 setBehaviour "COMBAT";
_enemy3 setSkill _AISkills;


_enemy4 = objNull;>
15:56:16   Error position: <setSkill _AISkills;


_enemy4 = objNull;>
15:56:16   Error 10 elements provided, 2 expected
15:56:16 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 370
15:56:16 Error in expression <
_enemy6 setBehaviour "COMBAT";
_enemy6 setSkill _AISkills;

_enemy7 = objNull;
>
15:56:16   Error position: <setSkill _AISkills;

_enemy7 = objNull;
>
15:56:16   Error 10 elements provided, 2 expected
15:56:16 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 405

Haven't tried the others yet. Missions seem to work ok though. They spawn and complete as expected.

Share this post


Link to post
Share on other sites
4 hours ago, lwbuk said:

Im still getting lots of errors. I thought the permaloot one was gone, but I spawned the player_supply mission and its back. It constantly spams the rpt.

Also getting other small errors with some of the other missions.

Player_supply

  Reveal hidden contents

16:13:33 Error in expression <ep 60;
if (_plane) then {
deleteVehicle _carrier;
deleteVehicle _pilot;
};

wait>
16:13:33   Error position: <_carrier;
deleteVehicle _pilot;
};

wait>
16:13:33   Error Undefined variable in expression: _carrier
16:13:33 File z\addons\dayz_server\adminevents\modules\player_supply.sqf, line 185
16:13:33 Error in expression <waitUntil{{_rand_player  && _x distance _box > 500  } count playableunits > 0};
>
16:13:33   Error position: <_box > 500  } count playableunits > 0};
>
16:13:33   Error &&: Undefined variable in expression: _box
16:13:33 File z\addons\dayz_server\adminevents\modules\player_supply.sqf, line 189

Rubbletown

  Reveal hidden contents

16:11:28 Error in expression <n {
deleteVehicle _enemy;
deleteVehicle _enemy1;
deleteVehicle _enemy2;
deleteVe>
16:11:28   Error position: <_enemy1;
deleteVehicle _enemy2;
deleteVe>
16:11:28   Error Undefined variable in expression: _enemy1
16:11:28 File z\addons\dayz_server\adminevents\modules\newrubbletown.sqf, line 343

  Reveal hidden contents

16:09:32 Error in expression < setBehaviour "COMBAT";
_enemy setSkill _AISkills;

 

_enemy1 = objNull;
_enemy1>
16:09:32   Error position: <_AISkills;

 

_enemy1 = objNull;
_enemy1>
16:09:32   Error Undefined variable in expression: _aiskills
16:09:32 File z\addons\dayz_server\adminevents\modules\newrubbletown.sqf, line 136

Supply_from_air

  Reveal hidden contents

15:56:26 Error in expression <deleteVehicle _gunner2;


deleteVehicle _objectslist00;


deleteVehicle _box;
de>
15:56:26   Error position: <_objectslist00;


deleteVehicle _box;
de>
15:56:26   Error Undefined variable in expression: _objectslist00
15:56:26 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 410

Army_camp

  Reveal hidden contents

15:56:15 "RUNNING EVENT: armycamp on [2017,1,4,13,56]"
15:56:16 Error in expression <";
_enemy setBehaviour "COMBAT";
_enemy setSkill _AISkills;

 

_enemy1 = objNull>
15:56:16   Error position: <setSkill _AISkills;

 

_enemy1 = objNull>
15:56:16   Error 10 elements provided, 2 expected
15:56:16 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 333
15:56:16 Error in expression <
_enemy3 setBehaviour "COMBAT";
_enemy3 setSkill _AISkills;


_enemy4 = objNull;>
15:56:16   Error position: <setSkill _AISkills;


_enemy4 = objNull;>
15:56:16   Error 10 elements provided, 2 expected
15:56:16 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 370
15:56:16 Error in expression <
_enemy6 setBehaviour "COMBAT";
_enemy6 setSkill _AISkills;

_enemy7 = objNull;
>
15:56:16   Error position: <setSkill _AISkills;

_enemy7 = objNull;
>
15:56:16   Error 10 elements provided, 2 expected
15:56:16 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 405

Haven't tried the others yet. Missions seem to work ok though. They spawn and complete as expected.

yes dont know why the rpt send errors.. the expresions are commons. like Error in expression <n {
deleteVehicle _enemy;

and missions works fine so i dont know what say you:blink:  (i also have the same errors in rpt)

 

any way let me remove the most quantity of errors that i can

Share this post


Link to post
Share on other sites

I am thinking of adding this to my server, but have a few questions...

1. Is the download updated to include all changes made in this thread?

2. How does it work... how to start missions manually... possibly a brief explanation of how or where to add the events as I currently have no events added and have not used events previously.. Also do not see epoch events in my init.sqf as I remember from 1.0.5.1. My server has only ran wai, dzms, and dzai so far but was looking to add some missions if I found ones that peaked my interest 

3. Does it work with infistar, wai, dzms, and dzai...?

Share this post


Link to post
Share on other sites
1 hour ago, [email protected] said:

I am thinking of adding this to my server, but have a few questions...

1. Is the download updated to include all changes made in this thread?

2. How does it work... how to start missions manually... possibly a brief explanation of how or where to add the events as I currently have no events added and have not used events previously.. Also do not see epoch events in my init.sqf as I remember from 1.0.5.1. My server has only ran wai, dzms, and dzai so far but was looking to add some missions if I found ones that peaked my interest 

3. Does it work with infistar, wai, dzms, and dzai...?

this have 2 folder.. one into client side and the other in server side.

All events in epoch 1.6 Events forums are included in the download folder.

To execute it you have a scroll menu .. this menu is enable only if you add your id into an admin list.

Events are called from dayz_server so you dont enlarge your missions cache.

You can add more events at any time to your events list.

This work thogeter with default epoch events, wai....

The rpt launch some errors about undefined variabls.. but all missions works fine.

I dont have infistar so cannot say you works or not.. but the others guys are using it with infi.

Share this post


Link to post
Share on other sites

would it possible to have a "cleanup menu" for each event,  Lets say you spawn a PVP arena or somehting like that.  Being able to clear it would be awesome also...  i know there was some talk about it in sanbirds thread of manual execution of events. I was never able to get it to work lol

Share this post


Link to post
Share on other sites

Getting loads of errors. just downloaded the latest version.

Bleeding heart - saw explosion nothing else.

12:47:43 "RUNNING EVENT: BHD on [2017,1,9,13,47]"
12:47:44 Error in expression <lot 	moveInDriver _carrier;




_xpos = _position select 0;
_ypos = _position se>
12:47:44   Error position: <_position select 0;
_ypos = _position se>
12:47:44   Error Undefined variable in expression: _position
12:47:44 File z\addons\dayz_server\adminevents\modules\BHD.sqf, line 66

 

Armycamp

12:50:06 "RUNNING EVENT: armycamp on [2017,1,9,13,50]"
12:50:07 Error in expression <";
_enemy setBehaviour "COMBAT";
_enemy setSkill _AISkills;



_enemy1 = objNull>
12:50:07   Error position: <setSkill _AISkills;



_enemy1 = objNull>
12:50:07   Error 10 elements provided, 2 expected
12:50:07 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 333
12:50:07 Error in expression <
_enemy2 setBehaviour "COMBAT";
_enemy2 setSkill _AISkills;


_enemy3 = objNull;>
12:50:07   Error position: <setSkill _AISkills;


_enemy3 = objNull;>
12:50:07   Error 10 elements provided, 2 expected
12:50:07 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 358
12:50:07 Error in expression <
_enemy4 setBehaviour "COMBAT";
_enemy4 setSkill _AISkills;

_enemy5 = objNull;
>
12:50:07   Error position: <setSkill _AISkills;

_enemy5 = objNull;
>
12:50:07   Error 10 elements provided, 2 expected
12:50:07 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 382
12:50:07 Error in expression <
_enemy6 setBehaviour "COMBAT";
_enemy6 setSkill _AISkills;

_enemy7 = objNull;
>
12:50:07   Error position: <setSkill _AISkills;

_enemy7 = objNull;
>
12:50:07   Error 10 elements provided, 2 expected
12:50:07 File z\addons\dayz_server\adminevents\modules\armycamp.sqf, line 405

 

Rubbletown buildings and ai were there but ai never fired at me while standing in front of them

12:52:41 "RUNNING EVENT: newrubbletown on [2017,1,9,13,52]"
12:52:41 "Spawning loot event at [8230.08,7282.13]"
12:52:41 Error in expression < setBehaviour "COMBAT";
_enemy setSkill _AISkills;



_enemy1 = objNull;
_enemy1>
12:52:41   Error position: <_AISkills;



_enemy1 = objNull;
_enemy1>
12:52:41   Error Undefined variable in expression: _aiskills
12:52:41 File z\addons\dayz_server\adminevents\modules\newrubbletown.sqf, line 136
12:52:41 Error in expression <setBehaviour "COMBAT";
_enemy2 setSkill _AISkills;


_enemy3 = objNull;
_enemy3 >
12:52:41   Error position: <_AISkills;


_enemy3 = objNull;
_enemy3 >
12:52:41   Error Undefined variable in expression: _aiskills
12:52:41 File z\addons\dayz_server\adminevents\modules\newrubbletown.sqf, line 161
12:52:43 "Creating ammo box at [8246.08,7268.13,-0.012]"
12:52:44 "Loot event setup, waiting for 900 seconds"

player supply

12:54:46 "RUNNING EVENT: player_supply on [2017,1,9,13,54]"
12:54:46 Error in expression <_spawnRoll = random 1;
if (_spawnRoll > _spawnChance and !_debug) exitWith {};

>
12:54:46   Error position: <_spawnChance and !_debug) exitWith {};

>
12:54:46   Error Undefined variable in expression: _spawnchance
12:54:46 File z\addons\dayz_server\adminevents\modules\player_supply.sqf, line 84
12:54:47 Error in expression <





if (_usewaypoints) then {
_xpos = _position select 0;
_ypos = _position se>
12:54:47   Error position: <_position select 0;
_ypos = _position se>
12:54:47   Error Undefined variable in expression: _position
12:54:47 File z\addons\dayz_server\adminevents\modules\player_supply.sqf, line 131
12:54:48 Warning Message: No entry 'bin\config.bin/CfgMagazines.'.
12:54:48 Warning Message: No entry '.picture'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.scope'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: Error: creating magazine  with scope=private
12:54:48 Warning Message: No entry '.displayName'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.displayNameShort'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.nameSound'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.Library'.
12:54:48 Warning Message: No entry '.libTextDesc'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.type'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.count'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.maxLeadSpeed'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.initSpeed'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.reloadAction'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.modelSpecial'.
12:54:48 Warning Message: '/' is not a value
12:54:48 Warning Message: No entry '.ammo'.
12:54:48 Warning Message: '/' is not a value

supply from air

12:55:02 "RUNNING EVENT: supply_from_air on [2017,1,9,13,55]"
12:55:24 Error in expression <n {
deleteVehicle _enemy;
deleteVehicle _enemy1;
deleteVehicle _enemy2;
deleteVe>
12:55:24   Error position: <_enemy1;
deleteVehicle _enemy2;
deleteVe>
12:55:24   Error Undefined variable in expression: _enemy1
12:55:24 File z\addons\dayz_server\adminevents\modules\newrubbletown.sqf, line 343
12:55:48 Error in expression <le _pilot;
};

waitUntil{{_rand_player  && _x distance _box > 500  } count playa>
12:55:48   Error position: <&& _x distance _box > 500  } count playa>
12:55:48   Error &&: Type Object, expected Bool
12:55:48 File z\addons\dayz_server\adminevents\modules\player_supply.sqf, line 189
13:08:24 Error in expression <er;
deleteVehicle _pilot;
deleteVehicle _gunner1;
deleteVehicle _gunner2;
};
if >
13:08:24   Error position: <_gunner1;
deleteVehicle _gunner2;
};
if >
13:08:24   Error Undefined variable in expression: _gunner1
13:08:24 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 475
13:08:24 Error in expression <;
if (_spawnaddon) then {
deleteVehicle _objectslist00;
};
if (_flycrate) then {>
13:08:24   Error position: <_objectslist00;
};
if (_flycrate) then {>
13:08:24   Error Undefined variable in expression: _objectslist00
13:08:24 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 479
13:08:24 Error in expression <en {
if (_scrate1) then {
deleteVehicle _box;
deleteVehicle _chute;
};
if (_scra>
13:08:24   Error position: <_box;
deleteVehicle _chute;
};
if (_scra>
13:08:24   Error Undefined variable in expression: _box
13:08:24 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 483
13:08:24 Error in expression <;
};
if (_scrate2) then {
deleteVehicle _box2;
deleteVehicle _chute2;
};
if (_sc>
13:08:24   Error position: <_box2;
deleteVehicle _chute2;
};
if (_sc>
13:08:24   Error Undefined variable in expression: _box2
13:08:24 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 487
13:08:24 Error in expression <;
};
if (_scrate3) then {
deleteVehicle _box3;
deleteVehicle _chute3;
};
if (_sc>
13:08:24   Error position: <_box3;
deleteVehicle _chute3;
};
if (_sc>
13:08:24   Error Undefined variable in expression: _box3
13:08:24 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 491
13:08:24 Error in expression <;
};
if (_scrate4) then {
deleteVehicle _box4;
deleteVehicle _chute4;
};
};
if (>
13:08:24   Error position: <_box4;
deleteVehicle _chute4;
};
};
if (>
13:08:24   Error Undefined variable in expression: _box4
13:08:24 File z\addons\dayz_server\adminevents\modules\supply_from_air.sqf, line 495

 

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

  • Similar Content

    • By Tricks
      We are back! Ranked 7th overall in 2014! Classic DayZ Epoch PvP Server!! No stupid start bonus, no heavy military. Just classic Epoch gameplay with new updates!

       
      - Top of the Line Hardware - Overclocked 8700k servers with SSDs. Super high FPS!!

      - XP System & XP Trader - Acquire handy Perks, Skills, and Permits with our XP system!

      - Custom Traders - Totally custom traders unique to this server!

      - Military Bases - High Loot areas perfect for gearing up.

      - Custom Map Content - Aircraft Carriers, Secret Military Bases, New Towns, and more!

      - All The Major Mods - All the major mods like Coin System, Heli Evac, Hide from Zeds, and many more.

      - Lots of AI Missions - Challenging AI missions color-coded by difficulty.

      - Custom AI Missions for Groups - Static missions with super high difficulty and major loot rewards!

      - Realistic Loot Spawns - You wont find high-powered weapons while hunting for loot, realistic loot spawns.

      - No Heavy Weapons, Tanks, Attack Choppers, Jets - Just the classic Epoch vehicles with a few new additions!

      - Lots of Vehicles - Lots of vehicles scattered around the map. Some are ready to go, others need to be fixed first!

      - Base Building - Fully modular base building system with unique build items and crafting recipes.

      - Full Day/Night Cycle - Realistic day and night cycle, no stupid 24 hours daylight!!

      - Full Weather System - Rain, thunderstorms and snow in the winter!!

      - Destructible Base/Garage Doors - Base raiding without losing your whole base! Just the doors are destructible.

      - Abandoned Safes/Lockboxes - Abandoned bases will have their safes unlocked for you to raid!!

      - Fresh Server, All The Best Base Locations Still Available! - No more wipes, server is done and all progress will be saved.

      - Regular Updates/Suggestions Considered - Pass along ideas to the admin staff. We consider all changes.

      - Admin Events - Events with High Loot and great times! See pic below.

      - Active Admin Staff - Find us on Discord anytime or by email!





      Connect to us on DayZ Launcher or directly:

      [SHG]ClassicEpoch|XPSystem|CustomTraders|CustomAImissions|Coins|FPS++

      144.217.62.76:2302

      Discord: http://xn--discrd-zxa.com/join.php?v=OXHD95

      Email: [email protected]

      Website: Under construction


    • By Tricks
      I have been browsing the forums looking for unique mods to add to my server. I noticed Juandayz deleted a lot of his mods before leaving the community. Just curious if anyone has them all and would possibly repost them giving him full credit? I am particularly interested in his "Admin Skin" and "Debug" mods.
       
      Thanks community, here's hoping someone will step up!
    • By victorks
      my first work in editin :) https://uploaddeimagens.com.br/imagens/20180307202515_1-jpg https://uploaddeimagens.com.br/imagens/20180307202245_1-jpg DOWNLOAD: https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0 AI M2 NEED WAI: https://pastebin.com/GJMnPvZP ON THE MAP: https://pastebin.com/cyqH9rNV  
       
      https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0
       
       
       
       
       
       
       
       
       
    • By juandayz
      VIDEO:
      If (You dont have a custom compiles.sqf or a custom keyboard.sqf) exitWith { step1;}else{ proceed with step 2; } forEach user; 1-Making a custom compiles.sqf and custom keyboard.sqf
       
       
      2-In your CUSTOM!!! keyboard.sqf at bottom but before the last "_handled" paste:
      3-Create remote_key.sqf  (mpmissions\your instance\scripts\ )
       
    • By juandayz
      ALL CREDITS FOR @Sandbird
      Walk Amongst The Dead - (Hide from zombies like "The Walking Dead")
      original post 1.0.5.1
       
      *Allow players to walk through zeds and they dsnt been detected.
      *The diference with the old walk amongst is that you get the cammo directly from zeds, not using itemzombiepart.
      *Also i remove the rain wash (sory sandbird) (this was awesome but burn my brain ) but i added an option to wash the cammo in  lakes.
      *Another diference is when you shoot a weapon the cammo go away inmediatly, and the icon is diferent.
       
      INSTALL:
      1-init.sqf
       
       
      2- Description.ext  (ONLY IF URE USING COINS)
       
      3-custom fn_selfactions.sqf
      4-custom Variables.sqf
      5-Download from here:  http://www.mediafire.com/file/9d74axmfym1tz16/zedutility.rar
      and place the "zedutility" folder into mpmissions\the instance that youreusing\scripts\
       
      6- Open the config.sqf located in \zedutility\walkamongstthedead\  to add more or less time to your cammo before he wash automatically
      DZ_ZCAMO_USE_TIME = 30;//30 seconds for default.  
       
  • Advertisement
  • Advertisement
  • Supporters
  • Advertisement
  • Discord

×