Jump to content

Airwaves Man

Developer
  • Posts

    596
  • Joined

  • Last visited

  • Days Won

    58

Reputation Activity

  1. Like
    Airwaves Man got a reaction from juandayz in [Release] New Custom Gui   
    Thx for sharing this juandayz. I love the new icons. Really good work
  2. Like
    Airwaves Man reacted to FragZ in [TUTORIAL] Harvestable hemp, smoking weed, pot farms.   
    Hello guys! This is my first complete tutorial.

    Today I will show you how to install the Hemp farms scripts and the smoking script.

    First, you will need to install maca's right clickable system, which can be found here:   http://www.epochservers.com/viewtopic.php?f=14&t=13&sid=4d68d5283b8d5635f8323b5ed02979bf

    Then, open up extra_rc.hpp and copy this code in it:
     
    class ExtraRc { class ItemKnife { class farmhemp { text = "Harvest the weed"; script = "execVM 'scripts\hemp.sqf'"; }; }; class ItemKiloHemp { class smokeweed { text = "Smoke the shit"; script = "execVM 'scripts\smokeshit.sqf'"; }; }; }; Edit the text and paths to fit your needs.


    Now create a new text document and paste this in it:

     
    /* put together for DayZ Epoch Credits to Shogun338 from Insurrection gaming modified for separate "gather weed" script */ private ["_gearmenu","_playerPos","_nearWeed","_weed","_objectID","_objectUID"]; _playerPos = getPosATL player; _hempqty = {_x == "ItemKiloHemp"} count magazines player; _nearWeed = count nearestObjects [_playerPos, ["fiberplant"], 4] > 0; _weed = nearestObject [player, "fiberplant"]; if !(_nearWeed) exitWith { cutText [format["You need to be near the weed plants in order to gather."], "PLAIN DOWN"]; }; if (_hempqty > 2) exitWith { cutText [format["WARNING: %1, You have maximum amount of weed in your inventory! You could get arrested by the police ;)", name player], "PLAIN DOWN"]; }; if (dayz_combat == 1) then { cutText [format["You are in Combat and Cannot Gather the Weed."], "PLAIN DOWN"]; } else { disableSerialization; _gearmenu = FindDisplay 106; _gearmenu CloseDisplay 106; player playActionNow "Medic"; r_interrupt = false; sleep 6; _objectID = _weed getVariable["ObjectID","0"]; _objectUID = _weed getVariable["ObjectUID","0"]; deleteVehicle _weed; [_objectID,_objectUID] call server_deleteObj; _weed setDamage 1; player addMagazine "ItemKiloHemp"; sleep 2; cutText [format["You've Gathered Some Weed! Smoke that shit or sell it at Black market dealer!!"], "PLAIN DOWN"]; }; Save it as hemp.sqf and put it in your scritps folder in the mission pbo.


    Next up, create a new text document and paste this in it (NOTE ALL CREDITS TO INFISTAR FROM DAYZANTIHACK.COM):
     
    /* by: http://infiSTAR.de Credits to infistar for the actual script Edited by FragZ */ //Add this part after *while {true} do {* to add a smoke effect /*Flare = "SmokeShellGreen" createVehicle position player;         if (vehicle player != player) then { Flare attachTo [vehicle player,[0,0,0.]];}         else {Flare attachTo [player,[0,0,0.]];} */ [] spawn { hint "You took drugs YOLOLOLO"; player removeMagazine 'ItemKiloHemp'; Remove_Drug_effects = { { ppEffectDestroy _x; } forEach (_this select 0); ppEffectDestroy nonapsi_ef; ppEffectDestroy wetdist1; ppEffectDestroy ppe; ppEffectDestroy ppe2; ppEffectDestroy ppe3; setaperture 0; "dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 16; "colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1], [1, 1, 1, 0.0]]; "colorCorrections" ppEffectCommit 0; }; _time = time; _effects = []; while {true} do { nonapsi_ef = ppEffectCreate ["colorCorrections", 1555]; _effects = _effects + [nonapsi_ef]; nonapsi_ef ppEffectEnable true; nonapsi_ef ppEffectAdjust [1.0, 1.0, -0.03, [0.0, 0.0, 0.0, 0.0], [3.0, 5.0, 9.0, 5.0],[0.4,0.0,0.0, 0.7]]; nonapsi_ef ppEffectCommit 1; sleep random(1); wetdist1 = ppEffectCreate ["wetDistortion", 2006]; _effects = _effects + [wetdist1]; wetdist1 ppEffectAdjust [0, 8, 0.8,8,8, 0.2, 1, 0, 0, 0.08, 0.08, 0, 0, 0, 0.77]; wetdist1 ppEffectEnable true; wetdist1 ppEffectCommit 0; ppe = ppEffectCreate ["colorCorrections", 1555]; _effects = _effects + [ppe]; ppe ppEffectAdjust [1, 1, 0, [1.5,6,2.5,0.5], [5,3.5,5,-0.5], [-3,5,-5,-0.5]]; ppe ppEffectCommit 1; ppe ppEffectEnable true; ppe2 = ppEffectCreate ["chromAberration", 1555]; _effects = _effects + [ppe2]; ppe2 ppEffectAdjust [0.01,0.01,true]; ppe2 ppEffectCommit 1; ppe2 ppEffectEnable true; ppe3 = ppEffectCreate ["radialBlur", 1555]; _effects = _effects + [ppe3]; ppe3 ppEffectEnable true; ppe3 ppEffectAdjust [0.02,0.02,0.15,0.15]; ppe3 ppEffectCommit 1; sleep random(1); wetdist1 = ppEffectCreate ["wetDistortion", 2006]; _effects = _effects + [wetdist1]; wetdist1 ppEffectAdjust [1, 1.16, 0.32, 2.56, 0.8, 0.64, 2.64, 0, 0, 1.08, 0.08, 0, 0, 0, 1.77]; wetdist1 ppEffectEnable true; wetdist1 ppEffectCommit 0; sleep random(1); nonapsi_ef = ppEffectCreate ["colorCorrections", 1555]; _effects = _effects + [nonapsi_ef]; nonapsi_ef ppEffectEnable true; nonapsi_ef ppEffectAdjust [1.0, 1.0, -0.02, [9.5, 1.5, 2.5, 0.2], [2.0, 7.0, 6.0, 2.0],[0.4,0.0,0.0, 0.7]]; nonapsi_ef ppEffectCommit 1; sleep random(1); if (_time + 60 < time) exitWith {[_effects] call Remove_Drug_effects;}; }; }; Save it as smokeshit.sqf and put it in the scripts folder of your mission.pbo
     
    NOTE: THIS SCRIPT LOOKS LIKE  A LSD TRIP. Go to the OPTIONAL part of the tutorial for a mellow version.
     
     
    Finally, open the arma 2 oa map editor and place down whatever buildings you want the weed to be into. Place any type of bushes or barrels or rocks in the editor where you want the weed to be (in my example I used "MAP_b_betulaHumilis". Save the mission.sqf and go to your DOCUMENTS/Arma 2 Other Profiles/Yourprofilename/mission.sqf and open it.



    Change every  MAP_b_betulaHumilis (or any object you placed)
    _vehicle_5 = objNull; if (true) then { _this = createVehicle ["MAP_b_betulaHumilis", [4048.9565, 7805.9746], [], 0, "CAN_COLLIDE"]; _vehicle_5 = _this; _this setPos [4048.9565, 7805.9746]; }; to
     
    _vehicle_5 = objNull; if (true) then { _this = createVehicle ["fiberplant", [4050.6616, 7809.3203], [], 0, "CAN_COLLIDE"]; _vehicle_5 = _this; _this setPos [4050.6616, 7809.3203]; }; Do the usual changes for a building file and save it as weedfarm.sqf  then go to your server.pbo and put it in buildings folder.
     
    You can also use this script made by HALV to spawn random fields each restart.
    http://pastebin.com/juMsuJ1r


    Finally, call it in the init/system_functions.sqf at the bottom just like so:
     
    execVM "\z\addons\dayz_server\buildings\weedfarm.sqf"; OPTIONNAL:

    -If you want people to be able to sell it you can add ItemKiloHemp in the traders DATA from your sql table so you can make them be sold.
    Don't forgot to add it to Traders items as well
    - Add this right above while {true} do in smokeshit.sqf  :)
    player playMoveNow "ActsPercMstpSnonWpstDnon_sceneBardak01"; This will add an animation to the player.
    -For a little bit less exagerated smokeshit.sqf script, use this one made by ZeroK00L:
     
    /* by: ZeroK00L */ [] spawn { hint "You roll a fatty and smoke it! Damn! That shit is the chronic!"; player removeMagazine 'ItemKiloHemp'; Remove_Drug_effects = { { ppEffectDestroy _x; } forEach (_this select 0); ppEffectDestroy ppe2; ppEffectDestroy ppe3; setaperture 0; }; _time = time; _effects = []; player playMoveNow "ActsPercMstpSnonWpstDnon_sceneBardak01"; while {true} do { ppe2 = ppEffectCreate ["chromAberration", 1555]; _effects = _effects + [ppe2]; ppe2 ppEffectAdjust [random 0.25,random 0.25,true]; ppe2 ppEffectCommit 1; ppe2 ppEffectEnable true; ppe3 = ppEffectCreate ["radialBlur", 1555]; _effects = _effects + [ppe3]; ppe3 ppEffectEnable true; ppe3 ppEffectAdjust [random 0.02,random 0.02,0.15,0.15]; ppe3 ppEffectCommit 1; sleep random(1); if (_time + 60 < time) exitWith {[_effects] call Remove_Drug_effects;}; }; }; If you have any questions you can ask me.

    I DO NOT TAKE CREDITS FOR THE HARVESTING SCRIPT. Credits to original authors.
  3. Like
    Airwaves Man reacted to Zupa in [Release] 2.1 Plot Management - UPDATED Object Counter   
    Plot Management 2.1 With Object Counter
     


    By Zupa & rosska85 


    Explanation
     
    This scripts adds a dialog to the plotpole where you can add people form the surroundings to your plotpole. They will be able to build for ALWAYS in the radius of that plotpole untill he gets removed from the plotpole. Everyone on the plot can "Manage" the plot. Owner will always be the highest power on the plote.


    If you dont use plotForLife mod and you add yourself to the plot, you will alwyas be able to build even after you die.


    Add yourself in admin list (fn selfactions section), so admin can manage all plots.


    Technical


    The people on the plotpole gets saved to the DB in the gear variable of the plotpole. The friends are in the plotfriends variable.
    [["46446465","Zupa],["456749879","MyLonelyFriend"]


    Maintain Version:


    You can use the maintain version with Default of SingleCurrency version of Epoch. This will allow you to maintain the area in your plot management menu!
    Show the plot area with a fancy dome made by Zero Remorse's Scripter! 
    Preview any cost before it gets spent!


    Credits


    rosska85 : His people saving on the plotpole gear field! Maca: The idea and code inspiration for this public mod Zero Remorse: Great Dome to show plot area.

    Screenshot


    Default Version:




     
    NEW Maintain version:
     



     Installation
     
     

    Files needed:


    https://github.com/DevZupa/PlotManagement


    Download it with the zip button on right side.


     
    Installation Instructions are on the github readme's


    MAINTAIN VERSION 2.1 !:


    Which files are updated:


    plotObjects.sqf (new) initPlotManagement.sqf (udpated) plotManagement.hpp add extra line in compiles.sqf change 1 number in player_build.sqf





    Same as the default but also add
    MaintainPlot = compile preprocessFileLineNumbers "zupa\plotManagement\maintain_area.sqf"; PlotPreview = compile preprocessFileLineNumbers "zupa\plotManagement\plotToggleMarkers.sqf"; PlotObjects = compile preprocessFileLineNumbers "zupa\plotManagement\plotObjects.sqf"; // NEW to your compiles.sqf  after
    if (!isDedicated) then { Now default max range is 30m to check if there are too many objects in one spot. 
    Lets change that to the plotRadius, so my plot menu can show u how many objects ( that can be maintain) are still able to be build.
     
    in player_build.sqf 
     
    look in a IF for:

    nearObjects ["All",30]change that to
    nearObjects ["All",DZE_PlotPole select 0]To change maintani price ( for default very obvious in maintain_area.sqf). for single currency


    change the 1 to any price you want per object.
    _theCost = _count * 1;For example
    _theCost = _count * 150; // 150 coins per object. INFINISTAR:


    Add the following number to the dialogs array:
    711194 AND


    Add
    "PlotManagement" to 
    _cMenu = You've succesfull have plotManagement






    NEW Update 1.1:


    Github updated with file:
    plotNearbyHumans  - ALLPLAYERS.sqf


    Rename to:
    plotNearbyHumans.sqf (overwrite default)


    IF YOU WANT ALL PLAYERS LISTED ON THE LEFT


    New Update 2.0:


    Fixed all players showing in list Added maintain area/ preview area cost/ preview area (in a dome)

    IF you have single currency user the maintain_areaSC as maintain_area ( rename it and delete the other one).


    Important info:
  4. Like
    Airwaves Man reacted to juandayz in [Release] New Custom Gui   
    Hello! i want to share my Gui icons.    (at the end you can do your owns)                                                                                          
     
    1-First Download the folder whit the .paa graphics.  DOWNLOAD HERE: http://www.mediafire.com/download/gq1t1cwme5zf5b3/gui.rar
    2-Paste in "yourserverroot"\MPMissions\DayZ_Epoch_11.Chernarus\  (if u change the path here, u will to change the paths in the Steap 4 of the guide)
     
    3-find your "player_updateGui.sqf" and open whit Note++
    ------------------------------------------------------------------------------------------------------------------------------------
    ***If u dont have "playerupdateGui.sqf" do this, if u have go to step 4.
    *First you'll need player_updateGui.sqf which you can get from here:
    @DayZ_Epoch\addons\dayz_code\compile\player_updateGui.sqf
    Copy&Paste it into your MPMissions/DayZ_Epoch_11.Chernarus\custom\
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    ***IF U HAVE CUSTOM compiles.sqf:
    Go into your compiles.sqf and add this line under the default one and comment the original out like soo:
    //    player_updateGui =              compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_updateGui.sqf";
                player_updateGui =              compile preprocessFileLineNumbers "custom\player_updateGui.sqf";
                
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    IF U DONT HAVE  CUSTOM compiles.sqf :
    Go into your @DayZ_Epoch\addons\dayz_code\init\compiles.sqf
    Copy&Paste it into your MPMissions/DayZ_Epoch_11.Chernarus\custom\
    Open up init.sqf and add this:
    call compile preprocessFileLineNumbers "custom\compiles.sqf";
    Right under this:
    call compile preprocessFileLineNumbers "server_traders.sqf";
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     
    4- In "player_updateGui.sqf" :
    A-(new blood) Find This line:
    if (_bloodLvl <= 0) then {
        _blood = "\z\addons\dayz_code\gui\status_blood_inside_1_ca.paa";
        } else {
        _blood = "\z\addons\dayz_code\gui\status_blood_inside_" + str(_bloodLvl) + "_ca.paa";
        };
    Replace whit that:
    if (_bloodLvl <= 0) then {
        _blood = "gui\Bloodgui\status_blood_inside_1_ca.paa";
        } else {
        _blood = "gui\Bloodgui\status_blood_inside_" + str(_bloodLvl) + "_ca.paa";
        };
    B-(new drink and food) Find:
    if (_thirstLvl < 0) then { _thirstLvl = 0 };
    _thirst = "\z\addons\dayz_code\gui\status_thirst_inside_" + str(_thirstLvl) + "_ca.paa";
    if (_foodLvl < 0) then { _foodLvl = 0 };
    _food = "\z\addons\dayz_code\gui\status_food_inside_" + str(_foodLvl) + "_ca.paa";
    Change:
    if (_thirstLvl < 0) then { _thirstLvl = 0 };
    _thirst = "gui\bebida\status_thirst_inside_" + str(_thirstLvl) + "_ca.paa";
    if (_foodLvl < 0) then { _foodLvl = 0 };
    _food = "gui\comida\status_food_inside_" + str(_foodLvl) + "_ca.paa";
    C-(new temp)Find:
    _temp = "\z\addons\dayz_code\gui\status_temp_" + str(_tempImg) + "_ca.paa";
    Change:
    _temp = "gui\temp\status_temp_" + str(_tempImg) + "_ca.paa";
     
    And its done!.
    *Note: u can do your own icons, just edit whit photoshop and TextView2 and change the .paa files whit your own. measures are 64x64 for all .paa files
     
  5. Like
    Airwaves Man reacted to JustBullet in Anti-Duping by JustBullet | Block ESC Menu   
    BLOCK ESC MENU BY JUSTBULLET
    ver. 1.0.3
    This Anti-Duping system block duping with:
    1. inventory ->> 30 sec. timer ->> ESC = you can not go out 30 seconds. 
    2. inventory ->> 30 sec. timer ->> ((Low FPS ->> ESC) || (ESC --> Low FPS)) = locks the screen and you can not go out 30 seconds. If the FPS will be more, removes the lock screen.
     
    Instructions:
    add in dayz_spaceInterrupt.sqf:
    /* Anti-Duping by JustBullet */ if (_dikCode in actionKeys "Gear") then {     _nill = execvm "scripts\escmenu_atniduping.sqf"; }; above:
    // Disable ESC after death if (_dikCode == 0x01 && r_player_dead) then {     _handled = true; }; in escmenu_atniduping.sqf:
    ///////////////////////////////////////////////////// //////////////* Author by JustBullet */////////////// ///////////* BLOCK ESC MENU ver. 1.0.3 *///////////// ///////////////////////////////////////////////////// if (isNil "JustBlock") then {     private ["_timer","_fps"];     JustBlock = true;     disableSerialization;     waituntil{!isnull (finddisplay 46)};     _timer = 30;     _trigger = false;     while {_timer > 0} do {         _timer = _timer - 0.1;         if !(isnull (finddisplay 49)) then {             findDisplay 106 closeDisplay 1;             finddisplay 49 closeDisplay 2;             _fps = round(diag_fps);             switch true do {                 case (!(_trigger) && (_fps <= 4)): {_trigger = true; disableUserInput true;};                 case ((_trigger) && (_fps > 4)): {endLoadingScreen; _trigger = false; disableUserInput false;};             };             if (_trigger) then {startLoadingScreen ["Anti-dupe: Very low FPS, you are blocked...", "DayZ_loadingScreen"];}             else {systemchat format["Anti-Dupe: You are can't exit of game 1% sec. after access at inventory.", round(_timer)];};         };         uiSleep 0.1;     };     if (_trigger) then {endLoadingScreen; disableUserInput false;};     JustBlock = nil; }; P.S. I can`t make the description because i am do not know English well enough. If you do not difficult to help me with this.
     
    ****************************************************

     
     
  6. Like
    Airwaves Man reacted to theduke in [RELEASE] Custom GUI / Menu   
    Hi Epoch community,
    Have you ever wanted a way for players to be able to see your server rules while in-game?
    Are you tired of repeating yourself with simple answers to simple questions?
    Looking for a different way to deploy items or call certain scripts?
    Our community uses mostly scripts from this awesome epoch community. Its our time to give back :)
    I've decided to make a release version of my GUI for everyone to use.
    Download UPDATED FOR 1061: https://github.com/theduke77/Custom-Menu
    Or follow this link
    https://epochmod.com/forum/topic/43462-release-custom-gui-menu-updated-for-1061/In the video, i have my community colors in the GUI, the release version I tried to match the zupa colors.
     
    Video
    I've received tremendous help from SHIX. Most of the credit goes to him for explaining to me how to do this.
    also, I've used the code he provided as a template and built this from that.
    He kindly allowed me to share with all of you
    Ok, now for the fun part.
    This is NOT for someone new to the world of epoch server management. (probly because of my instructions lol)
    This is NOT a plug-n-play addon. You must configure all the files and customize the menu
    I would strongly suggest you have a test server to be able to test it as you create new pages.
    Try one page to make sure it looks good, then go from there.
    If you want to change the colors of stuff, check out the options section before creating pages.
    I will do my best to explain to the best of my knowledge.
    I'm far from being a coder lol
    Tools required
    Notepad ++
    PBO Tool
    patience...with my instructions ;)
    TextView (optional)
    Installation:
    How to create new pages
     
    OPTIONAL
    Known issues
    Many thanks to SHIX. Without him explaining this GUI stuff to me I wouldn't of made it lol
    Thanks to Kill Zone kids blogs, they are amazing to learn from.
    Hope you guys enjoy it.
    I will support this to the best of my knowledge :)
     
    16/02/2017 UPDATE
    Thank you to @Casual_Jeff for this 1.0.6 FIX
     
×
×
  • Create New...