Jump to content

[Release] Shovel Actions


juandayz

Recommended Posts

A very little actions using the old deploy bike, petuniaepoch  and  Harvestable hemp scripts. whit RightClick Actions.*****Tnks  "seelenapparat" for your help*****

Video:

Spoiler

 

Content: 

Spoiler

Allow Players to:

*Deploy Drug plant/Cut Drugs/Smoke Drugs/   (cut drugs and smoke was taked from "[TUTORIAL] Harvestable hemp, smoking weed, pot farms" i only add deploy drugs plant and change something in hemp.sqf)

*Deploy Pumpkin plant/Cut Pumpkins/Eat pumpkin soup/  using ItemShovel and ItemMachete

*Deploy Pine/Cut wood/  whit ItemShovel and ItemMachete

INSTALL:

If you dont have DayZ Custom Right Click Actions :

1-Download my folder here:http://www.mediafire.com/download/yijrmlk0ou0y6hu/CLICKACTIONS.zip and drop "custom" folder into your MPMISSION/yourinstance/

2-If you have extra_rc open it and add:

Spoiler

class ItemKnife {
        class farmhemp {
            text = "Cut drugs";
            script = "execVM 'custom\script\hemp.sqf'";
        };
    };
  class ItemMachete {
        class cutpumpkin {
            text = "Cutpumpkin";
            script = "execVM 'custom\script\pump.sqf'";
        };
        class cutwood {
            text = "Cutwood";
            script = "execVM 'custom\script\wood.sqf'";
        };
    };
  class ItemKiloHemp {
        class smokeweed {
            text = "SmokeDrugs";
            script = "execVM 'custom\script\smokeshit.sqf'";
        };
    };
  class ItemShovel {
         class plantdrug {
            text = "PlantDrugs";
            script = "execVM 'custom\script\drug.sqf'";
        };
         class plantpine {
            text = "PlantTree";
            script = "execVM 'custom\script\pine.sqf'";
        };
         class pumpkin {
            text = "PlantPumpKins";
            script = "execVM 'custom\script\pumpkin.sqf'";
        };    
    };    
};

2-If u dont have extra_rc.hpp use my. Open your Description.ext  and add at very bottom:

Spoiler

#include "custom\extra_rc.hpp"

 

3-Add Shovel and KiloHemp to your traders.  //"ItemKiloHemp" to Neutralbuildingsupplies.hpp//-------//"ItemShovel" to NeutralToolBeltitems.hpp//.

DONE!

OPTIONAL!!!!! WARNING ONLY FOR ADULTS!!!!!!!

preview:

Spoiler

 

Download and drop into your custom\script\   http://www.mediafire.com/download/6fiknw6aassaxpw/erotic.zip

*Go to your extra_rc.hpp and add:

Spoiler

class ItemGPS {
         class erotic {
            text = "eroticvideo";
            script = "execVM 'custom\script\gps.sqf'";
        };
    };

***reference posts:***

***note: i dont have Infistar so dont know if  works on it.

Link to comment
Share on other sites

this is interesting..  I've been trying to find a way for players to be able to plant pumpkins and such to be able to make a garden, but they cant harvest.. I wanted to make a simple script that would just look for the pumpkins that you cant harvest, within a players distance and do just like the plant weed script. but it never worked.  This should help me accomplish what im looking for.  Thanks Juan

Also, i have my plant weed set to "takes 15 minutes to grow" one kilo.

Spoiler

private ["_position","_dis","_sfx","_object1","_object"];

if ([["ItemZombieParts",3], "ItemWaterBottle"] call player_checkAndRemoveItems) then {


call spawnplant;
} else{
cutText [format["You need 3 Zombie parts and 1 water bottle to plant some weed man!!"], "PLAIN DOWN"];
};

spawnplant = {
_position = getPosATL player;

player playActionNow "Medic";
r_interrupt = false;


_dis=1;
_sfx = "repair";
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;

_object1 = "MAP_b_betulaHumilis" createVehicle (_position);
_object1 setVariable ["ObjectID", "1", true];
_object1 setVariable ["ObjectUID", "1", true];

player addMagazine "ItemWaterbottleUnfilled";

cutText [format["You've made some good compost to grow some good weed!"], "PLAIN DOWN"];
sleep 6;
cutText [format["Ready to harvest in 15min!"], "PLAIN DOWN"];

sleep 900;

cutText [format["Your shit is ready to be harvested and smoked man!!"], "PLAIN DOWN"];

deleteVehicle _object1;

_object = "Fiberplant" createVehicle (_position);
_object setVariable ["ObjectID", "1", true];
_object setVariable ["ObjectUID", "1", true];

r_interrupt = false;
player switchMove "";
player playActionNow "stop";

sleep 10;
};

 

