Jump to content

[Release] Use a Trader to get a mission


juandayz

Recommended Posts

U can pick any trader and add option to get a mission.

*Mission spawn 4 diferents random crates whit 4 diferents random locations for each crate. once per time.

*Mission have a item requiere to start

*Mission have a 20 min after same player call it again.

*Players needs to find the crate in 15 min or this crate will be deleted.

INSTALL:

1-copy  any kind of trader ID from your server_trader.sqf or server_traders_cherno_11.sqf for coins system. for example : Dr_Annie_Baker_EP1

2-open your custom fn_selfaction.sqf and add this add very bottom:

  Reveal hidden contents

3-Create a new sqf file save as "quest.sqf " into  custom\quest\      folder    and paste this inside:

  Reveal hidden contents

*Now launch your server, go infront of Dr_Annie_Baker_EP1 for this example , use scroll menu and pick "ASK FOR MISSIONS".   done.

 

Configs in quest.sqf :

  Reveal hidden contents

 

Link to comment
Share on other sites

Heres another way to call the carepackage of "matt L"

also u can use to call this traders missions if u want.

**Allow players to repair the radio of HMMWVWrecks  and call a supply air drop.

in bottom of fn_selfactions.sqf

  Reveal hidden contents

into your custom\radio\   folder  create a new sqf, call it  suplyradio.sqf and paste inside:

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 3 weeks later...

using the same HMMVWreck .. this allow players to search items in the hummvie wreck trunk.

*Create a sqf called "wreck.sqf" and drop it into Mpmissions\yourinstance\custom\script\

wreck.sqf

  Reveal hidden contents

at bottom of fn_selfaction.sqf

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 4 months later...
  On 9/30/2016 at 11:26 AM, Shak said:

Great idea Juan.

The only issue I have with the script is that it takes a while to remove the item from a player's gear, IE you can get 2 missions for just one item.

Any way to make it take the required item faster to eliminate that issue?

Expand  

mmm really?

cuz remove item happend very early see:

if (_neartalker && _hasitem) then {
    lastuse = time;
    player removeMagazine "FoodchickenCooked";

 

and also script have a restrict time to use again

if(_Time < _LastUsedTime) exitWith {

 

 

i just can say you... remove sleep 5; from here  (i dnt know why i put it XD)

if (!_hasitem) exitWith {cutText [format["I like chickens giveme a FoodchickenCooked and we can talk"], "PLAIN DOWN"];};
sleep 5; //remove me

 

hope its works

 

Link to comment
Share on other sites

@Shak

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 10/3/2016 at 7:10 AM, Shak said:

@juandayz, is there some code missing from that? The loot lists?

Expand  

under _loot_box  variable  put:

  Reveal hidden contents

 

Link to comment
Share on other sites

here u got:  maybe u can use this base to write your remake/update of it. :)

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 5/8/2016 at 10:16 PM, juandayz said:

using the same HMMVWreck .. this allow players to search items in the hummvie wreck trunk.

*Create a sqf called "wreck.sqf" and drop it into Mpmissions\yourinstance\custom\script\

wreck.sqf

  Reveal hidden contents

at bottom of fn_selfaction.sqf

  Reveal hidden contents

 

Expand  

juan, when I try this when I log onto my server the scroll commands to unlock, repair, salvage..etc on the vehicles does not work,only thing that comes up is gear. I have tried placing this at the bottom of my fn_selfactions and right above the self action call for your quest script. Any idea what might be causing that?

Link to comment
Share on other sites

  On 10/4/2016 at 2:56 AM, lonewolfgaming said:

juan, when I try this when I log onto my server the scroll commands to unlock, repair, salvage..etc on the vehicles does not work,only thing that comes up is gear. I have tried placing this at the bottom of my fn_selfactions and right above the self action call for your quest script. Any idea what might be causing that?

Expand  

wreck.sqf (mpmissions\your instance\custom\scripts\wreck\)

  Reveal hidden contents

now in fn_selfaction (custom).

find:

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

above paste:

///wreck trunk

if (_canDo && (speed player <= 1) && (_cursorTarget isKindOf "HMMWVWreck")) then {
if (s_player_wreck< 0) then {
    s_player_wreck = player addAction ["<t color='#ff5200'>OPEN TRUNK</t>", "custom\scripts\wreck\wreck.sqf", [], 5, false];
    };
    } else {
    player removeAction s_player_wreck;
    s_player_wreck = -1;
    };

////////////

now near of the end (only lines in blue)

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