FragZ Posted May 25, 2014 Report Share Posted May 25, 2014 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/juMsuJ1rFinally, 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. freakystyle, HisShadow, Airwaves Man and 7 others 10 Link to comment Share on other sites More sharing options...
NateDaBeast Posted May 25, 2014 Report Share Posted May 25, 2014 This works for panthera correct. Link to comment Share on other sites More sharing options...
FragZ Posted May 25, 2014 Author Report Share Posted May 25, 2014 This works for panthera correct. if you change the positions and stuff needed to be changed to fit it it should work yes. This is working on my Chernarus server :) Link to comment Share on other sites More sharing options...
Sukkaed Posted May 25, 2014 Report Share Posted May 25, 2014 Add this right above while {true} do in smokeshit.sqf :) player playMoveNow "ActsPercMstpSnonWpstDnon_sceneBardak01"; Link to comment Share on other sites More sharing options...
NateDaBeast Posted May 25, 2014 Report Share Posted May 25, 2014 Why do that ? Link to comment Share on other sites More sharing options...
FragZ Posted May 25, 2014 Author Report Share Posted May 25, 2014 Add this right above while {true} do in smokeshit.sqf :) player playMoveNow "ActsPercMstpSnonWpstDnon_sceneBardak01"; That would be something funny to add but I want players to be able to walk and try to play high. Will add it in optionnal :) Link to comment Share on other sites More sharing options...
RedSwag Posted May 26, 2014 Report Share Posted May 26, 2014 Hey, I can't find the 'fiberplant' in editor. I'm not quite sure how it is possible if you can't place the plants. Link to comment Share on other sites More sharing options...
Brutus Posted May 26, 2014 Report Share Posted May 26, 2014 Hi, it's nice but, i get some trouble to instal the maca right click option. It'snt clear for me how to install it. Maybe you can resume clearly how to install it? Link to comment Share on other sites More sharing options...
Brutus Posted May 26, 2014 Report Share Posted May 26, 2014 Hey, I can't find the 'fiberplant' in editor. I'm not quite sure how it is possible if you can't place the plants. you can add the fiber plant by editing your beidi/mission. Place an object trought the editor, save, go to your arma profil and edit the object name by replacing it with the fiberplant on both beidi and mission... relaunch your editr and the plant will be there Link to comment Share on other sites More sharing options...
RedSwag Posted May 26, 2014 Report Share Posted May 26, 2014 Nice I'll try that Link to comment Share on other sites More sharing options...
Gr8 Posted May 27, 2014 Report Share Posted May 27, 2014 The server doesnt start up after i add in this script. RPT ERROR: Obsolete class Animations defined in bin\config.bin/RscCompass/ Obsolete class Animations defined in bin\config.bin/RscWatch/ Smoke.sqf /* by: http://infiSTAR.de || http://DayzAntiHack.com */ [] 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;}; }; }; Link to comment Share on other sites More sharing options...
Jantr Posted May 27, 2014 Report Share Posted May 27, 2014 What is the database group for ItemKiloHemp? Link to comment Share on other sites More sharing options...
Gr8 Posted May 27, 2014 Report Share Posted May 27, 2014 You first need to make a TID named drugs Then add ItemKiloHemp in traders_data and link it to the drugs Link to comment Share on other sites More sharing options...
FragZ Posted May 27, 2014 Author Report Share Posted May 27, 2014 You first need to make a TID named drugs Then add ItemKiloHemp in traders_data and link it to the drugs Also add ItemKiloHemp to the trader items as well. The server doesnt start up after i add in this script. RPT ERROR: Obsolete class Animations defined in bin\config.bin/RscCompass/ Obsolete class Animations defined in bin\config.bin/RscWatch/ Smoke.sqf /* by: http://infiSTAR.de || http://DayzAntiHack.com */ [] 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;}; }; }; This RPT error doesn't have anything to do with the script? Link to comment Share on other sites More sharing options...
VentZer0 Posted May 27, 2014 Report Share Posted May 27, 2014 Why do that ? because smoke weed every day :D Link to comment Share on other sites More sharing options...
Gr8 Posted May 27, 2014 Report Share Posted May 27, 2014 This RPT error doesn't have anything to do with the script? Sorry, Any ideas why its not working? When i take the Smoking part out, it works. But thats the main part of this script :( Link to comment Share on other sites More sharing options...
FragZ Posted May 27, 2014 Author Report Share Posted May 27, 2014 Sorry, Any ideas why its not working? When i take the Smoking part out, it works. But thats the main part of this script :( Have you followed steps correctly? Make sure you didint make typos or something... Also give me the whole RPT on pastebin I will take a look at it. Link to comment Share on other sites More sharing options...
Stollenwerk Posted May 28, 2014 Report Share Posted May 28, 2014 Executing the extra_rc.hpp in the description.ext gives me this RPT error (waiting for host, after restart): ErrorMessage: File mpmissions\__cur_mp.Napf\description.ext, line 152: /ExtraRc/: Missing '}' It seems the extra_rc.hpp cannot be found, which is odd... :blink: #include "custom\extra_rc.hpp" extra_rc.hpp is saved to the custom folder! Another thing...on second thought harvesting hemp is already implemented in Epoch. As you can see I use map Napf and you can find hemp in some greenhouses, you can harvest it with a knife and gain 1kg hemp. So in the end I only want to use the smokeshit.sqf, but I'm not sure if this would be right? Not sure about the amount of }; at the end. class ExtraRc { class ItemKiloHemp { class smokeweed { text = "Smoke the shit"; script = "execVM 'custom\smokeshit.sqf'"; }; }; Link to comment Share on other sites More sharing options...
FragZ Posted May 29, 2014 Author Report Share Posted May 29, 2014 Executing the extra_rc.hpp in the description.ext gives me this RPT error (waiting for host, after restart): ErrorMessage: File mpmissions\__cur_mp.Napf\description.ext, line 152: /ExtraRc/: Missing '}' It seems the extra_rc.hpp cannot be found, which is odd... :blink: #include "custom\extra_rc.hpp" extra_rc.hpp is saved to the custom folder! Another thing...on second thought harvesting hemp is already implemented in Epoch. As you can see I use map Napf and you can find hemp in some greenhouses, you can harvest it with a knife and gain 1kg hemp. So in the end I only want to use the smokeshit.sqf, but I'm not sure if this would be right? Not sure about the amount of }; at the end. class ExtraRc { class ItemKiloHemp { class smokeweed { text = "Smoke the shit"; script = "execVM 'custom\smokeshit.sqf'"; }; }; You are missing a }... Would be like this: class ItemKiloHemp { class smokeweed { text = "Smoke the shit"; script = "execVM 'scripts\smokeshit.sqf'"; }; }; The last closing bracket is for the whole extra_rcc.hpp file. SO would be like this 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'"; }; }; }; And fiberplant are not added to Chernarus so I made this tut for those who want it on other maps :) Link to comment Share on other sites More sharing options...
Stollenwerk Posted May 29, 2014 Report Share Posted May 29, 2014 Thanks, but the problem with the missing file still exists: ErrorMessage: File mpmissions\__cur_mp.Napf\description.ext, line 152: /ExtraRc/: Missing '}' No idea about this? Link to comment Share on other sites More sharing options...
Brutus Posted May 29, 2014 Report Share Posted May 29, 2014 Hi, i v got a small problem. When i try to harvest with the knife i receve the "You need to be near the weed plants in order to gather" but i'm stucked on the fiberplant When i try to smoke it (after bought it from trader because i cannot harvest it) i dont get the option to smoke juste the option to craft the hemp kilo in a bandage. <Any help? BlackPlague_81st 1 Link to comment Share on other sites More sharing options...
Gr8 Posted May 29, 2014 Report Share Posted May 29, 2014 You should post a patebin of your description.ext Link to comment Share on other sites More sharing options...
Brutus Posted May 29, 2014 Report Share Posted May 29, 2014 respawn = "BASE"; respawndelay = 5; onLoadMission="Les survivants de DayZ sur Epoch NAPF"; OnLoadIntro = "www.dayz-survivants.xooit.be"; OnLoadIntroTime = False; OnLoadMissionTime = False; disabledAI = true; disableChannels[]={0,2,3,6}; enableItemsDropping=0; briefing = 0; debriefing = 0; onPauseScript = ""; loadScreen = "napf.jpg";// splash class Header { gameType = COOP; //DM, Team, Coop, ... minPlayers = 1; //min # of players the mission supports maxPlayers = 100; //Max # of players the mission supports }; aiKills = 1; diagRadio = 1; diagHit = 1; class RscText { type = 0; idc = -1; x = 0; y = 0; h = 0.037; w = 0.3; style = 0x100; font = Zeppelin32; SizeEx = 0.03921; colorText[] = {1,1,1,1}; colorBackground[] = {0, 0, 0, 0}; linespacing = 1; }; class RscPicture { access=0; type=0; idc=-1; style=48; colorBackground[]={0,0,0,0}; colorText[]={1,1,1,1}; font="TahomaB"; sizeEx=0; lineSpacing=0; text=""; }; class RscLoadingText : RscText { style = 2; x = 0.323532; y = 0.666672; w = 0.352944; h = 0.039216; sizeEx = 0.03921; colorText[] = {0.543,0.5742,0.4102,1.0}; }; class RscProgress { x = 0.344; y = 0.619; w = 0.313726; h = 0.0261438; texture = "\ca\ui\data\loadscreen_progressbar_ca.paa"; colorFrame[] = {0,0,0,0}; colorBar[] = {1,1,1,1}; }; class RscProgressNotFreeze { idc = -1; type = 45; style = 0; x = 0.022059; y = 0.911772; w = 0.029412; h = 0.039216; texture = "#(argb,8,8,3)color(0,0,0,0)"; }; // // the loading screen itself // class DayZ_loadingScreen { idd = -1; duration = 10e10; fadein = 0; fadeout = 0; name = "loading screen"; class controlsBackground { class blackBG : RscText { x = safezoneX; y = safezoneY; w = safezoneW; h = safezoneH; text = ""; colorText[] = {0,0,0,0}; colorBackground[] = {0,0,0,1}; }; /* class nicePic : RscPicture { style = 48 + 0x800; // ST_PICTURE + ST_KEEP_ASPECT_RATIO x = safezoneX + safezoneW/2 - 0.25; y = safezoneY + safezoneH/2 - 0.2; w = 0.5; h = 0.4; text = "img\nicePic.paa"; }; */ }; class controls { class Title1 : RscLoadingText { text = "$STR_LOADING"; // "Loading" text in the middle of the screen }; class CA_Progress : RscProgress // progress bar, has to have idc 104 { idc = 104; type = 8; // CT_PROGRESS style = 0; // ST_SINGLE texture = "\ca\ui\data\loadscreen_progressbar_ca.paa"; }; class CA_Progress2 : RscProgressNotFreeze // progress bar that will go reverse { idc = 103; }; class Name2: RscText // the text on the top-left { idc = 101; x = 0.05; y = 0.029412; w = 0.9; h = 0.04902; text = ""; sizeEx = 0.05; colorText[] = {0.543,0.5742,0.4102,1.0}; }; }; }; // Epoch Admin Tools #include "admintools\dialog.hpp" // Epoch snaping #include "custom\snap_build\points.hpp" //weed #include "custom\extra_rc.hpp" Here it's my description file Link to comment Share on other sites More sharing options...
Gr8 Posted May 29, 2014 Report Share Posted May 29, 2014 You have linked your extra_rc.hpp right, post your extra_rc.hpp. there is gotta be a problem with that. Your extra_rc.hpp should be inside a folder called custom or it will not work in your case Link to comment Share on other sites More sharing options...
Brutus Posted May 29, 2014 Report Share Posted May 29, 2014 class ExtraRc { class ItemKnife { class farmhemp { text = "Recoltez la ganja"; script = "execVM 'Scripts\hemp.sqf'"; }; }; class ItemKiloHemp { class smokeweed { text = "Fumez votre bedo"; script = "execVM 'Scripts\smokeshit.sqf'"; }; }; }; here it's my extra_rc.hpp file place on mission.pbo/custom folder 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