Link to comment
Share on other sites

Duke, here u have a jail to rise chiken for your farm.. using your Sleep=900

extra_rc.hpp

Spoiler

class ItemShovel {  
           class buildjail {
            text = "RiseChiken";
            script = "execVM 'custom\script\chiken.sqf'";
        };        

chiken.sqf

Spoiler

private ["_position","_dis","_sfx","_this","_object"];

if ([["ItemPole",3], "PartGeneric"] call player_checkAndRemoveItems) then {


call spawnplant;
} else{
cutText [format["You need 3 MetalPole parts and 1 PartGeneric to create a jail!!"], "PLAIN DOWN"];
};

spawnplant = {
_position = getPosATL player;

player playActionNow "Medic";
r_interrupt = false;


_dis=1;
_sfx = "repair";
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;

_this = "Land_cages_EP1" createVehicle (_position);
_this setVariable ["ObjectID", "1", true];
_this setVariable ["ObjectUID", "1", true];

 

cutText [format["You've made a nice jail for chikens !"], "PLAIN DOWN"];
sleep 6;
cutText [format["Chiken Growup in 10minutes!"], "PLAIN DOWN"];

sleep 900;

cutText [format["Your Chiken is ready to be eated!!"], "PLAIN DOWN"];

deleteVehicle _this;

_object = "Hen" createVehicle (_position);
_object setVariable ["ObjectID", "1", true];
_object setVariable ["ObjectUID", "1", true];

r_interrupt = false;
player switchMove "";
player playActionNow "stop";

sleep 10;
};

 

 

Link to comment
Share on other sites

  • 4 months later...

@Cherdenko mm you put it as weapon in trades?

class ItemShovel {
        type = "trade_weapons";
        buy[] ={5200,"Coins"};
        sell[] ={1000,"Coins"};
    };

 

maybe not cuz ure issue  No entry MAGAZINES.itemshovel...   so i guess u put it as trade items :)

Link to comment
Share on other sites

  • 4 weeks later...
29 minutes ago, WagnerMello said:

hello juan
I have a problem I put kilohemp for sale and hj one player has shown me that he can plant near the trade and go sell soon after, I wonder if there is no possibility of defining so plantations within pole plot and a planting time

thx

try replace drug.sqf with this

Spoiler

_playerPos = getPosATL player;
_nearplot = count nearestObjects [_playerPos, ["Plastic_Pole_EP1_DZ"], 30] > 0;
_LastUsedTime = 1200;
_Time = time - lastuse;
 
if(_Time < _LastUsedTime) exitWith {
    cutText [format["wait anothers %1 seconds!",(round(_Time - _LastUsedTime))], "PLAIN DOWN"];
};

 
if !(_nearplot) exitWith {
DZE_ActionInProgress = false;
    [format["<t align='center' size='0.75' color='#ff5200'>%1 You cannot plant out of  plot area.</t>",(name player)],0,0,2,2] spawn BIS_fnc_dynamicText;
        };


if (_nearplot) then {
    lastuse = time;
    player playActionNow "Medic";
    r_interrupt = false;
    player removeWeapon "ItemShovel";
    _dis=10;
    _sfx = "repair";
    [player,_sfx,0,false,_dis] call dayz_zombieSpeak;
    [player,_dis,true,(getPosATL player)] spawn player_alertZombies;
 
    sleep 6;
 
    _object = "fiberplant" createVehicle (position player);
    _object setVariable ["ObjectID", "1", true];
    _object setVariable ["ObjectUID", "1", true];
 
    player reveal _object;
 
    cutText [format["You've used your shovel to set a plant! smell like a dream!"], "PLAIN DOWN"];
 
    r_interrupt = false;
    player switchMove "";
    player playActionNow "stop";
 
    sleep 10;
 
    cutText [format["Warning: Spawned plants DO NOT SAVE after server restart!"], "PLAIN DOWN"];
 
};

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...