Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by juandayz

  1. This is a very simple and basic guide to make your own scroll menu options and execute your scripts. Please fell free to put other ways or whatever do you want about it :) hope help you with it. Execute an script through fn_selfactions.sqf Using nearest players from objet or AI *If u wanna execute an script using an objet or AI as a trigger then at buttom of your custom fn_selfactions use this structure: So to complete the structure from above we gonna use a "TK_CIV_Woman01_EP1" AI id to get the option: Structure: (at bottom of your fn_selfactions.sqf) //In this case u dont need add nothing more. Using cursor target on specific AI/Objet to launch the script. (aim the objet/AI and get a scroll menu option) First you will need find this in your custom selfactions.sqf if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) then { //the line above says if _canDo variable is present and if the speed player is less or equal to 1 and if cursor target is on the plot pole then { then blabla you can use the same syntax to make your own scroll menu option... for example if u wanna execute an script each time you put your cursor on a medical tent..("GUE_WarfareBFieldhHospital") above of if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) then { put: so each time you aim to GUE_WarfareBFieldhHospital you will got a "HEAL ME" option in your scroll menu. //In this case you will need add yours player removeAction s_player_actiontent; s_player_actiontent = -1; near the end of fn_selfactions.sqf so find this lines: And add above put: this two ways are easy and you can create a new stuff using it. GET A NEW SCROLL MENU OPTION IF URE INTO A VEHICLE Well first you will need find it in your custom fn_selfActions.sqf bellow it add this structure: Other way to get a scroll menu option, for example if u wanna get the option all time to use for show rules or something: create a new sqf. (name it as you want.. for example no_use_for_a_name.sqf) and paste inside: now go to your init.sqf and in very bottom paste: [] execVM "path\to\no_use_for_a_name.sqf"; Now all players get the "RULE" option all time.
  2. juandayz

    1.6 Safezone

    I JUST LEAVE THIS ONE CUZ I KNOW YOU GUYS GONNA NEED IT.. The very old safezone script by infistar... i was using it in and made some changes to use in 1.6. Instructions: 1. Copy paste the code of below into a file called 16_safezone.sqf - save the file. 2. Paste this 16_safezone.sqf into mpmissioms\instance_11.chernarus\custom\ 3. Open your init.sqf 4. At the very bottom of the file add this line: [] execVM "custom\16_safezone.sqf"; 5. Save the init.sqf and restart your server. 6-WARNING!!! if ure using some kind of mod that allow vehicles with GodMode out of safezones.. then you will need in 16_safezone.sqf change the path for veh_handleDam.sqf by the path that youre using your custom veh_handleDam.sqf this line: fnc_veh_handleDam = compile preprocessFileLineNumbers '\z\addons\dayz_code\compile\veh_handleDam.sqf'; 16_safezone.sqf OPTIONAL: @BetterDeadThanZed here you got. REMOVE LOOT FROM TRADER CITIES AND PLOT POLES. (should removes zeds from trader places and poles too)
  3. 1/06/2018 The msg system is based on the remote_message.sqf provided by ZSC. (if u dont use ZSC change the msg system) player_supply.sqf https://pastebin.com/VENCekKu init.sqf
  4. juandayz


    rubble_town.sqf https://pastebin.com/hAb8v5kj add the call in init.sqf like the others events.
  5. Writed with base on: Rubble Town and 4 types of Side Missions (Events) and mixed with my homemade bombs. This event spawn a crate & wait until thers nearest players then active the bomb giving 25 seconds before explode. 1-unpack your dayz_server.pbo 2-create: bombcrate.sqf (drop into \@DayZ_Epoch_Server\addons\dayz_server\modules\ ) 3-repack your dayz_server.pbo 4-open your init.sqf add lines in blue. pics: Video: use it if u need test something:
  6. any one know how to change the color of text of DZMS or WAI missions
  7. Fully rewrited. (So if u have it installed.. remove everything). 1-Open your custom fn_selfactions.sqf 2-Open custom variables.sqf 3-Open server_monitor.sqf 4.INFISTAR USERS 5-BE Filters. If u have some issues with battleyes open createvehicle.txt 6.OPTIONAL (add workshop objects to the sql damageonage function) Download from here:http://www.mediafire.com/file/zzbv97adzdl2pex/workshopLITTLE2.rar and place the "workshop" folder into mpmissions\your instance\scripts\ OPTIONAL : add electrify fences. (needs deploy anything) If u dont wanna use this optional step remove the "optional" folder into workshop folder. Contain:
  8. DRUGS Before star... you should add this items into your traders menus. 1.Create this path: mpmissions\your instance\scripts\drugs\ 2-Create the sqfs into the new path. 3.Now you need extra_rc.hpp or deploy anything mod. 4.Now we gonna create an epoch event to spawn weed fields. Now this is optional... since i do not use road blocks for anything... i just change it by weed plants.. so if u wanna do the same: 1-Open spawn_roadblocks.sqf located in dayz_server\compile\ then change this line: _spawnveh = DZE_isWreck call BIS_fnc_selectRandom; by: _spawnveh = "Fiberplant"; 2-open your init.sqf find this line to manage the amount of fiber plants spawned. MaxDynamicDebris = 20; // was changed by juandayz to spawn fiberplants Optional too. Create a police Drugs check point. (if player cross that check point with drugs police gonna remove it) You will need create the map addon.. i just give you the code for remove drugs.
  9. A very basic guide to make your own script: Feel free to complete this guide :) 1-IN CASE U NEED ADD ONE ITEMS REQUIRED (only one) 2-IN CASE U NEED ADD A ITEMS REQUIRED (more than one) *Now into the same script you will need check if this player have the item variable so: if (_hasitem) then { }; so the script can be: *Now at very top its time to define the private variables for this script so: private = ["name of variable","name of variable"]; private = ["_hasitem"]; So at this time the script looks like: 2-REMOVING ITEMS Here you will see how to remove more than 1 item: ( remember for remove only one item you can use player removeMagazine "FoodchickenCooked"; ) item requiered: _hasitem = [["cinder_wall_kit",2], ["ItemWoodFloor",3]] call player_checkItems; to remove this items use: _remove = [["cinder_wall_kit",2],["ItemWoodFloor",3]] call player_removeItems; So now the whole script looks: Thers other way to say "you dont have the item required" see: if (!_hasitem) exitWith {cutText [format["You will need 2xcinder_wall_kit and 3xItemWoodFloor"], "PLAIN DOWN"];}; ***Note: the ! before the variable means NOT . So here the code say: if player Dont Have (_hasitem) exitWith {}; so now the script looks: 3-ADD A TIME RESTRICTION TO USE THE SCRIPT AGAIN Now whats about if u wanna put a time restriction to execute the script? well heres the structure: if(_Time < _LastUsedTime) exitWith { cutText [format["wait %1 seconds !",(round(_Time - _LastUsedTime))], "PLAIN DOWN"]; }; But you need define what means _Time & _LastUsedTime variables and need put where start to count. So: _LastUsedTime = 1200;//time in seconds before use again the script _Time = time - lastuse; //"lastuse" is where you start to count and is equal to time so you need to put it immediately after the _hasitem variable is checked as fine... see: if (_hasitem) then { lastuse = time; }; Well now the whole script looks: 4-USING RANDOMS Now you wanna put a random events into the script. You can use two ways: First: _randomCases = round(random(2)); switch (_randomCases) do { case 0 :{ //what happend here? }; case 1 :{ //what happend here? }; }; Or the other way: _randomNumbers = floor(random 100);//you can use any other number 100,200,50 if (_randomNumbers <= 30) then { //if randomNumbers is less or equal to 30 then //what happend here? }; if (_randomNumbers <= 100 && _randomNumbers > 31) then { //if randomNumbers is into 31 to 100 then //what happend here? }; So for the first example the whole script looks: And for the second example looks: 5-ADD A TOOL REQUIRED _inventory = items player; _hastools = "ItemToolbox" in _inventory; if !(_hastools) exitWith { cutText [format["Must be equiped with 1x toolbox in your toolbet."], "PLAIN DOWN"];}; if (_hastools) then { }; So now the script looks: 6-Allow The script only if player is an hero Now you want procced with the script only if player is an hero.. so: _PlayerHumanity = (player getVariable"humanity"); if (_PlayerHumanity < 5000) exitWith { cutText [format["Need be a hero"], "PLAIN DOWN"];}; if (_PlayerHumanity > 5000) then { }; So the whole script now is: 7-ADD A COIN COST Whats about if u wanna put a coins cost to execute it? _costs = 200; if !([ player,_costs] call SC_fnc_removeCoins) then { titleText [format["Needs %1 %2.",_costs,CurrencyName] , "PLAIN DOWN", 1]; } else { titleText [format["Pay %1 %2 for this",_costs,CurrencyName] , "PLAIN DOWN", 1]; }; So now script looks: 8-Nearest Required Now a nearest required from an objet or AI. _playerPos = getPosATL player; _nearestRestriction = count nearestObjects [_playerPos, ["TK_CIV_Woman01_EP1"], 4] > 0; //TK_CIV_Woman01_EP1 is an AI id if (_nearestRestriction) then { }; you can use it to execute scripts only into plot area... for example: _playerPos = getPosATL player; _nearestRestriction = count nearestObjects [_playerPos, ["Plastic_Pole_EP1_DZ"], 30] > 0; if (_nearestRestriction) then { }; or to restrict if is present for example if is a plot pole in the area you cant execute the script _playerPos = getPosATL player; _nearestRestriction = count nearestObjects [_playerPos, ["Plastic_Pole_EP1_DZ"], 30] > 0; if (_nearestRestriction) exitWith { cutText [format["Not in plot area"], "PLAIN DOWN"];}; }; So now the script is: in negative case.. (if u cannot execute the script if the objet plot area is present then the script must be): 9-Give something to the player here you can use: player addMagazine "item id"; so for example if u wanna give gold money then: player addMagazine "ItemBriefcase100oz"; if u wanna give coins money then: _add = [player, 1000] call SC_fnc_addCoins; if u wanna give a random item then: _add = ["ItemSodaOrangeSherbet","HandGrenade_west","ItemSodaEmpty"] call BIS_fnc_selectRandom; player addMagazine _add; So for the 1st example script looks: (give gold) for the 2nd example looks: (give coins) for the 3rd example (give random item) 10-Create a small function Now you need use random events and repeat a large or medium secuence.. to not write twice.. use a small functiion.. see: ///Function function_spawncrate = { _cratemodels=["USBasicWeapons_EP1","LocalBasicAmmunitionBox"] call BIS_fnc_selectRandom; _variete = ["ItemSodaOrangeSherbet","HandGrenade_west"] call BIS_fnc_selectRandom; _stone = ["CinderBlocks","MortarBucket","PartOreSilver"] call BIS_fnc_selectRandom; _wood = ["PartPlywoodPack","PartWoodPile","PartWoodLumber"] call BIS_fnc_selectRandom; _farm = ["FoodchickenRaw","FoodCanCorn","FoodrabbitRaw","ItemKiloHemp","FoodCanCurgon"] call BIS_fnc_selectRandom; _aiweapon = ["M16A2","M4A1"] call BIS_fnc_selectRandom; _crate1 = objNull; if (true) then{ _this = createVehicle [_cratemodels, [8352.9189, 5950.7417, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _crate1 = _this; clearWeaponCargoGlobal _crate1; clearMagazineCargoGlobal _crate1; _crate1 addWeaponCargoGlobal [_aiweapon, 1]; _crate1 addmagazinecargoglobal [_variete, 2]; _crate1 addmagazinecargoglobal [_wood, 5]; _crate1 addmagazinecargoglobal [_stone, 3]; _crate1 addmagazinecargoglobal [_farm, 3]; _crate1 setVariable ["permaLoot",true]; }; sleep 400; deleteVehicle _crate1; }; ////////////////////////////////END FUINCTON script looks: other way is call an external script into main script see: [] execVM 'path\to\external\script.sqf'; so the variant to not make the small function as above is call this external.sqf your main.sqf and you can put into external.sqf same codes as function_spawncrate external.sqf 11-Some "Commands" sleep ( you can use it to leave in "stand by" your script for some seconds ) example: ( wait 40 seconds and proceed to delete a crate called _crate1 ) sleep 40; deleteVehicle _crate1; also you can use a variable to define the time and make wait the variable with sleep command: _wait_time = 40; sleep _wait_time; deleteVehicle _crate1; Other way to let the script in "stand by" is use waitUntil command. for example wait for nearest player from an objet: _distance = 10; waitUntil {(player distance _xobjet) < _distance}; //proceed with the rest of the script so with waitUntil also you can wait to complete some conditions as above, where script wait for player 10 mts near the _xobjet removeAllWeapons player; //leave a player without weapons removeBackpack player; //without backpack {player removeMagazine _x} forEach magazines player; //without items player setVariable['USEC_BloodQty',12000,true]; //set blood amount on player r_player_infected = true; //infect player [player,-100] call player_humanityChange;//modify humanity of the player 12-Count amount of item _ Now you need count how many items had this player in his inventory, to stop giving same item for example if thers more than 2 _bloodbagAmount = {_x == "ItemBloodbag"} count magazines player; if (_bloodbagAmount > 2) exitWith { cutText [format["WARNING: %1, YOure Full of bloodbags", name player], "PLAIN DOWN"]; }; 13-Leave the script if player is in combat if (dayz_combat == 1) exitWith { cutText [format["IN COMBAT."], "PLAIN DOWN"]; }; 14-Attach to _player = player;//create a _player variable _mark = "RoadFlare" createVehicle getPosATL _player;//create a roadflare called _mark with the same location of _player _mark attachTo [_player, [0,0,0]];//attach _mark to _player with 0/0/0 axis values In this case we create a "RoadFlare" in the _player position and proceed to attach it with the player
  10. ALL CREDITS FOR @Sandbird Walk Amongst The Dead - (Hide from zombies like "The Walking Dead") original post *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.
  11. juandayz


    @iben I had stopped posting in public. but in this case I wanted to set aside certain things because it is really sad to read your post. In my opinion you are the best one here. Not only for the way you write, its the humanity you have, patience, humility, good manners. Generally great writers like you, do not have these qualities that you squander. so friend I hope "goodbye" means "see you soon".
  12. Fully Rewrited for this 2017 xmas. MERRY XMAS EPOCH MOD!!!!!! 1-Download from here: http://www.mediafire.com/file/6iax6nymsdnotva/xmas2017.rar 2-Open your init.sqf 3-Open your custom variables.sqf 4-Open fn_selfactions.sqf 5-Open server_monitor.sqf 6-Open Description.ext and into class sound add the xmas sound.. take a look in this example: 7-INFISTAR 8-BEFILTERS If u have some issues with battleyes open createvehicle.txt
  13. Reskin Its a way to add vehicles whitout asking players to download off the server. Dnt have greats knowledge about photoshop so i had to looking for vehicles package in armaholic and find which textures wold work whit epoch, and make a few changes. **textures are in low quality to not enlarge the server mission file.*** If anyone have a tuto of photoshop to make it easy or have own textures please share :) Well lets to install: -Download here: http://www.mediafire.com/download/8kqlfy8z741mm89/EpochVehicles.rar and paste in :ServerRoot\MPMissions\DayZ_Epoch_11.Chernarus\. Note:- You need open 3 files. "server_monitor.sqf" , "server_publishVehicle2.sqf", and "server_publishVehicle3.sqf" 1- A-Open "server_monitor.sqf" located in: ServerRoot\@DayZ_Epoch_Server\addons\dayz_server\system\ the find lines in red and add lines in blue B-Again in "server_monitor.sqf" find lines in red and add lines in blue. 2- Open "server_publishVehicle2.sqf" located in:ServerRoot\@DayZ_Epoch_Server\addons\dayz_server\compile\ find lines in red and add lines in blue. 3-In "server_publishVehicle3.sqf" located in same place than publishVehicles2. Find lines in red and add lines in blue. 4-Do it in PublishVehicles2 and PublishVehicles3: Find lines in red and add lines in blue. **REPACK YOUR dayz_server DONE! Bugs: Server Restart restore the Skin of toyota civil defence to the original white. i take this post to do it:
  14. 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\ )
  15. *Allow players to attach zombies in open vehicles class. *To make it the players gonna need an "equipe_rope" in inventory. *Be near of a vehicle type in this list _allowedVehicles = [ "hilux1_civil_3_open_DZE", "datsun1_civil_3_open_DZE", "hilux1_civil_1_open_DZE", "datsun1_civil_1_open_DZE", "V3S_Open_TK_CIV_EP1", "V3S_Open_TK_EP1", "KamazOpen_DZE" ]; *Aim to a zed to get the option "attachZed" *When players detach zeds, they (zeds) comes with 15seconds of godmode. and while they are attached have a godmode. *Vehicles in _allowedVehicles have the option to release zeds from inside. INSTALL: 1-create this path mpmissions\your instance\attachzeds\ 2-in this new path create this sqfs attachzed.sqf detachzed.sqf create detachzed_veh.sqf 3-now go to your custom fn_selfactions.sqf (this part is based on takes clothes and salival´s bury /butcher) 4-in a custom variables.sqf if u have some kind of error on rpt about undefined variable ..find: dayz_resetSelfActions = { below add: s_player_zhide4 = -1; s_player_zhide5 = -1;
  16. juandayz

    The Muppet is strong in this one...

    Ohh yes i had a simil msg some time ago. Cannot remember the user.