Welcome to Epoch Mod Community

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

Sign in to follow this  
Followers 0
juandayz

[Bombcrate 1.6]

45 posts in this topic

1 minute ago, WagnerMello said:

With me appeared the same thing when it shows the message of 25 seconds I die

I'll test this next script.

Your fix is in the main post

Share this post


Link to post
Share on other sites
8 minutes ago, WagnerMello said:

With me appeared the same thing when it shows the message of 25 seconds I die

I'll test this next script.

Your fix is in the main post. For the other with ai. Find sleep _timer; and below add _playernear = false;

Share this post


Link to post
Share on other sites

Juan saw a player killing them there with mozzie and they did not attack

Could you make a 2 ai of stinger or rpg?

 

20170109184312_1.jpg

Share this post


Link to post
Share on other sites
41 minutes ago, WagnerMello said:

I did not find statictype
Just found enemytype

_statictype = "ZU23_CDF";
_objectsm2 = createVehicle [_statictype, [(_loot_pos select 0) - 5, (_loot_pos select 1) - 4,0],[], 0, "CAN_COLLIDE"];
_objectsm2 setDir 0;
_objectsm2 setVectorUp surfaceNormal position _objectsm2;
_objectsm2 setVehicleLock "LOCKED";
_objectsm2 	setVehicleAmmo 1;
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_objectsm2];

sleep 1;
_group_gunner = createGroup _center_1;
_enemygunner = objNull;
_enemygunner = _group_gunner createUnit [_enemytype,_loot_pos,[],0,"CAN_COLLIDE"];
_enemygunner moveingunner _objectsm2; 

 

Share this post


Link to post
Share on other sites

Do I need to add in private too?

private ["_statictype","_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","_spawnenemys","_enemytype","_aicustomgear","_usewaypoints","_waypointsrange","_enemy","_enemy2","_enemy3","_enemy4","_enemy1","_enemy5","_enemy6","_enemy7"];

_statictype

Share this post


Link to post
Share on other sites
On 27/12/2016 at 7:47 PM, Runewulv said:

juan, meaning when you kill the AI the server cleans their bodies up too quickly. It's a common problem with 1.0.6, have to put a line of code in somewhere to prevent them from cleaning up. Just not sure where it would go.

try it

Spoiler

_enemy setVariable ["bodyName","unknown",false];
_enemy1 setVariable ["bodyName","unknown",false];
_enemy2 setVariable ["bodyName","unknown",false];
_enemy3 setVariable ["bodyName","unknown",false];
_enemy4 setVariable ["bodyName","unknown",false];

 

 

Share this post


Link to post
Share on other sites

Thanks for the work, but event is not completed at the expiration of _wait_time. The same thing happens in Newrubbletown and Supply_from_air :rolleyes:

juandayz likes this

Share this post


Link to post
Share on other sites
On 19/2/2017 at 3:33 AM, grigor said:

Thanks for the work, but event is not completed at the expiration of _wait_time. The same thing happens in Newrubbletown and Supply_from_air :rolleyes:

.. rubbletown and supply_from_air  already have one.

for supply from air the variable is:

_finishEvent = 400;//duration time

for rubbletown is:

_wait_time = 600; 

 

here you got a bombcrate.sqf with  _wait_time clean up

Spoiler

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


private ["_markerRadius","_debug","_loot_box","_loot_lists","_loot","_loot2","_loot_amount","_wait_time","_start_time","_spawnRadius","_spawnMarker","_position",
"_event_marker","_loot_pos","_debug_marker","_box","_timer","_bomb","_dabomb","_this","_positionobj","_mark","_playernear","_spawnChance","_wait_time","_despawn_timer",
"_missiontimeout","_cleanmission","_playerPresent","_starttime","_currenttime"];
 
_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
_wait_time = 600; 
_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 = 600;
 
// Dont mess with theses unless u know what yours doing
_start_time = time;
_spawnRadius = 5000;
_spawnMarker = 'center';
 
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) exitWith {};
 
// Random location
_position = [getMarkerPos _spawnMarker,0,_spawnRadius,10,0,2000,0] call BIS_fnc_findSafePos;
 


_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];
};
 

 
// Create ammo box
_box = createVehicle [_loot_box,_loot_pos,[], 0, "NONE"];
clearMagazineCargoGlobal _box;
clearWeaponCargoGlobal _box;
//_box setVariable ["permaLoot",true];
 

 
// Add loot
{
_box addWeaponCargoGlobal [_x,1];
} forEach (_loot select 0);
{
_box addMagazineCargoGlobal [_x,1];
} forEach (_loot select 1);
{
_box addWeaponCargoGlobal [_x,1];
} forEach (_loot2 select 0);
{
_box addMagazineCargoGlobal [_x,1];
} forEach (_loot2 select 1);
 

// Send center message to users
[nil,nil,rTitleText,"THERS A BOMB CRATE!, Check your Map for the Location!", "PLAIN",10] call RE;

_despawn_timer = 500;
_missiontimeout = true;
_cleanmission = false;
_playerPresent = false;
_starttime = floor(time);
while {_missiontimeout} do {
    sleep 10;
    _currenttime = floor(time);
    {if((isPlayer _x) && (_x distance _loot_pos <= 80)) 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 _box < 10  } count playableunits > 0};
