Jump to content
Bexs

[RELEASE] Bexs Bunker Trader

Recommended Posts

 
I finally got my bunker working on 1.0.4.2 so I want to release it now.

 

 

 

Start with mission.pbo (dayz_private_1.epoch.chernarus.pbo)

1. Put this in your mission.sqm in the class Vehicles (I am not sure why, but for me it don´t work to put the infoboards in server.pbo, so we do it in the mission.pbo, just look at the example mission.sqm)

	class Vehicles
	{
		items=2;
		class Item0
		{
			position[]={8849.4346,3.0517578e-005,2839.7505};
			azimut=-75.421852;
			id=102;
			side="EMPTY";
			vehicle="Infostand_1_EP1";
			skill=1;
		};
		class Item1
		{
			position[]={207.03339,0,12869.144};
			azimut=61.23473;
			id=101;
			side="EMPTY";
			vehicle="Infostand_2_EP1";
			skill=1;
		};
	};

2. Put this in your fn_selfActions.sqf (if you don´t have a custom one you need to make one) under this line:

_canDo = (!r_drag_sqf and !r_player_unconscious and !_onLadder);


//################################# Bexs Bunker ##########################################
if ( cursorTarget isKindOf "Infostand_1_EP1" && (player distance cursorTarget) < 2 ) then {
	if (s_player_bunker < 0) then {
    	s_player_bunker = player addaction[("<t color="#0000ff"">" + ("Go in Bunker") +"</t>"),"bunker\bunkerin.sqf","",5,false,true,"", "];
    };
} else {
	player removeAction s_player_bunker;
	s_player_bunker = -1;
};



if ( cursorTarget isKindOf "Infostand_2_EP1" && (player distance cursorTarget) < 2 ) then {
	if (s_player_bunkero < 0) then {
    	s_player_bunkero = player addaction[("<t color="#0000ff"">" + ("Let me out!") +"</t>"),"bunker\bunkerout.sqf","",5,false,true,"", "];
    };
} else {
	player removeAction s_player_bunkero;
	s_player_bunkero = -1;
};
//########################### Bexs Bunker stop ############################################

3. Put the Bunker folder in your mission.pbo

 

4. Now we edit the server_trader.sqf

Put this in the first line after the last trader

,"BAF_Soldier_Officer_MTP","BAF_Soldier_SniperH_MTP"

 

my whole line looks like this:
serverTraders = ["Tanny_PMC","Drake","BAF_Soldier_AAR_DDPM","US_Delta_Force_AR_EP1","US_Delta_Force_Medic_EP1","Soldier_MG_PKM_PMC","Soldier_MG_PMC","UN_CDF_Soldier_Crew_EP1","GUE_Soldier_1",
"Soldier_Sniper_PMC","UN_CDF_Soldier_Pilot_EP1","GUE_Soldier_3","BAF_Soldier_EN_MTP","UN_CDF_Soldier_Pilot_EP1","GUE_Worker2","Herrera_Light","Soldier_MG_PKM_PMC","Soldier_MG_PMC",
"GUE_Soldier_CO","RU_Damsel4","FR_Sykes","GUE_Villager4","TK_GUE_Warlord_EP1","GUE_Commander","GUE_Soldier_2","TK_GUE_Soldier_5_EP1","CIV_EuroWoman02_EP1","Dr_Annie_Baker_EP1",
"GUE_Soldier_Crew","Citizen3_EP1","ibr_lingorman6","ibr_lingorman6s","TK_CIV_Woman02_EP1","Damsel3","US_Delta_Force_Undercover_Takistani06_EP1",
"BAF_Soldier_Officer_MTP","BAF_Soldier_SniperH_MTP"];

and add this at the bottom (you need to transalte it)

// Bunker 
menu_BAF_Soldier_Officer_MTP = [
	[["Extra Food",694],["Währung",700]],
	[],
	"neutral"
];

// Bunker
menu_BAF_Soldier_SniperH_MTP = [
	[["Waffen",701],["Munition",702]],
	[],
	"neutral"
];

dayz_server.pbo

1. open server_functions.sqf and add at the bottom this:

[] execVM "\z\addons\dayz_server\buildings\bunker.sqf";

now put the buildings folder in the server.pbo

 

now the Traders are ready you can edit your database so they sell thinks, or you use my database extras:

INSERT INTO `Traders_DATA` (`id`, `item`, `qty`, `buy`, `sell`, `order`, `tid`, `afile`) VALUES
(7662, '["FoodCanBadguy",1]', 111, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7663, '["FoodCanCorn",1]', 110, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7664, '["FoodCanCurgon",1]', 111, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7665, '["FoodCanDemon",1]', 110, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7666, '["FoodCanFraggleos",1]', 110, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7667, '["FoodCanHerpy",1]', 110, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7668, '["FoodCanDerpy",1]', 100, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7669, '["FoodCanTylers",1]', 110, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7670, '["ItemSodaClays",1]', 110, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7671, '["ItemSodaSmasht",1]', 118, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7672, '["ItemSodaDrwaste",1]', 106, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7673, '["ItemSodaLemonade",1]', 110, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7674, '["ItemSodaLvg",1]', 110, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7675, '["ItemSodaMzly",1]', 101, '[1,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7676, '["ItemSodaRabbit",1]', 105, '[3,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7677, '["ItemSodaMtngreen",1]', 105, '[3,"ItemGoldBar",1]', '[2,"ItemSilverBar10oz",1]', 0, 694, 'trade_items'),
(7691, '["ItemTopaz",1]', 276, '[2,"ItemBriefcase100oz",1]', '[1,"ItemBriefcase100oz",1]', 0, 700, 'trade_items_old'),
(7692, '["ItemCitrine",1]', 275, '[2,"ItemTopaz",1]', '[1,"ItemTopaz",1]', 0, 700, 'trade_items_old'),
(7693, '["ItemAmethyst",1]', 266, '[2,"ItemCitrine",1]', '[1,"ItemCitrine",1]', 0, 700, 'trade_items_old'),
(7694, '["ItemEmerald",1]', 263, '[2,"ItemAmethyst",1]', '[1,"ItemAmethyst",1]', 0, 700, 'trade_items_old'),
(7695, '["ItemObsidian",1]', 254, '[2,"ItemEmerald",1]', '[1,"ItemEmerald",1]', 0, 700, 'trade_items_old'),
(7696, '["ItemRuby",1]', 253, '[2,"ItemObsidian",1]', '[1,"ItemObsidian",1]', 0, 700, 'trade_items_old'),
(7695, '["BAF_AS50_scoped",1]', 254, '[4,"ItemRuby",1]', '[1,"ItemRuby",1]', 0, 701, 'trade_weapons_old'),
(7696, '["DMR",1]', 254, '[5,"ItemGoldBar10oz",1]', '[1,"ItemGoldBar10oz",1]', 0, 701, 'trade_weapons'),
(7697, '["5Rnd_127x99_as50",1]', 254, '[5,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]', 0, 702, 'trade_items'),
(7698, '["20Rnd_762x51_DMR",1]', 254, '[3,"ItemSilverBar10oz",1]', '[5,"ItemSilverBar",1]', 0, 702, 'trade_items');

If you want to marke the entrance make a marker.sqf and call it in the init.sqf

//bunker
_bunker = createMarker ["_bunker ", [8849.4346, 2839.7505]];
_bunker setMarkerText "Bunker-Trader";
_bunker  setMarkerType "mil_dot";
_bunker  setMarkerColor "ColorBlack";
_bunker  = _bunker ;

examples are included (but don´t use them, just look at them when you are not sure where to put everything)

 

Sorry for my bad english, if you have any problems just ask me for support and I try my best to help.

 

I hope you enjoy it :)

 

 

Download

 

 

/applications/core/interface/file/attachment.php?id=436">Bunker.zip

Bunker.zip

Share this post


Link to post
Share on other sites

Very nice work!

 

Things I would be looking to include/change.

 

1. Make the overall bunker smaller and less hallway. 

2. Apply a client side colour correction when entering the bunker, making it darker if possible.

3. Beg the epoch team to create a cellar door model and add it so you can add them behind houses to function like this. 

Share this post


Link to post
Share on other sites

yeh the bunker script itself is amazing, and quite frankly, im gona take a look at this to see if i can put it on my napf server, im gona have to change it up for that though, will see if i can use a different building for mine

Share this post


Link to post
Share on other sites

Nice!!!

 

Is posible limit the join bunker only for UID's? 

 

Thanks

 

I think so

 

Just add

if ((getPlayerUID player) in ["0123456789","987654321"]) then {

before "//################################# Bexs Bunker ##########################################"

 

and

};

after "//########################### Bexs Bunker stop ############################################"

 

So something like that :

if ((getPlayerUID player) in ["0123456789","9876543210"]) then {
//################################# Bexs Bunker ##########################################
if ( cursorTarget isKindOf "Infostand_1_EP1" && (player distance cursorTarget) < 2 ) then {
	if (s_player_bunker < 0) then {
    	s_player_bunker = player addaction[("<t color=""#0000ff"">" + ("Go in Bunker") +"</t>"),"bunker\bunkerin.sqf","",5,false,true,"", ""];
    };
} else {
	player removeAction s_player_bunker;
	s_player_bunker = -1;
};



if ( cursorTarget isKindOf "Infostand_2_EP1" && (player distance cursorTarget) < 2 ) then {
	if (s_player_bunkero < 0) then {
    	s_player_bunkero = player addaction[("<t color=""#0000ff"">" + ("Let me out!") +"</t>"),"bunker\bunkerout.sqf","",5,false,true,"", ""];
    };
} else {
	player removeAction s_player_bunkero;
	s_player_bunkero = -1;
};
//########################### Bexs Bunker stop ############################################
};

Share this post


Link to post
Share on other sites

I hope you are not trying to just use the default version. ^^ The co-ordinates of the objects...yeah.

 

I don't see any reason it shouldn't work on another map providing you are modifying and adding the specified files in a similar manner. 

Share this post


Link to post
Share on other sites

well currently, the download link isnt working, so cant get the bunker.sqf file, i was trying just to get the class vehicles section done, with different co-ordinates but when i put it in i get wait for host, im not a scripter tbh

Share this post


Link to post
Share on other sites

Hi Bexs;

 

Thank you for your script.

 

I edited it strongely to fit it for Epoch Panthera.

I redone the bunker totaly and the trader too.

If you are all right i can post it on this section of the forum to let everyone use it too.

Or i can send it to you my files and let you post it.

Anyway thx again for your script

Share this post


Link to post
Share on other sites

I will release it if Bexs is ok.

 

My 2 traders are different.

The woman sell/buy foood/backpack/etc + ruby/ for a nice price.

The men sell/buy weapons + special weapon like sniper M107/MK17/etc in TWS and the ammo.

 

I added a ammocrate too into the bunker with 10 briefcases full of gold.

 

But the bunker is placed in an area where i placed my Panthera bandit camp.

Strongly defended by WAI.

Choper patrol/ land troops and para toops droped in some specific area of the camp.

The one who will enter the bunker will get a really nice place to seel buy but he will die a lot before able to reach inside of it.

More info and all files posted as soon as Bexs will reply to me

Share this post


Link to post
Share on other sites

I add a dropbox download link :)

@ Brutus: I would be great if you release the Epoch Panthera version, thank you.

@ chucky_xxl: I work on new Napf Trader citys (most is ready) after that I will work on a new bunker for Napf.

 

 

 

Share this post


Link to post
Share on other sites

 

@ Brutus: I would be great if you release the Epoch Panthera version, thank you.

 

Thank you Bexs.

 

That's done.

Here it's the direct link for Epoch Panthera bunker mod version with bandit camp Alpha-Zeta

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...