Aidem Posted November 16, 2013 Report Share Posted November 16, 2013 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/Download LinksMilitary.sqfhttps://www.dropbox.com/s/wr94dil93tnja03/Military.sqfTreasure.sqfhttps://www.dropbox.com/s/c6q6re09nxxisol/Treasure.sqfSupplyitems.sqfhttps://www.dropbox.com/s/1sarjs76pee92kz/Supplyitems.sqfConstruction.sqfhttps://www.dropbox.com/s/74xqw68utxpx0qj/Construction.sqfInstallation Instructions in order to get these mission started you need to modify the events in your init.sqf Search for EpochEvents = [ Add these for each mission behind it ["any","any","any","any",10,"Military"], ["any","any","any","any",25,"Treasure"], ["any","any","any","any",40,"Supplyitems"], ["any","any","any","any",55,"Construction"], Last thing you need to do is place the files you just made in your server sided pbo in the existing map `modules`Disable Hint message SystemSearch inside my missions sql`s for: // 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; Change it too // 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; This will give you the message in the center of the screen Cinjun, frartombabogy, SupremeHorse and 12 others 15 Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted November 18, 2013 Report Share Posted November 18, 2013 Very cool. I think I'll be using the construction.sqf. Agnia-reR, AFlatteedgekly, amandabif and 3 others 6 Link to comment Share on other sites More sharing options...
Namiriu Posted November 18, 2013 Report Share Posted November 18, 2013 Very nice thanks for share ! Just a question, i'm new in script dev and why have you add lot of M9SD and M9SD Mag in all your event ? We can remove this in the code ? And it's possible to spawn an event in a fix hours ? like 1pm or 9am ? If we can how do that please ? Amos_nax, amandabif and frartombabogy 3 Link to comment Share on other sites More sharing options...
Configurator Posted November 18, 2013 Report Share Posted November 18, 2013 Thanks! frartombabogy and amandabif 2 Link to comment Share on other sites More sharing options...
LoCK0N Posted November 18, 2013 Report Share Posted November 18, 2013 ive got these running however i would like the messages to be displayed as title text rather than _hint eg _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>"]; i tried this rtitleText["UN Agency drops life-saving supplies for Survivors, Check your Map for the Location!", "PLAIN DOWN",10] call RE; same as my mission system title text they work ok ??? any help plz cause the hints interfere with my debug meaning people cant see the hints and i dont want a toggle able debug amandabif and frartombabogy 2 Link to comment Share on other sites More sharing options...
LoCK0N Posted November 18, 2013 Report Share Posted November 18, 2013 never mind i got it tnx frartombabogy 1 Link to comment Share on other sites More sharing options...
ruubje11 Posted November 19, 2013 Report Share Posted November 19, 2013 Thank you very much for uploading these events! They are awesome :D frartombabogy 1 Link to comment Share on other sites More sharing options...
Aidem Posted November 20, 2013 Author Report Share Posted November 20, 2013 Very nice thanks for share ! Just a question, i'm new in script dev and why have you add lot of M9SD and M9SD Mag in all your event ? We can remove this in the code ? And it's possible to spawn an event in a fix hours ? like 1pm or 9am ? If we can how do that please ? Fixed time is possible you just have to write some extra that calls out the time something like (not actual code its theoretic example) if (Time == 9pm) then //Dont know the function for actual time {_Spawnchance = 1;} else {_Spawnchance = 0;}; About gun you can remove that ofc, i just added them for newbies that get to crate can defend theirself or fight for it frartombabogy 1 Link to comment Share on other sites More sharing options...
ilganna Posted November 20, 2013 Report Share Posted November 20, 2013 Hi Aidem, first of all thanks for sharing your events! I'm having trouble on getting those running: it seems that the server don't find the files (created manually). I double checked everything and I'm not sure why I got always the error that the file is not found. Example with military one: "RUNNING EVENT: military on [2013,11,20,19,10]" Warning Message: Script z\addons\dayz_server\modules\military.sqf not found Believe me when I say that the file really exists in that folder (along with crash_spawner, hello_world etc) and I checked 10 times that the name doesn't contain any space/symbol or anything else. The strange thing is that the other events are working properly (like crash_spawner). Triple checked the PBO file and contains the files... I'm really frustrated... Any idea? Thanks! frartombabogy 1 Link to comment Share on other sites More sharing options...
Randomness Posted November 20, 2013 Report Share Posted November 20, 2013 You should use the random loot selecting script in the example in one of the other topics, I made pretty similar events but im guessing a lot more effective (hint: read the stuff in the comments) Link to comment Share on other sites More sharing options...
Aidem Posted November 21, 2013 Author Report Share Posted November 21, 2013 Hi Aidem, first of all thanks for sharing your events! I'm having trouble on getting those running: it seems that the server don't find the files (created manually). I double checked everything and I'm not sure why I got always the error that the file is not found. Example with military one: "RUNNING EVENT: military on [2013,11,20,19,10]" Warning Message: Script z\addons\dayz_server\modules\military.sqf not found Believe me when I say that the file really exists in that folder (along with crash_spawner, hello_world etc) and I checked 10 times that the name doesn't contain any space/symbol or anything else. The strange thing is that the other events are working properly (like crash_spawner). Triple checked the PBO file and contains the files... I'm really frustrated... Any idea? Thanks! you got the sqf extension correct? and are you sure it is using your new server pbo and not the old one? all i can think off Link to comment Share on other sites More sharing options...
ilganna Posted November 21, 2013 Report Share Posted November 21, 2013 you got the sqf extension correct? and are you sure it is using your new server pbo and not the old one? all i can think off Yes, all is correct... Well I simply resolved by copy & pasting your code in another working sqf file (crash_spawner.sqf). Thanks again! Link to comment Share on other sites More sharing options...
Kerozen Posted November 21, 2013 Report Share Posted November 21, 2013 Hey guys, Im trying to make this missions work on my server but nothing seems to work. Here is the Init code: EpochEvents = [["any","any","any","any",30,"crash_spawner"],["any","any","any","any",0,"crash_spawner"],["any","any","any","any",15,"supply_drop"]]; EpochEvents = [["any","any","any",00,20,"giallo"],["any","any","any",03,20,"giallo"],["any","any","any",06,20,"giallo"],["any","any","any",09,20,"giallo"],["any","any","any",12,20,"giallo"],["any","any","any",15,20,"giallo"],["any","any","any",18,20,"giallo"],["any","any","any",21,20,"giallo"]]; EpochEvents = [["any","any","any","any",10,"Military"]]; EpochEvents = [["any","any","any","any",25,"Treasure"]]; EpochEvents = [["any","any","any","any",40,"Supplyitems"]]; EpochEvents = [["any","any","any","any",55,"Construction"]]; Im trying to make them spawn randomly but that doesn't work.So I tried to make a addaction to an item and that worked. I can't figure out why. Some help plz? The giallo one is an Admin event triggered by an item with addaction. all the other are not working. Crash_spawner, Supply_drop, Military, Treasure, Supplyitems and Construction are not working Link to comment Share on other sites More sharing options...
boyd Posted November 22, 2013 Report Share Posted November 22, 2013 Don't even know why i am giving you the solution but you should read more on coding. 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,"giallo"], ["any","any","any","any",20,"giallo"], ["any","any","any","any",30,"giallo"], ["any","any","any","any",40,"giallo"], ["any","any","any","any",50,"giallo"], ["any","any","any","any",10,"Military"], ["any","any","any","any",25,"Treasure"], ["any","any","any","any",40,"Supplyitems"], ["any","any","any","any",55,"Construction"]]; Zoranth 1 Link to comment Share on other sites More sharing options...
Kerozen Posted November 22, 2013 Report Share Posted November 22, 2013 Well its the first time i'm setting up a DayZ Server with a clan mate Out of 7 guys only 2 are actually working on the server trying to get everything working and we don't have coding experience. The reason i wrote the code like i did is because i saw someones Init with several EpochEvents line so i wanted to separate each event. I'm going to test it now i will tell you if it worked. -- EDIT -- The code didn't work, the missions still don't start. Link to comment Share on other sites More sharing options...
Aidem Posted November 22, 2013 Author Report Share Posted November 22, 2013 Repeating the epochevent over and over like you do aint gonna work How boyd said it is the way to go Link to comment Share on other sites More sharing options...
Kerozen Posted November 22, 2013 Report Share Posted November 22, 2013 Repeating the epochevent over and over like you do aint gonna work How boyd said it is the way to go I did it his way and the missions didn't start. I really don't know what is causing that. If i start them manually they work but i want them to randomly start Link to comment Share on other sites More sharing options...
Randomness Posted November 22, 2013 Report Share Posted November 22, 2013 Add diag_log lines to your script, it helps a lot in debugging, the problem might exist in running 2 events at the same time? Link to comment Share on other sites More sharing options...
Colby Posted November 22, 2013 Report Share Posted November 22, 2013 Hi, these events look really great. On our server, we are worried about these events running late at night when nearly no one is on. We dont want the same few people that play every night late at night to be able to do these missions with no threat and just stockpile all of the loot. Was wondering if there is a while to only trigger these missions to spawn when player pop is at or above 20? Any help is appreciated. Thanks Link to comment Share on other sites More sharing options...
Randomness Posted November 23, 2013 Report Share Posted November 23, 2013 Hi, these events look really great. On our server, we are worried about these events running late at night when nearly no one is on. We dont want the same few people that play every night late at night to be able to do these missions with no threat and just stockpile all of the loot. Was wondering if there is a while to only trigger these missions to spawn when player pop is at or above 20? Any help is appreciated. Thanks if (count PlayableUnits < 20) { exitwith { diag_log ["Not enough players online, cancelling event"]; }; you could try this Link to comment Share on other sites More sharing options...
Colby Posted November 23, 2013 Report Share Posted November 23, 2013 Where would i put this? At the top of the sqf file? Agnia-reR 1 Link to comment Share on other sites More sharing options...
Randomness Posted November 23, 2013 Report Share Posted November 23, 2013 u can try it on the first line of your script. Link to comment Share on other sites More sharing options...
Kerozen Posted November 23, 2013 Report Share Posted November 23, 2013 Still didnt manage to get this missions working! I have no idea what is wrong. I need some help and guidance! I'm using the same exact code for the missions and atm my init EpochEvent looks like this: 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,"giallo"], ["any","any","any","any",20,"giallo"], ["any","any","any","any",30,"giallo"], ["any","any","any","any",40,"giallo"], ["any","any","any","any",50,"giallo"], ["any","any","any","any",10,"Military"], ["any","any","any","any",25,"Treasure"], ["any","any","any","any",40,"Supplyitems"], ["any","any","any","any",55,"Construction"]]; If the events are in a custom folder do i need to make it "["any","any","any","any",55,"custom/Construction.sqf"] or something like that? Link to comment Share on other sites More sharing options...
boyd Posted November 23, 2013 Report Share Posted November 23, 2013 No they go on server side folder called "modules" Link to comment Share on other sites More sharing options...
ruubje11 Posted November 24, 2013 Report Share Posted November 24, 2013 Yeah every script you refer to in the EpochEvents list is automatically searched for in your server.pbo folder modules 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