carl101 Posted May 11, 2014 Report Share Posted May 11, 2014 hi guys, just a quick hemp farm i chucked together that would go great with a few AI once i work out how to harvest them.... The pics don't really do it justice, looks better up close pics https://imgur.com/a/BwrxS mission.sqf http://pastebin.com/Rnshk8sg beidi http://pastebin.com/Ck1Jbam3 if anyone knows how to make this stuff harvestable then please let us know Rythron 1 Link to comment Share on other sites More sharing options...
insertcoins Posted May 11, 2014 Report Share Posted May 11, 2014 you got a new server? Link to comment Share on other sites More sharing options...
carl101 Posted May 11, 2014 Author Report Share Posted May 11, 2014 Naa just my test server still up for 130hours so am just messing around on it for abit Link to comment Share on other sites More sharing options...
Genesis Posted May 12, 2014 Report Share Posted May 12, 2014 would also like to know how to harvest the hemp!! nice job carl =D Link to comment Share on other sites More sharing options...
StiflersM0M Posted May 12, 2014 Report Share Posted May 12, 2014 If anybody want it, i use macca´s righ click option to harvest the hemp, looks like this: class ExtraRc { class ItemMachete { class farmhemp { text = "Harvest hemp"; script = "execVM 'scripts\hemp.sqf'"; }; }; }; Ive put the hemp.sql in my mpmission scripts folder. the hemp script: _countHemp = count nearestObjects [player, ["fiberplant"], 5]; if (_countHemp > 0) then { cutText [format["Start harvesting....."], "PLAIN DOWN"]; player removeWeapon "ItemMachete"; player playActionNow "Medic"; sleep 5; player addMagazine "ItemKiloHemp"; player addWeapon "ItemMachete"; cutText [format["Finished harvesting! , 2 kilo hemp has been added in your inventory!"], "PLAIN DOWN"]; } else { cutText [format["You are not close enough to a hemp plant!"], "PLAIN DOWN"]; }; NateDaBeast 1 Link to comment Share on other sites More sharing options...
carl101 Posted May 12, 2014 Author Report Share Posted May 12, 2014 thats awesome that stifler, works a treat, may be worth putting a quick tutorial up on that in the server mods section as a few people are looking how to do this. Link to comment Share on other sites More sharing options...
Genesis Posted May 12, 2014 Report Share Posted May 12, 2014 ultra noob here, I can't find maccas script. How do I install StiflersM0M 's harvest script? Link to comment Share on other sites More sharing options...
carl101 Posted May 12, 2014 Author Report Share Posted May 12, 2014 Your will find it on epochservers.com. Very easy to install Link to comment Share on other sites More sharing options...
Genesis Posted May 13, 2014 Report Share Posted May 13, 2014 Found it! Thanks again carl101 =D! Link to comment Share on other sites More sharing options...
saintanthony Posted May 13, 2014 Report Share Posted May 13, 2014 How can this script be edited so that the hemp plant is destroyed like with standard epoch harvested plants, once harvested? tried adding the bit of code from player_harvest plant sqf that does it but it didn't work. Link to comment Share on other sites More sharing options...
MjrEyesWater Posted May 13, 2014 Report Share Posted May 13, 2014 Can someone please post the link : Your will find it on epochservers.com. Very easy to install Ive looked but cant find it. many thanks Link to comment Share on other sites More sharing options...
carl101 Posted May 13, 2014 Author Report Share Posted May 13, 2014 http://www.epochservers.com/viewtopic.php?f=14&t=13&sid=4d68d5283b8d5635f8323b5ed02979bf Link to comment Share on other sites More sharing options...
Ethan_296 Posted May 13, 2014 Report Share Posted May 13, 2014 Could you use something like. Nearestobjects [player, ["fiberplant"]] setdamage _object = 1 Im not that great at coding and I am literally writing this with one eye open but it should be somehwere along thos lines. obviously with more integrity checking to make sure its within a certain distance but i think you get the idea. I would like to see what someone does with this. Link to comment Share on other sites More sharing options...
saintanthony Posted May 13, 2014 Report Share Posted May 13, 2014 Tried this: _countHemp = count nearestObjects [player, ["fiberplant"], 5]; _Hemp = nearestObjects [player, ["fiberplant"], 5]; if (_countHemp > 0) then { cutText [format["Start harvesting....."], "PLAIN DOWN"]; player removeWeapon "ItemMachete"; player playActionNow "Medic"; sleep 5; player addMagazine "ItemKiloHemp"; player addWeapon "ItemMachete"; cutText [format["Finished harvesting! A kilo of hemp has been added to your inventory!"], "PLAIN DOWN"]; sleep 1; _Hemp setDamage 1; }; } else { cutText [format["You are not close enough to a hemp plant!"], "PLAIN DOWN"]; }; Harvest works fine, but again no damage. So, out of curiosity I dropped a bunch of explosives. Everything except the fiberplants was destroyed. So, somehow the fiberplants are being spawned in an indestructible state. Any way to override that? Link to comment Share on other sites More sharing options...
carl101 Posted May 13, 2014 Author Report Share Posted May 13, 2014 hmm indestructable hemp plants, every dealers dream. might be worth posting in the scripting help , see if anyone in there could find away around killing them trees off Link to comment Share on other sites More sharing options...
caboose1 Posted May 16, 2014 Report Share Posted May 16, 2014 does this need whitelisting? in latest AH inifistart i just updated but now i cant harvest Link to comment Share on other sites More sharing options...
Sandbird Posted May 16, 2014 Report Share Posted May 16, 2014 for some weird reason hemp plants are buildings....if you set damage 1 to them...they fall down as if you just destroyed cherno hotel...and if you are next to them when doing so....you die. Akelorian 1 Link to comment Share on other sites More sharing options...
ZeroK00L Posted May 18, 2014 Report Share Posted May 18, 2014 Got a problem with this script. Players can Click Harvest repeatedly and fill their inventory up with 1200 KiLOs of Hemp. Going to have to take it out of my server until I can or someone else posts a fix. Anyone else have this issue? Link to comment Share on other sites More sharing options...
Sukkaed Posted May 18, 2014 Report Share Posted May 18, 2014 Fiberplant is classed as building/vehicle so better use "deleteVehicle" if you don't want to go all jihad when harvesting. _findHemp = nearestObjects [player,["fiberplant"],5]; deleteVehicle (_findHemp select 0); Link to comment Share on other sites More sharing options...
Sukkaed Posted May 18, 2014 Report Share Posted May 18, 2014 Got a problem with this script. Players can Click Harvest repeatedly and fill their inventory up with 1200 KiLOs of Hemp. Going to have to take it out of my server until I can or someone else posts a fix. Anyone else have this issue? You could set a limit to how many hemps can be in the main inventory at once. _hempqty = {_x == "ItemKiloHemp"} count magazines player; if (_hempqty > 9) exitWith { cutText [format["WARNING: %1, You have maximum amount of weed in your inventory!", name player], "PLAIN DOWN"]; }; Link to comment Share on other sites More sharing options...
ZeroK00L Posted May 18, 2014 Report Share Posted May 18, 2014 You could set a limit to how many hemps can be in the main inventory at once. _hempqty = {_x == "ItemKiloHemp"} count magazines player; if (_hempqty > 9) exitWith { cutText [format["WARNING: %1, You have maximum amount of weed in your inventory!", name player], "PLAIN DOWN"]; }; Excellent! Where does this go in the SQF? Thank you so much for your help! Link to comment Share on other sites More sharing options...
Sukkaed Posted May 18, 2014 Report Share Posted May 18, 2014 Excellent! Where does this go in the SQF? Thank you so much for your help! Add it somewhere on the top. Link to comment Share on other sites More sharing options...
Stranger Posted May 19, 2014 Report Share Posted May 19, 2014 Is there a way you cant harvest it? Or set the time to harvest on around 30min for 2 Kilo? Because we have some vehicles you can only buy with hemp Link to comment Share on other sites More sharing options...
ZeroK00L Posted May 20, 2014 Report Share Posted May 20, 2014 Excellent! Where does this go in the SQF? Thank you so much for your help! Ok. Thanks for the help. Doesn't help unfortuantely. They can still spam the Harvest Hemp button repeatedly, even though the machete has left their inventory the Option still shows as long as they keep clicking Harvest Hemp. I have tried so many different Else and If statements. gonna try to make this a scroll wheel option. Will update if I get a solution. :) Zero Link to comment Share on other sites More sharing options...
Ethan_296 Posted May 20, 2014 Report Share Posted May 20, 2014 How about after it removes the machete from the inventory, is there any way it can close the inventory? Would that remove the option from being selected? 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