Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by juandayz

  1. 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)
  2. 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.
  3. 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.
  4. Goodbye

    @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".
  5. 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
  6. any one know how to change the color of text of DZMS or WAI missions
  7. 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
  8. 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
  9. 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:
  10. 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\ )
  11. *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;
  12. The Muppet is strong in this one...

    Ohh yes i had a simil msg some time ago. Cannot remember the user.
  13. extra_rc can not execute files

    @Erzengelgames dont know what kind of script is it,, but you can test with other script. Extra_rc.hpp extra_test.sqf
  14. extra_rc can not execute files

    lol, no i just postint the test when you said "options displayed" dont worry you dont sound bad :D
  15. extra_rc can not execute files

    and is not a script issue?
  16. extra_rc can not execute files

    ah ok, sorry.-
  17. extra_rc can not execute files

    you also can try this little test. replace your extra_rc with this code. class ExtraRc { class ItemToolbox { class test { text = "test"; script = "execVM 'custom\extra_test.sqf'"; }; }; }; extra_test.sqf if works you can discard any issue with ui_selectslot.sqf
  18. extra_rc can not execute files

    Are. You sure youre using corrects items classnames?