[nil,nil,rTitleText,"BOMBCRATE IS ACTIVE NOW -25 SECONDS BEFORE EXPLODE!", "PLAIN",10] call RE;
_timer = 25;//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 _box;
_mark attachTo [_box, [0,0,-1]];
_positionobj = getPosATL _box;    

 

sleep _timer;
_playernear = false;

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


sleep 1;
call bombexp;

 

 
// Clean up
EPOCH_EVENT_RUNNING = false;
deleteVehicle _mark;
deleteVehicle _box;
deleteMarker _event_marker;
if (_debug) then {
deleteMarker _debug_marker;
};
}else{
sleep _wait_time;
// Clean up
EPOCH_EVENT_RUNNING = false;
deleteVehicle _mark;
deleteVehicle _box;
deleteMarker _event_marker;
if (_debug) then {
deleteMarker _debug_marker;
};

};

 

 

gernika likes this

Share this post


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

@juandayz

 

Sometimes there is loot sometimes not 

 

Bombcrate

 

Why?

try with the permaloot line

// Create ammo box
_box = createVehicle [_loot_box,_loot_pos,[], 0, "NONE"];
clearMagazineCargoGlobal _box;
clearWeaponCargoGlobal _box;
//_box setVariable ["permaLoot",true];

.more specific.. below this line paste:

// Add loot
{
_box addWeaponCargoGlobal [_x,1];
} forEach (_loot select 0);
{
_box addMagazineCargoGlobal [_x,1];
} forEach (_loot select 1);
{
_box addWeaponCargoGlobal [_x,1];
} forEach (_loot2 select 0);
{
_box addMagazineCargoGlobal [_x,1];
} forEach (_loot2 select 1);

_box setVariable ["permaLoot",true];///PASTE HERE

 

harcosgoogle likes this

Share this post


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

@juandayz

 

If the player dies,The event disappears on the map

not event is the marker.. you need some refresh marker script

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
Sign in to follow this  
Followers 0

  • Similar Content

    • By juandayz
      UPDATED 6/14/17
      Based on  The Book of Eli  movie.
      This start spawning a crate with a holy bible. Then wait for a player to start the second fase of the event.
      In the second fase spawn a priest and a ruined church where player must carry the elis book. (itembible).
      If player give the bible, the priest return a reward of 4 briefcast 100oz.
       
      elisbookevent.sqf   (Dayz_Server\modules\)
      open your init.sqf
      EpochUseEvents = true; //Enable event scheduler. Define custom scripts in dayz_server\modules to run on a schedule. EpochEvents = [["any","any","any","any",10,"elisbookevent"],["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];  
      you need a custom fn_selfactions.sqf and at very bottom paste:
      in custom variables.sqf
      create  elisbook.sqf  (mpmissions\your instance\scripts\)
       
    • By juandayz
      UPDATE 13-6-17
      Spawn a marker with 350 of radius.
      Inside, lost in somewhere thers a corpse with a jewells reward in his inventory. (the body agonize so shoot on him).

      1-Open your init.sqf be sure this line is seted as true;
      EpochUseEvents = true;
      2- in this line add the event:
      EpochEvents = [["any","any","any","any",18,"deathcorpse"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];
       
      3-create deathcorpse.sqf and drop into: dayz_server.pbo\modules\ ¡ 
      VIDEO:
       
    • By juandayz
      UPDATED 6/13/17
      Video
      INSTALL:
      1-open your init.sqf
      EpochUseEvents = true; //Enable event scheduler. Define custom scripts in dayz_server\modules to run on a schedule. EpochEvents = [["any","any","any","any",10,"supply_from_air"],["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]];  
      2-Create supply_from_air.sqf ( place into dayz_server\modules\ )
       
    • By LightLoona
      Welcome to our Community
      Anonymous Gaming
      We are a very active and friendly community. Our special Events take place all weekend from Friday to Sunday! We have very active admins, all your feedback and suggestions will be heard, also we make sure the server is free of hackers and dupers to achieve fair and fun gameplay for everyone!
       
      Server IP: 213.32.6.174  Port: 2302              
      Teamspeak: ts.anonymousgaming.info    
      Website: www.anonymousgaming.co.uk
       
      Server Features:
      Change View Distance Custom Spawn Points Custom Traders Deploy Bike|Motorbike|Little Bird Door Management Weekly Events Group Management Locate Vehicle Plot Management Tow|Lift Ai Missions Running Zombies Ore Mines/Veins ...and more! Join us Today! Hope to see you around!
      Event Preview:
       
       

       
    • By juandayz
      UPDATED 1/10/17
      Choose random player/ spawn a plane close of this player/ the pilot suffer a heart disease.. the plane crash on the ground. the pilot its a zed with a small and random reward eating his co-pilot. also thers a small crate with a few random items.
      open your init.sqf
      EpochUseEvents = true; //Enable event scheduler. Define custom scripts in dayz_server\modules to run on a schedule. EpochEvents = [["any","any","any","any",35,"BHD"],["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]]; BHD.sqf (dayz_server\modules\)
       
      NOT A EVENT VIDEO. JUST MUSIC
       
       
  • Latest Donations

  • Donation Box

    Please donate to support the community.
    We appreciate all donations!
  • Advertisement
  • Supporters
  • Advertisement
  • Forum Statistics

    • Total Topics
      26318
    • Total Posts
      242930
  • Member Statistics

    • Total Members
      29362
    • Most Online
      1497

    Newest Member
    [Z]EnDoh
    Joined