Jump to content

[RELEASE] Bexs Bunker Trader


Bexs

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

Link to comment
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. 

Link to comment
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 ############################################
};
Link to comment
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. 

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

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
  • Advertisement
×
×
  • Create New...