juandayz Posted March 26, 2016 Report Share Posted March 26, 2016 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 : Spoiler https://github.com/mudzereli/DayZEpochClickActions 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:*** Spoiler https://www.survivalservers.com/forum/index.php?/topic/600-tutorial-deploys-bike/ ***note: i dont have Infistar so dont know if works on it. Airwaves Man, looter809, theduke and 2 others 5 Link to comment Share on other sites More sharing options...
Shawn Posted March 26, 2016 Report Share Posted March 26, 2016 Ahaha love the dayz erotico! xD juandayz 1 Link to comment Share on other sites More sharing options...
Airwaves Man Posted March 26, 2016 Report Share Posted March 26, 2016 Good idea, I like it. I added the shovel to bury bodies and building stuff as well. Almost every week a new addon from you. thats nice juandayz 1 Link to comment Share on other sites More sharing options...
juandayz Posted March 26, 2016 Author Report Share Posted March 26, 2016 lol im bored, so make stupid addons :D can u share bury bodies when u finish? Link to comment Share on other sites More sharing options...
Airwaves Man Posted March 26, 2016 Report Share Posted March 26, 2016 It is just the old bury bodies script from seaweeduk. I changed the code for the shovel and few more things. I dont like the idea with the gear in the food box. When you read the script you know what i mean. http://opendayz.net/threads/bury-corpses.13368/ juandayz 1 Link to comment Share on other sites More sharing options...
lonewolfgaming Posted March 27, 2016 Report Share Posted March 27, 2016 looks like infiSTAR is gonna kick up about the pumpkin planting. Has the purchase without trader error. Anyone know what needs to be added to the allowed dialogs? Link to comment Share on other sites More sharing options...
theduke Posted March 28, 2016 Report Share Posted March 28, 2016 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; }; juandayz 1 Link to comment Share on other sites More sharing options...
juandayz Posted March 28, 2016 Author Report Share Posted March 28, 2016 DUKEEE!!! your " sleep 900; " give it more realism. i take it :) Link to comment Share on other sites More sharing options...
theduke Posted March 28, 2016 Report Share Posted March 28, 2016 1 minute ago, juandayz said: DUKEEE!!! your " sleep 900; " give it more realism. i take it :) go right ahead :) thats why i shared juandayz 1 Link to comment Share on other sites More sharing options...
juandayz Posted March 30, 2016 Author Report Share Posted March 30, 2016 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; }; theduke 1 Link to comment Share on other sites More sharing options...
Cherdenko Posted August 9, 2016 Report Share Posted August 9, 2016 i get this error, when buzing ItemShovel Link to comment Share on other sites More sharing options...
juandayz Posted August 9, 2016 Author Report Share Posted August 9, 2016 @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 More sharing options...
Cherdenko Posted August 9, 2016 Report Share Posted August 9, 2016 yes Link to comment Share on other sites More sharing options...
juandayz Posted August 9, 2016 Author Report Share Posted August 9, 2016 you have this issue when you buy the shovel? Link to comment Share on other sites More sharing options...
Cherdenko Posted August 9, 2016 Report Share Posted August 9, 2016 yes Link to comment Share on other sites More sharing options...
Cherdenko Posted August 9, 2016 Report Share Posted August 9, 2016 now it works O_o juandayz 1 Link to comment Share on other sites More sharing options...
juandayz Posted August 9, 2016 Author Report Share Posted August 9, 2016 i was checking it again and yep, works.. i Link to comment Share on other sites More sharing options...
WagnerMello Posted September 6, 2016 Report Share Posted September 6, 2016 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 Link to comment Share on other sites More sharing options...
juandayz Posted September 6, 2016 Author Report Share Posted September 6, 2016 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 More sharing options...
WagnerMello Posted September 7, 2016 Report Share Posted September 7, 2016 Juan worked perfectly thank you juandayz 1 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