Jump to content

+[Release]+[Alchemy Lab]


juandayz

Recommended Posts

***ALLOW PLAYERS TO TRY TO CRAFT EMERALDS USING AN ALCHEMY LAB WITH A SPECIFIC TRADER***
                   ...Players will need have a ItemSledge && Goldbar && SilverBar in inventory...
 

1-Create this sqf:

alchemylab.sqf  ( put into MPMISSIONS/YOURINSTANCE/CUSTOM/ ).

 

  Reveal hidden contents

NOTE: if u wanna change the items to allow the script (change _hasitem and _remove variables and  in if (_rand <= 200 && _rand > 121) then { you also will need change the two player addMagazine )

Also you will need a sledge but you can change it by another tool in _hasSledge variable.

 

 

2-Now open your server_traders_cherno_11.sqf ( for coins users )  or server_traders.sqf ( for goldbars users)  and choose one of the traders IDs.

The trader you pick will have the option to execute the alchemy lab

in this example i will choose RU_Functionary1

3-In your CUSTOM fn_selfactions.sqf:

find:

if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "Plastic_Pole_EP1_DZ")) then {

above paste:

if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "RU_Functionary1")) then {
	if (s_player_alchemylab < 0) then {
	s_player_alchemylab = player addAction ["<t color='#ff5200'>AlchemyLab</t>", "custom\alchemylab.sqf", [], 5, false];
	};
	} else {
	player removeAction s_player_alchemylab;
    s_player_alchemylab = -1;
	};

4-Near of the end of fn_selfactions:

Find lines in grey and add only lines in blue.

  Reveal hidden contents

 

Link to comment
Share on other sites

@oldmatechoc  haha see here you have the code for heal players
 with a cost in coins...

  Reveal hidden contents

 

Link to comment
Share on other sites

@oldmatechoc

this is a lil and quick quest and answer ..with traders....  trader ask you something.. you choose your answer.. at least you can win or not a random reward.

questlist.sqf  (can use the same way to execute as in alchemylab)

  Reveal hidden contents

 

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...