Jump to content

Recommended Posts

hello all i made this crafting menu a while back all this dose make crafting quicker and kinda easier and i left some buttons free to customise ect

creddit to juandayz and theduke helping with some code and giving tips on arma 2 gui edditor

you will need click action script to make this work

this really easy to install got to you description.ext and add the two lines to the bottom

#include "Stormz\menu\STORMZ_CRAFT_MENU_DEFINES.hpp"
#include "Stormz\menu\STORMZ_CRAFT_MENU.hpp"

Step two got to MPMissions\your instance folder\overwrites\click_actions\

and open config.sqf add this line to DZE_CLICK_ACTIONS = [];

["ItemToolbox","Stormz Craft Menu","execVM 'Stormz\menu\open_menu.sqf';","true"]

like this DZE_CLICK_ACTIONS = [["ItemToolbox","Stormz Craft Menu","execVM 'Stormz\menu\open_menu.sqf';","true"]];

 


last thing to do is move the STORMZ folder to your instance folder and you are done have fun

>>>>DOWNLOAD<<<<

an image to see what it looks like

545645633.jpg

 

big thanks to MigSDev5 for making this better this have more items and build houses builds heils ect here his is added code 

 his epoch profile Mig

https://github.com/MigSDev5/StormzCrafting/commits?author=MigSDev5

 

Link to comment
Share on other sites

looks fine to me 

cinderblocks

Spoiler

private ["_hastools","_hasitems1","_hasitems2"];
_hastools = ["ItemToolbox"] call player_hasTools;
_hasitems1 = [["PartWoodLumber",1]] call player_checkItems;
_hasitems2 = [["PartWoodPlywood",1]] call player_checkItems;
_hasitems3 = [["ItemWoodWal1",1]] call player_checkItems;


if (call {_hastools} && {_hasitems1} && {_hasitems2} && {_hasitems3}) then {
_remove = [["PartWoodPlywood",1]] call player_removeItems;
_remove = [["PartWoodLumber",1]] call player_removeItems;
_remove = [["ItemWoodWall",1]] call player_removeItems;
sleep 2;
player addMagazine "ItemWoodWallLg";
createDialog "STORMZ_CRAFT_MENU";
};

 

woodwall LG

Spoiler

private ["_hastools","_hasitems1","_hasitems2"];
_hastools = ["ItemToolbox"] call player_hasTools;
_hasitems1 = [["PartWoodLumber",1]] call player_checkItems;
_hasitems2 = [["PartWoodPlywood",1]] call player_checkItems;
_hasitems3 = [["ItemWoodWal1",1]] call player_checkItems;


if (call {_hastools} && {_hasitems1} && {_hasitems2} && {_hasitems3}) then {
_remove = [["PartWoodPlywood",1]] call player_removeItems;
_remove = [["PartWoodLumber",1]] call player_removeItems;
_remove = [["ItemWoodWall",1]] call player_removeItems;
sleep 2;
player addMagazine "ItemWoodWallLg";
createDialog "STORMZ_CRAFT_MENU";
};

 

 

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 3 weeks later...

I just installed on my server it works but it dupes all the items. What I mean is I have the items I need to craft a doorway and I'm left with the doorway plus all the items I started with. Players can use this to dupe, any idea how I can fix that please? Just to add I think I might know why this is happening to me. I have a modified custom folder where I have set/up a script to refund building parts. I have no idea now what to do to resolve this, any help would be greatly appreciated as I quite like how the menu looks and works, would love to be able to use this. Thanks. 

Link to comment
Share on other sites

  • 3 weeks later...

ok all fixed and working now have fun

On 16/02/2018 at 2:44 PM, Aslan247 said:

I just installed on my server it works but it dupes all the items. What I mean is I have the items I need to craft a doorway and I'm left with the doorway plus all the items I started with. Players can use this to dupe, any idea how I can fix that please? Just to add I think I might know why this is happening to me. I have a modified custom folder where I have set/up a script to refund building parts. I have no idea now what to do to resolve this, any help would be greatly appreciated as I quite like how the menu looks and works, would love to be able to use this. Thanks. 

 

Link to comment
Share on other sites

  • 6 months later...

you can also add mozzi, for example

 

private ["_hastools","_hasitems1","_hasitems2"];
_hastools = ["ItemToolbox"] call player_hasTools;
_hasitems1 = [["PartVRotor"]] call player_checkItems;
_hasitems1 = [["PartEngine"]] call player_checkItems;
_hasitems1 = [["PartFueltank"]] call player_checkItems;

if (call {_hastools} && {_hasitems1}) then {
player removeMagazine "PartVRotor";
sleep 0.1;
player removeMagazine "PartEngine";
sleep 1;
player removeMagazine "PartFueltank";
sleep 1;
player addMagazine "mozzi";
createDialog "PzU_CRAFT_MENU";
 
};

player addMagazine "mozzi";  // how should I change that?

Link to comment
Share on other sites

12 hours ago, SKS.Goliath said:

you can also add mozzi, for example

 

private ["_hastools","_hasitems1","_hasitems2"];
_hastools = ["ItemToolbox"] call player_hasTools;
_hasitems1 = [["PartVRotor"]] call player_checkItems;
_hasitems1 = [["PartEngine"]] call player_checkItems;
_hasitems1 = [["PartFueltank"]] call player_checkItems;

if (call {_hastools} && {_hasitems1}) then {
player removeMagazine "PartVRotor";
sleep 0.1;
player removeMagazine "PartEngine";
sleep 1;
player removeMagazine "PartFueltank";
sleep 1;
player addMagazine "mozzi";
createDialog "PzU_CRAFT_MENU";
 
};

player addMagazine "mozzi";  // how should I change that?

try with this:


private ["_hastools","_hasitems1","_hasitems2","_hasitems3","_isInside","_dir","_location"];

_hastools = ["ItemToolbox"] call player_hasTools;
_hasitems1 = [["PartVRotor"]] call player_checkItems;
_hasitems2 = [["PartEngine"]] call player_checkItems;
_hasitems3 = [["PartFueltank"]] call player_checkItems;

_isInside = [player,"Building"] call fnc_isInsideBuilding;

if (_isInside) exitWith {titleText ["You must be outside to craft a mozzi !!", "PLAIN DOWN", 3];};

if (call {_hastools} && {_hasitems1} && {_hasitems2} && {_hasitems3}) then {
   
    {
	    player removeMagazine _x;
	} count ["PartVRotor","PartEngine","PartFueltank"];
	
	_dir = getdir player;
    _location = getPos player;
    _location = [(_location select 0)+8*sin(_dir),(_location select 1)+8*cos(_dir),0]; 
    
    _object = createVehicle ["CSJ_GyroC", _location, [], 0, "CAN_COLLIDE"];
    _object setVariable["ObjectUID","1",true];
	
	
}else{
    titleText ["You need Rotor, Engine, FuelTank and Toolbox to craft this!!", "PLAIN DOWN", 3];
};

 

Link to comment
Share on other sites

15 hours ago, spitfirez404 said:

Dang! Been working on this for days and still cant get any building objects to deploy so I can place them. All it is doing is taking the items out of gear! Anyone have any ideas here??

basically with this script, we can not use buildings or vehicles.

to be able to use them, many modifications would have to be made.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...