General Lee Posted October 18, 2014 Report Share Posted October 18, 2014 so i have 4 Events running on my server You need remote_messages on your server in order to get the mission popups http://dayzepoch.com/forum/index.php?/topic/1026-server-side-hintglobalchat-fix-deathmsg-fix/ I REALLY WOULD LIKE TO HAVE THIS ON MY SERVER BUT THE LINK IS DEAD??????? ANY IDEA'S????? THX Link to comment Share on other sites More sharing options...
Proximus Posted October 19, 2014 Report Share Posted October 19, 2014 Anyone know how i can adjust the treassure mission to spawn a ItemBriefcasexxoz somewhere. I adjusted the treassure.sqf to: _loot_lists = [ [ ["ItemBriefcase100oz"] ], [ ["ItemBriefcase90oz"] ], [ ["ItemBriefcase80oz"] ], [ ["ItemBriefcase70oz"] ], [ ["ItemBriefcase60oz"] ], [ ["ItemBriefcase50oz"] ], [ ["ItemBriefcase40oz"] ], [ ["ItemBriefcase30oz"] ], [ ["ItemBriefcase20oz"] ], [ ["ItemBriefcase10oz"] ], [ ["ItemBriefcase30oz"] ], [ ["ItemBriefcase20oz"] ] ]; When the event starts i get an ingame error about the CfgWeapon: 14:25:07 Warning Message: No entry 'bin\config.bin/CfgWeapons.ItemBriefcase20oz'. 14:25:07 Warning Message: No entry '.scope'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: Error: creating weapon ItemBriefcase20oz with scope=private 14:25:07 Warning Message: No entry '.displayName'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.nameSound'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.type'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.picture'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.Library'. 14:25:07 Warning Message: No entry '.libTextDesc'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.model'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.simulation'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.fireLightDuration'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.fireLightIntensity'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.weaponLockDelay'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.weaponLockSystem'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.cmImmunity'. 14:25:07 Warning Message: '/' is not a value 14:25:07 Warning Message: No entry '.lockingTargetSound'. 14:25:07 Warning Message: Size: '/' not an array 14:25:07 Warning Message: No entry '.lockedTargetSound'. 14:25:07 Warning Message: Size: '/' not an array 14:25:07 Warning Message: No entry '.muzzles'. 14:25:07 Warning Message: Size: '/' not an array So how can i make this work? Link to comment Share on other sites More sharing options...
3steN8igall Posted October 22, 2014 Report Share Posted October 22, 2014 your mistake is, you deleted the item slots all your briefcases were classified as weapons try this _loot_lists = [ [ [], ["ItemBriefcase100oz"] ], [ [], ["ItemBriefcase90oz"] ], ... and so on Proximus 1 Link to comment Share on other sites More sharing options...
Proximus Posted October 23, 2014 Report Share Posted October 23, 2014 your mistake is, you deleted the item slots all your briefcases were classified as weapons try this _loot_lists = [ [ [], ["ItemBriefcase100oz"] ], [ [], ["ItemBriefcase90oz"] ], ... and so on Tried this, but still get the error. I opened a topic about it and some people answerd with some possible solutions, gonna try that and let you know! Link to comment Share on other sites More sharing options...
stef124 Posted October 27, 2014 Report Share Posted October 27, 2014 How can I make start more than one mission at time ? Link to comment Share on other sites More sharing options...
KingRaymond795 Posted October 29, 2014 Report Share Posted October 29, 2014 Hi Guys, Does any one know how to get this (respectively for all 4 missions): // Send center message to users [nil,nil,rTitleText,"A special forces unit lost a precious cargo, Check your Map for the Location!", "PLAIN",10] call RE; diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]); To display on the top right/left of the screen in a box (similar to debug) with an icon of the type of missions - e.g. ______________ | MILITARY | | | | PIC OF a GUN | | OR A CRATE | | | | Special Forces | | lost cargo msg | |_____________| Cheers Link to comment Share on other sites More sharing options...
FPGElliot Posted October 29, 2014 Report Share Posted October 29, 2014 These are great missions ^^ Link to comment Share on other sites More sharing options...
Donnovan Posted January 1, 2015 Report Share Posted January 1, 2015 Thanks for sharing the events! Those are the IKEA missions? Link to comment Share on other sites More sharing options...
sampson42002 Posted January 12, 2015 Report Share Posted January 12, 2015 I installed this and a purple circle appeared on the map after awhile without any notice on the screen. I went to see what mission it was, but it did not say what it was. I have DZMS installed as well which always pops a text up on the screen and shows on the map which mission it is. After getting to the purple circle I ran around most of the area and saw nothing, then it disappeared. Any idea what went wrong? Here is what I have in my init.sqf EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"],["any","any","any","any",10,"Military"], ["any","any","any","any",25,"Treasure"], ["any","any","any","any",40,"Supplyitems"], ["any","any","any","any",55,"Construction"]]; Link to comment Share on other sites More sharing options...
Tomodan Posted January 26, 2015 Report Share Posted January 26, 2015 Can anyone please tell me how to get the marker to stay on the map after you die. have tried But when i use this no marker appears at all Would love some detailed instructions if anyone can help Link to comment Share on other sites More sharing options...
Tomodan Posted January 27, 2015 Report Share Posted January 27, 2015 Can anyone please tell me how to get the marker to stay on the map after you die. have tried But when i use this no marker appears at all Would love some detailed instructions if anyone can help Got it, managed to figure it out, its great what a few hours sleep can do lol Link to comment Share on other sites More sharing options...
Nozza Posted March 18, 2015 Report Share Posted March 18, 2015 Hi, Currently have this set up for displaying the messages in the centre of the screen but i am after changing the colour of the text. How would i edit the below line to accomplish this // Send center message to users [nil,nil,rTitleText,"Ikea Truck lost its Cargo, Check your Map for the Location!", "PLAIN",10] call RE; Thanks Link to comment Share on other sites More sharing options...
Nozza Posted March 22, 2015 Report Share Posted March 22, 2015 Anyone? ^^ Link to comment Share on other sites More sharing options...
Affraid Posted April 1, 2015 Report Share Posted April 1, 2015 Does anyone know How to make the missions a radiation zone ? And if the player has a certain skin on they would be safe to go in ? Sorry if this has been posted already on this forum , I could not find it if it was. Thanks in advance . Affraid Link to comment Share on other sites More sharing options...
Chainsaw Squirrel Posted April 7, 2015 Report Share Posted April 7, 2015 Does anyone know How to make the missions a radiation zone ? And if the player has a certain skin on they would be safe to go in ? Sorry if this has been posted already on this forum , I could not find it if it was. Thanks in advance . Affraid I was thinking same thing :) Link to comment Share on other sites More sharing options...
Longshot03XX Posted September 5, 2015 Report Share Posted September 5, 2015 my players are complaining about the loot boxes not appearing. Anyone else having problems with this or know a fix? Link to comment Share on other sites More sharing options...
Pavillin Posted October 23, 2015 Report Share Posted October 23, 2015 I REALLY WOULD LIKE TO HAVE THIS ON MY SERVER BUT THE LINK IS DEAD??????? ANY IDEA'S????? THXI think I'm a little late to the party but here is an alt link the I foundhttp://opendayz.net/threads/server-side-hint-globalchat-fix-resec.13170/ Link to comment Share on other sites More sharing options...
alienpop Posted April 5, 2016 Report Share Posted April 5, 2016 Does anyone have the remote_messages.sqf they would mind sharing. The original link is dead and not working and http://opendayz.net/threads/server-side-hint-globalchat-fix-resec.13170/ works but the link to the remote_messages.sqf download no longer works. Link to comment Share on other sites More sharing options...
3steN8igall Posted April 5, 2016 Report Share Posted April 5, 2016 19 minutes ago, alienpop said: Does anyone have the remote_messages.sqf they would mind sharing. The original link is dead and not working and http://opendayz.net/threads/server-side-hint-globalchat-fix-resec.13170/ works but the link to the remote_messages.sqf download no longer works. Spoiler /* Remote messages by maca134 [[email protected]] This allows you to send globalchat/hint/titlecut from the server to all or a specific player without having to use remote exec (if you have resec.sqf then you can only do titletext via RE) I wants to dp sidechat/groupchat too but it didnt work. To install add '_nil = [] execVM "custom\remote_messages.sqf";' to your init.sqf inside the 'if (!isDedicated) then {' block. Global chat can only be sent to a single user and requires 'enableRadio true;' in init.sqf Here are some examples: customRemoteMessage = ['globalChat', "say something in globalChat", _unit]; publicVariable "customRemoteMessage"; customRemoteMessage = ['titleCut', "say something in titleCut", _unit]; publicVariable "customRemoteMessage"; customRemoteMessage = ['hint', "say something in hint", _unit]; publicVariable "customRemoteMessage"; customRemoteMessage = ['titleCut', "say something in titleCut"]; publicVariable "customRemoteMessage"; customRemoteMessage = ['hint', "say something in hint"]; publicVariable "customRemoteMessage"; customRemoteMessage = ["titleText", "say something in hint"]; publicVariable "customRemoteMessage"; customRemoteMessage = ["titleText", "say something in hint", _unit]; publicVariable "customRemoteMessage"; */ fnc_remote_message = { private ["_type", "_message", "_player"]; _type = _this select 0; _message = _this select 1; if (count _this > 2) then { _player = _this select 2; if (_player == player) then { switch (_type) do { case "globalChat": { player globalChat _message; }; case "hint": { hint _message; }; case "titleCut": { titleCut [_message, "PLAIN DOWN", 3]; }; case "titleText": { titleText [_message, "PLAIN DOWN"]; titleFadeOut 10; }; }; }; } else { switch (_type) do { case "hint": { hint _message; }; case "titleCut": { titleCut [_message,"Plain Down",3]; }; case "titleText": { titleText [_message, "PLAIN DOWN"]; titleFadeOut 10; }; }; }; }; "customRemoteMessage" addPublicVariableEventHandler {(_this select 1) call fnc_remote_message;}; Saije 1 Link to comment Share on other sites More sharing options...
WagnerMello Posted September 26, 2016 Report Share Posted September 26, 2016 link download off Link to comment Share on other sites More sharing options...
Airwaves Man Posted September 26, 2016 Report Share Posted September 26, 2016 Here are the code Ive had installed a while ago. It should still work fine. Treausre: Quote private ["_spawnChance", "_spawnMarker", "_spawnRadius", "_markerRadius", "_item", "_debug", "_start_time", "_loot", "_loot_amount", "_loot_box", "_wait_time", "_spawnRoll", "_position", "_event_marker", "_loot_pos", "_debug_marker","_loot_box", "_hint"]; _spawnChance = 0.65; // Percentage chance of event happening _markerRadius = 350; // Radius the loot can spawn and used for the marker _debug = false; // Puts a marker exactly were the loot spawns _loot_box = "GuerillaCacheBox"; _loot_lists = [[["revolver_gold_EP1"],["6Rnd_45ACP","ItemBriefcase100oz"]],[["revolver_gold_EP1"],["6Rnd_45ACP","ItemSilverBar","ItemGoldBar10oz"]]]; _loot = _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'; 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"); }; // Random chance of event happening _spawnRoll = random 1; if (_spawnRoll > _spawnChance and !_debug) exitWith {}; // 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 setMarkerColor "ColorYellow"; _event_marker setMarkerAlpha 0.5; _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 setMarkerShape "ICON"; _debug_marker setMarkerType "mil_dot"; _debug_marker setMarkerColor "ColorYellow"; _debug_marker setMarkerAlpha 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; // 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); // Send Top Right message to users , requires Remote message script _hint = parseText format["<t align='center' color='#FFFF66' shadow='2' size='1.75'>Treasure Crate</t><br/><t align='center' color='#ffffff'>Bandits or Pirates? We found their treasure, Check your Map for the Location!</t>"]; customRemoteMessage = ['hint', _hint]; publicVariable "customRemoteMessage"; // Send center message to users //[nil,nil,rTitleText,"Bandits or Pirates? We found their treasure, Check your Map for the Location!", "PLAIN",10] call RE; diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]); // Wait sleep _wait_time; // Clean up EPOCH_EVENT_RUNNING = false; deleteVehicle _loot_box; deleteMarker _event_marker; if (_debug) then { deleteMarker _debug_marker; }; Construction: Quote private ["_spawnChance", "_spawnMarker", "_spawnRadius", "_markerRadius", "_item", "_debug", "_start_time", "_loot", "_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 = 350; // 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 = [ [ ["ItemEtool","ItemMatchbox_DZE","ItemCrowbar","ItemShovel"], ["MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks" ,"MortarBucket" ,"CinderBlocks"] ], [ ["ItemEtool","ItemMatchbox_DZE","ItemCrowbar","ItemShovel"], ["MortarBucket" ,"MortarBucket" ,"MortarBucket" ,"MortarBucket" ,"MortarBucket" ,"MortarBucket" ,"MortarBucket" ,"MortarBucket" ,"MortarBucket" ,"MortarBucket"] ], [ ["ItemCrowbar","ItemEtool","ItemEtool","ItemEtool"], ["PartPlankPack" ,"PartPlywoodPack" ,"PartPlankPack" ,"PartPlywoodPack" ,"PartPlankPack" ,"PartPlywoodPack" ,"PartPlankPack" ,"PartPlywoodPack" ,"PartPlankPack" ,"PartPlywoodPack" ,"PartPlankPack" ,"PartPlywoodPack" ,"PartPlankPack" ,"PartPlywoodPack" ,"PartPlankPack" ,"PartPlywoodPack" ,"PartPlankPack" ,"PartPlywoodPack" ,"PartPlankPack" ,"PartPlywoodPack"] ], [ ["ItemEtool","ItemCrowbar"], ["metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit" ,"metal_floor_kit"] ], [ ["ItemEtool","ItemCrowbar"], ["ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor"] ], [ ["ItemEtool","ItemMatchbox_DZE","ItemCrowbar"], ["ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor" ,"ItemWoodFloor"] ], [ ["ItemEtool","ItemCrowbar"], ["ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg"] ], [ ["ItemEtool","ItemMatchbox_DZE","ItemCrowbar"], ["outhouse_kit" ,"outhouse_kit" ,"ItemWoodStairs" ,"ItemWoodStairs" ,"ItemWoodStairs" ,"ItemWoodStairs" ,"workbench_kit" ,"ItemComboLock" ,"ItemWoodWallLg" ,"ItemWoodWallGarageDoor" ,"ItemWoodWallWindowLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg"] ], [ ["ItemEtool","ItemShovel","ItemCrowbar"], ["ItemWoodStairs" ,"ItemWoodStairs" ,"workbench_kit" ,"ItemWoodWallLg" ,"ItemWoodWallGarageDoor" ,"ItemWoodWallWindowLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg"] ], [ ["ItemEtool","ItemMatchbox_DZE","ItemCrowbar"], ["PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric" ,"PartGeneric"] ], [ ["ItemCrowbar","ItemShovel"], ["ItemWoodWallGarageDoor" ,"ItemWoodWallWindowLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallGarageDoor" ,"ItemWoodWallWindowLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallGarageDoor" ,"ItemWoodWallWindowLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallLg" ,"ItemWoodWallGarageDoor" ,"ItemWoodWallWindowLg"] ], [ ["ItemShovel","ItemToolbox","ItemCrowbar","ItemCrowbar"], ["workbench_kit" ,"ItemWoodStairs" ,"ItemWoodStairs" ,"ItemWoodStairs" ,"wood_shack_kit" ,"wood_shack_kit" ,"wood_shack_kit" ,"deer_stand_kit" ,"deer_stand_kit" ,"ItemWoodLadder" ,"ItemWoodLadder" ,"desert_net_kit" ,"desert_net_kit" ,"ItemWoodLadder" ,"ItemWoodLadder" ,"desert_net_kit" ,"forest_net_kit" ,"forest_net_kit" ,"forest_net_kit" ,"desert_net_kit" ,"desert_net_kit" ,"ItemSandbagLarge" ,"ItemSandbagLarge" ,"Itemvault"] ] ]; _loot = _loot_lists call BIS_fnc_selectRandom; _loot_amount = 35; _wait_time = 900; // 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"); }; // Random chance of event happening _spawnRoll = random 1; if (_spawnRoll > _spawnChance and !_debug) exitWith {}; // Random location _position = [getMarkerPos _spawnMarker,0,_spawnRadius,10,0,2000,0] call BIS_fnc_findSafePos; diag_log(format["Spawning loot event at %1", _loot_pos]); _event_marker = createMarker [ format ["loot_event_marker_%1", _start_time], _position]; _event_marker setMarkerShape "ELLIPSE"; _event_marker setMarkerColor "ColorGreen"; _event_marker setMarkerAlpha 0.5; _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 setMarkerShape "ICON"; _debug_marker setMarkerType "mil_dot"; _debug_marker setMarkerColor "ColorBlack"; _debug_marker setMarkerAlpha 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; // 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); // Send Top Right message to users , requires Remote message script _hint = parseText format["<t align='center' color='#00FF11' shadow='2' size='1.75'>Construction Crate</t><br/><t align='center' color='#ffffff'>Ikea Truck lost its Cargo, Check your Map for the Location!</t>"]; customRemoteMessage = ['hint', _hint]; publicVariable "customRemoteMessage"; // Send center message to users //[nil,nil,rTitleText,"Ikea Truck lost its Cargo, Check your Map for the Location!", "PLAIN",10] call RE; diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]); // Wait sleep _wait_time; // Clean up EPOCH_EVENT_RUNNING = false; deleteVehicle _loot_box; deleteMarker _event_marker; if (_debug) then { deleteMarker _debug_marker; }; Military: Quote private ["_spawnChance", "_spawnMarker", "_spawnRadius", "_markerRadius", "_item", "_debug", "_start_time", "_loot", "_loot_amount", "_loot_box", "_wait_time", "_spawnRoll", "_position", "_event_marker", "_loot_pos", "_debug_marker","_loot_box", "_hint"]; _spawnChance = 0.35; // Percentage chance of event happening _markerRadius = 350; // Radius the loot can spawn and used for the marker _debug = false; // Puts a marker exactly were the loot spawns _loot_box = "RUVehicleBox"; _loot_lists = [ [ ["G36a","G36C","G36K"], ["30Rnd_556x45_G36","30Rnd_556x45_G36SD","30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","30Rnd_556x45_G36","30Rnd_556x45_G36SD","30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","30Rnd_556x45_G36","30Rnd_556x45_G36SD","30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","30Rnd_556x45_G36","30Rnd_556x45_G36SD","30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","30Rnd_556x45_G36","30Rnd_556x45_G36SD","30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","30Rnd_556x45_G36","30Rnd_556x45_G36SD","30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","30Rnd_556x45_G36","30Rnd_556x45_G36SD","30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","30Rnd_556x45_G36","30Rnd_556x45_G36SD","30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD","30Rnd_556x45_G36","30Rnd_556x45_G36SD","30Rnd_556x45_Stanag","30Rnd_556x45_StanagSD"] ], [ ["M8_carbine","M8_carbineGL","M8_compact"], ["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","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag"] ] ]; _loot = _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'; 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"); }; // Random chance of event happening _spawnRoll = random 1; if (_spawnRoll > _spawnChance and !_debug) exitWith {}; // 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 setMarkerColor "ColorRed"; _event_marker setMarkerAlpha 0.5; _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 setMarkerShape "ICON"; _debug_marker setMarkerType "mil_dot"; _debug_marker setMarkerColor "ColorRed"; _debug_marker setMarkerAlpha 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; // 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); // Send Top Right message to users , requires Remote message script _hint = parseText format["<t align='center' color='#FF0000' shadow='2' size='1.75'>Military Crate</t><br/><t align='center' color='#ffffff'>A special forces unit lost a precious cargo, Check your Map for the Location!</t>"]; customRemoteMessage = ['hint', _hint]; publicVariable "customRemoteMessage"; // Send center message to users //[nil,nil,rTitleText,"A special forces unit lost a precious cargo, Check your Map for the Location!", "PLAIN",10] call RE; diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]); // Wait sleep _wait_time; // Clean up EPOCH_EVENT_RUNNING = false; deleteVehicle _loot_box; deleteMarker _event_marker; if (_debug) then { deleteMarker _debug_marker; }; Supply: Quote private ["_spawnChance", "_spawnMarker", "_spawnRadius", "_markerRadius", "_item", "_debug", "_start_time", "_loot", "_loot_amount", "_loot_box", "_wait_time", "_spawnRoll", "_position", "_event_marker", "_loot_pos", "_debug_marker","_loot_box", "_hint"]; _spawnChance = 0.75; // Percentage chance of event happening _markerRadius = 350; // Radius the loot can spawn and used for the marker _debug = false; // Puts a marker exactly were the loot spawns _loot_box = "SpecialWeaponsBox"; _loot_lists = [ [ ["M9SD"], ["15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemSodaCoke","ItemSodaCoke","ItemSodaCoke","ItemSodaCoke","ItemSodaPepsi","ItemSodaPepsi","ItemSodaPepsi","ItemSodaPepsi","FoodCanBakedBeans","FoodCanBakedBeans","FoodCanBakedBeans","FoodCanBakedBeans","FoodCanPasta","FoodCanPasta","FoodCanPasta","FoodCanPasta","FoodCanSardines","FoodCanSardines","FoodCanSardines","FoodCanSardines","FoodMRE","FoodMRE","FoodMRE","FoodMRE","FoodMRE"] ], [ ["M9SD"], ["15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","ItemAntibiotic","ItemBandage","ItemBloodbag","ItemEpinephrine","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemBandage","ItemBandage","ItemMorphine","FoodMRE","FoodMRE","FoodMRE","FoodMRE","FoodMRE","ItemBandage","ItemBandage","ItemMorphine","ItemAntibiotic","ItemBandage","ItemBloodbag","ItemEpinephrine","ItemMorphine","ItemPainkiller","ItemBloodbag","ItemBandage","ItemBandage","ItemMorphine","ItemTent","ItemJerrycan","ItemTent","ItemJerrycan","ItemTent","ItemJerrycan"] ] ]; _loot = _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'; 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"); }; // Random chance of event happening _spawnRoll = random 1; if (_spawnRoll > _spawnChance and !_debug) exitWith {}; // 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 setMarkerColor "ColorBlue"; _event_marker setMarkerAlpha 0.5; _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 setMarkerShape "ICON"; _debug_marker setMarkerType "mil_dot"; _debug_marker setMarkerColor "ColorBlue"; _debug_marker setMarkerAlpha 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; // 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); // Send Top Right message to users , requires Remote message script _hint = parseText format["<t align='center' color='#0D00FF' shadow='2' size='1.75'>Supply Crate</t><br/><t align='center' color='#ffffff'>UN Agency drops life-saving supplies for Survivors, Check your Map for the Location!</t>"]; customRemoteMessage = ['hint', _hint]; publicVariable "customRemoteMessage"; // Send center message to users //[nil,nil,rTitleText,"UN Agency drops life-saving supplies for Survivors, Check your Map for the Location!", "PLAIN",10] call RE; diag_log(format["Loot event setup, waiting for %1 seconds", _wait_time]); // Wait sleep _wait_time; // Clean up EPOCH_EVENT_RUNNING = false; deleteVehicle _loot_box; deleteMarker _event_marker; if (_debug) then { deleteMarker _debug_marker; }; juandayz 1 Link to comment Share on other sites More sharing options...
Saije Posted January 29, 2017 Report Share Posted January 29, 2017 this is not an ai mission. its supposed to be just a colored circle with no ai and no vehicles or center marker. these are 4 extra events. On 2014-05-06 at 9:52 AM, djmartrix said: i have put in the files and code from page 1 of this forum post. the mission spawns, but there is no AI, no vehicles or crates. plus there is no centre maker for the mission. the coloured radius circle and text appear but nothing else. what havent i done right? EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"],["any","any","any","any",10,"Military"], ["any","any","any","any",25,"Treasure"], ["any","any","any","any",40,"Supplyitems"], ["any","any","any","any",55,"Construction"]]; i have put this where it is supposed to go i have also edited the mission files (ie construction, tresure etc) with the // that were needed. do i need to have another AI installed or will this pack do it all? Link to comment Share on other sites More sharing options...
Saije Posted January 29, 2017 Report Share Posted January 29, 2017 this mod works fine for me, except cant seem to change what spawns in the boxes, and my rpt comes up with a warning message saying: Warning Message: Script z\addons\dayz_server\modules\giallo.sqf not found But I dont know anything about this giallo.sqf Link to comment Share on other sites More sharing options...
snipercymraeg Posted February 8, 2017 Report Share Posted February 8, 2017 I can't download these missions it says 404 error. Does anyone have them please ? Thanks, Nick Link to comment Share on other sites More sharing options...
lwbuk Posted February 8, 2017 Report Share Posted February 8, 2017 Look up about 4 posts. All the codes are there. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now