BlackPlague_81st Posted September 9, 2014 Report Share Posted September 9, 2014 Awesome Tutorial I smoke a Blunt in your honour. Thank You. Curious if anyone figured out how to lower your Food & Drink levels...makes sense to me to give the tokers the munchies as well is there a way to only smoke at the Hookah's? if so can someone tell me how or point me in right direction? How would we add green smoke effect when smoking also? Hmm Gotta try smoking while driving to see if that works..would love to see a green trail going down the road or throu the air while Fly'n High 8>) "Ganja Airlines where we fly High" currently that's my motto anyway as I always fly no higher than 100m usually only about 25m-50m. http://youtu.be/X63hsIyw82o That is just epic... Love it! I'll see if I can script something to make your health and food lower, but not enough to kill ya hahah Ganja and CH!LL3R 2 Link to comment Share on other sites More sharing options...
CH!LL3R Posted September 9, 2014 Report Share Posted September 9, 2014 I'll see if I can script something to make your health and food lower, but not enough to kill ya hahah This would be awesome Link to comment Share on other sites More sharing options...
calamity Posted September 10, 2014 Report Share Posted September 10, 2014 That could be nice :_) I just released it for all.... Link to comment Share on other sites More sharing options...
BlackPlague_81st Posted September 10, 2014 Report Share Posted September 10, 2014 For some reason this script likes to work sometimes, but not all of the time... weird. Link to comment Share on other sites More sharing options...
Ganja Posted September 13, 2014 Report Share Posted September 13, 2014 Anyone figure out the solution (or even part of it) to my inquiry? Curious if anyone figured out how to lower your Food & Drink levels...makes sense to me to give the tokers the munchies as well is there a way to only smoke at the Hookah's? if so can someone tell me how or point me in right direction? How would we add green smoke effect when smoking also? Hmm Gotta try smoking while driving to see if that works..would love to see a green trail going down the road or throu the air while Fly'n High 8>) "Ganja Airlines where we fly High" currently that's my motto anyway as I always fly no higher than 100m usually only about 25m-50m. I was on a server a while ago that made green smoke and only allowed ya to smoke at the Water Pipe, can't find the info or the server again 8>( Link to comment Share on other sites More sharing options...
FragZ Posted September 16, 2014 Author Report Share Posted September 16, 2014 For some reason this script likes to work sometimes, but not all of the time... weird. Be more clear dude, I am using it for 2 months now. Perfectly working fine. Link to comment Share on other sites More sharing options...
BlackPlague_81st Posted September 16, 2014 Report Share Posted September 16, 2014 Be more clear dude, I am using it for 2 months now. Perfectly working fine. Mind if i take a look at your code please? Link to comment Share on other sites More sharing options...
cikez Posted September 17, 2014 Report Share Posted September 17, 2014 would proberbly be better if you changed it to check if players inventory is full instead ... tbh i think setting a limit to how many you can have in your inventory is a bit stupid, since you can just put some down and harvest more, however checking if inventory is full will make sure the player can not have more magazines than allowed in inventory. also i made a little somethin-somethin here for everyone who does not know how to use the editor or if you are just tierd of the same old field in the same old spot: this script will create a random amount of farms and plants each restart, plants are created "labyrinth style" so it will seem like its placed perfectly close no matter how many plants you want and where they end up, markers are automaticly set for each farm and there is an option to blacklist areas like tradecitys ... (as always in my scripts) there is a few settings you can customize a bit ... you can set how many farms you want max/min, how many plants you want max/min, how far from roads you want it to spawn and blacklisted areas where weed will not spawn (areas for cherno and napf is preset). have fun: http://pastebin.com/juMsuJ1r This works perfectly except for the markers do not work. Any ideas? Could this be an issue with Infistar? Link to comment Share on other sites More sharing options...
BlackPlague_81st Posted September 20, 2014 Report Share Posted September 20, 2014 Is there a way to have Ai cops spawn when a player starts harvesting hemp? That would be sweet! Anyone? Turtle II 1 Link to comment Share on other sites More sharing options...
Turtle II Posted September 21, 2014 Report Share Posted September 21, 2014 Is there a way to have Ai cops spawn when a player starts harvesting hemp? That would be sweet! Anyone? I'm down Also on a side note markers don't work with that script you provided. Link to comment Share on other sites More sharing options...
FragZ Posted September 24, 2014 Author Report Share Posted September 24, 2014 Added an option to add a green smoke effect to the player who smokes. Flare = "SmokeShellGreen" createVehicle position player; if (vehicle player != player) then { Flare attachTo [vehicle player,[0,0,0.]];} else {Flare attachTo [player,[0,0,0.]];}; Link to comment Share on other sites More sharing options...
ReggaeFreak Posted September 26, 2014 Report Share Posted September 26, 2014 i need to figure the smoke part out And can som1 help to make the effect more mellow so that i can see where i go and there is just alittle collor change? i did try to change some stuff in the smokeshit sqf nothing helpt Thanks I found out that when i use the post procces effect on normal the effect is there . but my screen is white with the color effect on the menus and text and wheni put postprocces on low nothing happens no effect only the animation I fixed it . i did take out some effects and only kept the color corrections and the chromeamberation. Works like a charm Link to comment Share on other sites More sharing options...
Guest Posted September 28, 2014 Report Share Posted September 28, 2014 how would i go about making a oil harvest script guessing it be same as this in a way just change items around and tools to harvest it?? Link to comment Share on other sites More sharing options...
Mig Posted October 5, 2014 Report Share Posted October 5, 2014 not compatible with Emerald Interior Designer ??. Link to comment Share on other sites More sharing options...
FragZ Posted October 6, 2014 Author Report Share Posted October 6, 2014 not compatible with Emerald Interior Designer ??. I would assume it is, if you setup the right click system good dude. You need to add your own options to it. If you use Emerald interior Designer, it uses the extra_rc.hpp as well, so you need to merge files (add the parts of my tut to yours). Do not call a script imcompatible when you are just too lazy to add it to it. If it is indeed not compatible as in term of script (not in the right click part) let me know I will try to figure it out. As of now it works fine for me. Link to comment Share on other sites More sharing options...
Mig Posted October 7, 2014 Report Share Posted October 7, 2014 I did not say he is inconsistent, I asked the question, I'm not "lazy", I already try to merge the scripts and that's where I get an error in the rpt. Link to comment Share on other sites More sharing options...
FragZ Posted October 17, 2014 Author Report Share Posted October 17, 2014 I did not say he is inconsistent, I asked the question, I'm not "lazy", I already try to merge the scripts and that's where I get an error in the rpt. It would MAYBE help if you say what is the error. Link to comment Share on other sites More sharing options...
FragZ Posted October 17, 2014 Author Report Share Posted October 17, 2014 A little update for those who wants to make the script make your player hungry/thirsty etc. PLEASE NOTE THIS HAS NOT BEEN TESTED. I took this from a hack script that would set your hunger and thirst back to 0, so idk if it will work. Simply add dayz_hunger = dayz_hunger + 0.4; dayz_thirst = dayz_thirst + 0.4; above 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 So it should look like this: [] spawn { hint "You just smoked a huge blunt! Feel the high kick in! (lasts 90 seconds)"; player removeMagazine 'ItemKiloHemp'; player setDamage 0; r_player_inpain = false; r_player_injured = false; dayz_hunger = dayz_hunger + 0.4; dayz_thirst = dayz_thirst + 0.4; r_player_lowblood = false; dayz_sourceBleeding = objNull; player setVariable ["USEC_injured",false,true]; {player setVariable[_x,false,true];} forEach USEC_woundHit; player setVariable['medForceUpdate',true,true]; 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 { Flare = "SmokeShellGreen" createVehicle position player; if (vehicle player != player) then { Flare attachTo [vehicle player,[0,0,0.]];} else {Flare attachTo [player,[0,0,0.]];} 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 + 90 < time) exitWith {[_effects] call Remove_Drug_effects;}; }; }; Or it might be dayz_hunger = 0.4; dayz_thirst = 0.4; But that last option would make it so you are set to 0.4, so if you were at something higher, you would then LOSE hunger and thirst. Waiting for someone to reply to this as I dont have a server to test it on atm. Link to comment Share on other sites More sharing options...
Guest Posted October 18, 2014 Report Share Posted October 18, 2014 fragz how hard would it be to change this to a oil harvest script or a diamond harvest script Link to comment Share on other sites More sharing options...
calamity Posted October 19, 2014 Report Share Posted October 19, 2014 fragz how hard would it be to change this to a oil harvest script or a diamond harvest script you could easily convert this to harvest oil from whatever cursor target you choose this already mines gold/silver and gems....... wasn't aware there are diamonds in epoch for oil you could something like this fn_selfactions if (_cursorTarget isKindOf "Land_Ind_Oil_Pump_EP1") then { if (s_player_oil < 0) then { s_player_oil = player addAction [("<t color=""#39C1F3"">" + ("Fill Oil") +"</t>"),"custom\oil\oil.sqf",_cursorTarget,0,false,true,"", ""]; }; } else { player removeAction s_player_oil; s_player_oil = -1; }; custom\oil\oil.sqf if (DZE_ActionInProgress) exitWith {}; DZE_ActionInProgress = true; player removeAction s_player_oil; s_player_oil = -1; if ("ItemFuelBarrelEmpty" in magazines player) then { player playActionNow "medic"; player removeMagazine "ItemFuelBarrelEmpty"; player addMagazine "ItemOilBarrel"; cutText [format["You filled one barrel with oil!"], "PLAIN DOWN"]; uiSleep 3; } else { cutText [format["You need empty 50 gal fuel barrel"], "PLAIN DOWN"]; }; DZE_ActionInProgress = false; this is untested. this uses the Land_Ind_Oil_Pump_EP1 for the cursor_target, you can use oil rig, oil pump, or really anything.. just like jerrycan filling just changing the cursor_target and the remove empty can, add full can.... Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2014 Report Share Posted October 19, 2014 ah sweet will test in few and get back to u Link to comment Share on other sites More sharing options...
Gramps Posted November 2, 2014 Report Share Posted November 2, 2014 you can use this to automaticly build random weed fields with markers on any map, each restart: http://pastebin.com/juMsuJ1r why dont you just add my script to your tutorial, so users dont needs to go in the editor and build them, unless they really want to? I used your script but you have no instructions I copied made it weedfarms.sqf called it from init/server_functions.sqf and nothing spawns I have the weed in traders for sale you can buy or sell it but no fields..................what did I miss ? We used it before but had just one static field in same place but like this one. Do I have to setup markers or are they in the script? edit: think its that I called it weedfarms.sqf and it doesn't have an s hehe will see if that fixes it. another edit: No it doesn't make a difference unless it takes more then an hour to grow a pot field. Anyone have any ideas?????? FIXED: I had weedfarm on server side so when I moved to mission side the markers work............duh thanks for help Link to comment Share on other sites More sharing options...
calamity Posted November 3, 2014 Report Share Posted November 3, 2014 I used your script but you have no instructions I copied made it weedfarms.sqf called it from init/server_functions.sqf and nothing spawns I have the weed in traders for sale you can buy or sell it but no fields..................what did I miss ? We used it before but had just one static field in same place but like this one. Do I have to setup markers or are they in the script? edit: think its that I called it weedfarms.sqf and it doesn't have an s hehe will see if that fixes it. another edit: No it doesn't make a difference unless it takes more then an hour to grow a pot field. Anyone have any ideas?????? look in your arma2oaserver.RPT for this 7:40:58 "[Random_Weed_Farm]: waiting for BIS_fnc_findSafePos" 7:40:58 "[Random_Weed_Farm]: Function loaded ... Server Building 2 Weed Farm(s)" 7:40:58 "[Random_Weed_Farm]: Found Location for a farm (136089) [13639.6,16120.6] with 6 plants" 7:40:58 "[Random_Weed_Farm]: Found Location for a farm (128144) [12888.1,10613.6] with 4 plants" 7:40:58 "[Random_Weed_Farm]: Weed Farm(s) Done ... Broadcasting locations for clients" if you have that then the farms are spawning Link to comment Share on other sites More sharing options...
Gramps Posted November 5, 2014 Report Share Posted November 5, 2014 would proberbly be better if you changed it to check if players inventory is full instead ... tbh i think setting a limit to how many you can have in your inventory is a bit stupid, since you can just put some down and harvest more, however checking if inventory is full will make sure the player can not have more magazines than allowed in inventory. also i made a little somethin-somethin here for everyone who does not know how to use the editor or if you are just tierd of the same old field in the same old spot: this script will create a random amount of farms and plants each restart, plants are created "labyrinth style" so it will seem like its placed perfectly close no matter how many plants you want and where they end up, markers are automaticly set for each farm and there is an option to blacklist areas like tradecitys ... (as always in my scripts) there is a few settings you can customize a bit ... you can set how many farms you want max/min, how many plants you want max/min, how far from roads you want it to spawn and blacklisted areas where weed will not spawn (areas for cherno and napf is preset). have fun: http://pastebin.com/juMsuJ1r I would have fun except I put your script in my chernarus server and nothing spawns. I had a predone sqf with fiberplants in it that used to work in Epoch build but now using Overpochins and neither work. I have everything else working the knife to harvest right click and even put a mission in WAI but it doesn't spawn either.................see nothing in rpt Link to comment Share on other sites More sharing options...
Gramps Posted November 5, 2014 Report Share Posted November 5, 2014 I think adding his script to the mission pbo and calling it in the init.sqf is pretty standard stuff man. People who are stuck are just gonna have to do it the old fashioned way and read the comments. Kudos to you for detailing your specific problem and the solution you found, this will help anyone who is lost. Standard if it works problem is that his download has no instructions at pastebin or in his files. Everyone isn't as smart as u 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