Jump to content

Recommended Posts

private ["_hastools","_hasitems1","_hasitems2"];
_hastools = ["ItemToolbox"] call player_hasTools;
_hasitems1 = [["ItemStone",6]] call player_checkItems;
_hasitems2 = [["MortarBucket",1]] call player_checkItems;
_hasitems3 = [["equip_brick",5]] call player_checkItems;


if (call {_hastools} && {_hasitems1} && {_hasitems2} && {_hasitems3}) then {
player removeMagazine "ItemStone";
sleep 0.1;
player removeMagazine "ItemStone";
sleep 0.1;
player removeMagazine "ItemStone";
sleep 0.1;
player removeMagazine "ItemStone";
sleep 0.1;
player removeMagazine "ItemStone";
sleep 0.1;
player removeMagazine "ItemStone";
sleep 0.1;
player removeMagazine "MortarBucket";
sleep 0.1;
player removeMagazine "equip_brick";
sleep 1;
player removeMagazine "equip_brick";
sleep 1;
player removeMagazine "equip_brick";
sleep 1;
player removeMagazine "equip_brick";
sleep 1;
player removeMagazine "equip_brick";
sleep 1;
player addMagazine "Castle_Bergfrit";
createDialog "STORMZ_CRAFT_MENU";
 
};

Got six of these modified to build those objects! :) 

Link to comment
Share on other sites

12 hours ago, spitfirez404 said:

Mig! these are the files to build those Items I sent you lmao, Now How are you getting them to be able to be placed and built is what I'm trying to do on my end?? Can  you send me a copy of the files that your using to make that work?

I took the class names, I did not use your files :wink:

here is the contents of one of the files:

Spoiler

private ["_hastools","_hasitems1","_hasitems2"];

_hastools = ["ItemToolbox"] call player_hasTools;
_hasitems1 = [["ItemStone",6]] call player_checkItems;
_hasitems2 = [["MortarBucket",1]] call player_checkItems;
_hasitems3 = [["equip_brick",5]] call player_checkItems;


if (call {_hastools} && {_hasitems1} && {_hasitems2} && {_hasitems3}) then {

    [
        "Land_A_Castle_Wall1_20",
	    [
	        ["ItemStone",6],
	        ["MortarBucket",1],
			["equip_brick",5]
	    ],
		[0,20,8.5]
    ] call stormz_build;
};

 

 

Link to comment
Share on other sites

8 hours ago, Mig said:

I took the class names, I did not use your files :wink:

here is the contents of one of the files:

  Reveal hidden contents


private ["_hastools","_hasitems1","_hasitems2"];

_hastools = ["ItemToolbox"] call player_hasTools;
_hasitems1 = [["ItemStone",6]] call player_checkItems;
_hasitems2 = [["MortarBucket",1]] call player_checkItems;
_hasitems3 = [["equip_brick",5]] call player_checkItems;


if (call {_hastools} && {_hasitems1} && {_hasitems2} && {_hasitems3}) then {

    [
        "Land_A_Castle_Wall1_20",
	    [
	        ["ItemStone",6],
	        ["MortarBucket",1],
			["equip_brick",5]
	    ],
		[0,20,8.5]
    ] call stormz_build;
};

 

 

I wasn't saying you did my friend :) I will load this up and let you know, Thanks m8 

Link to comment
Share on other sites

  • 3 months later...
  • 2 months later...
On 12/30/2018 at 4:53 PM, Syn said:

How to change the color of the buttons?

in   STORMZ_CRAFT_MENU.hpp.hpp file 

change this colorBackground[] = {1,0,0,0.5};   first three numbers are red green blue in the order last one is how clear want it 

change it to strong green and not clear at all..  like so      colorBackground[] = {0,1,0,1};

 

Link to comment
Share on other sites

  • 6 months later...
  • 9 months later...
On 10/19/2019 at 12:48 PM, Khyron said:

is there a way to charge money for buildings instead of items?

Try this!

 

private ["_cost","_wealth"];

_cost = 700000; //Change your cost here
_wealth = player getVariable[Z_moneyVariable, 0];

if (_wealth < _cost) then {
    cutText[format["You need %1 coins to build!",_cost], "PLAIN DOWN"];
} else {
    player setVariable[Z_moneyVariable, (_wealth - _cost), true];

    ] call stormz_build;
};

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...