Jump to content

help nedded to add new vechiles


karl1872

Recommended Posts

@karl1872

MAKE CUSTOM TRADERS ITEMS/PRICES   (add weapons)

Spoiler

1-Open your server_Traders.sqf  located in Mpmissions\instance_chernarus_11\

change your line by this:


#include "custom\CfgServerTrader\chernarus11.sqf"

2-Open your description.ext located in Mpmissions\instance_chernarus_11\

find "CfgServerTrader.hpp"  and Change your line by this:


#include "custom\CfgServerTrader\CfgServerTrader.hpp"

3-Open \@DayZ_Epoch\addons\dayz_code\Configs\  

and Drop "CfgServerTrader" folder into  Mpmissions\instance_chernarus_11\custom\

4-Open \@DayZ_Epoch\addons\dayz_code\system\mission\server_traders\

And Drop chernarus11.sqf into custom\CfgServerTrader\

5-  into : \MPMissions\DayZ_Epoch_11.Chernarus\custom\CfgServerTrader\Category\ 

you will see a lot of .hpp files.. modify from here your prices and items to sell and bought.

 

6-Now.. if u gonna add new traders agents... ( you already know how through arma2oa editor)...  you will need add this traders ids to \MPMissions\DayZ_Epoch_11.Chernarus\custom\CfgServerTrader\chernarus11.sqf

7-A: at very top add your traders id... for example lines in blue:

serverTraders = ["your trader id","your other trader id","RU_Functionary1",...rest of traders];

7B: now at very bottom of the same file complete this structure for your own trader menu


// custom trade
menu_Your Trader id = [
	[["category name",id]],
	[],
	"neutral"
];

original post:

Spoiler

 

 

About vehicles:

open: \@DayZ_Epoch_Server\addons\dayz_server\system\dynamic_vehicle.sqf

you will see a large list with all vehicles allowed. see lines in blue at the end as example to how add one vehicle

Spoiler

AllowedVehiclesList = [
    ["AH6X_DZ",_Ratio3],
    ["AN2_DZ",_Ratio1], //Green
    ["AN2_2_DZ",_Ratio1], //Red and white
    ["An2_2_TK_CIV_EP1_DZ",_Ratio1], //Green and white
    ["ArmoredSUV_PMC_DZE",_Ratio1],
    ["ATV_CZ_EP1",_Ratio3],
    ["ATV_US_EP1",_Ratio3],
    ["C130J_US_EP1_DZ",_Ratio1],
    ["car_hatchback",_Ratio3],
    ["car_sedan",_Ratio3],
    ["CH_47F_EP1_DZE",_Ratio1],
    ["CH53_DZE",_Ratio1],
    ["CSJ_GyroC",_Ratio3],
    ["CSJ_GyroCover",_Ratio3],
    ["CSJ_GyroP",_Ratio3],
    ["datsun1_civil_1_open_DZE",_Ratio3],
    ["datsun1_civil_2_covered_DZE",_Ratio3],
    ["datsun1_civil_3_open_DZE",_Ratio3],
    ["GAZ_Vodnik_DZE",_Ratio1],
    ["GAZ_Vodnik_MedEvac",_Ratio1],
    ["GLT_M300_LT",_Ratio3],
    ["GLT_M300_ST",_Ratio3],
    ["GNT_C185_DZ",_Ratio1],
    ["GNT_C185C_DZ",_Ratio1],
    ["GNT_C185R_DZ",_Ratio1],
    ["GNT_C185U_DZ",_Ratio1],
    ["hilux1_civil_1_open_DZE",_Ratio3],
    ["hilux1_civil_2_covered_DZE",_Ratio3],
    ["hilux1_civil_3_open_DZE",_Ratio3],
    ["HMMWV_Ambulance",_Ratio1],
    ["HMMWV_Ambulance_CZ_DES_EP1",_Ratio1],
    ["HMMWV_DES_EP1",_Ratio3],
    ["HMMWV_DZ",_Ratio3],
    ["HMMWV_M1035_DES_EP1",_Ratio1],
    ["HMMWV_M1151_M2_CZ_DES_EP1_DZE",_Ratio1],
    ["HMMWV_M998A2_SOV_DES_EP1_DZE",_Ratio1],
    ["Ikarus",_Ratio3],
    ["Ikarus_TK_CIV_EP1",_Ratio3],
    ["Kamaz_DZE",_Ratio3],
    ["KamazRefuel_DZ",_Ratio1],
    ["Lada1",_Ratio3],
    ["Lada1_TK_CIV_EP1",_Ratio3],
    ["Lada2",_Ratio3],
    ["Lada2_TK_CIV_EP1",_Ratio3],
    ["LadaLM",_Ratio3],
    ["LandRover_CZ_EP1",_Ratio3],
    ["LandRover_MG_TK_EP1_DZE",_Ratio1],
    ["LandRover_Special_CZ_EP1_DZE",_Ratio1],
    ["LandRover_TK_CIV_EP1",_Ratio3],
    ["M1030_US_DES_EP1",_Ratio3],
    ["MH6J_DZ",_Ratio3],
    ["Mi17_Civilian_DZ",_Ratio3],
    ["Mi17_DZE",_Ratio3],
    ["MMT_Civ",(_Ratio3 * 2)],
    ["MtvrRefuel_DES_EP1_DZ",_Ratio1],
    ["MTVR_DES_EP1",_Ratio3],
    ["MV22_DZ",_Ratio1],
    ["Offroad_DSHKM_Gue_DZE",_Ratio3],
    ["Old_bike_TK_INS_EP1",_Ratio3],
    ["Old_moto_TK_Civ_EP1",_Ratio3],
    ["Pickup_PK_GUE_DZE",_Ratio3],
    ["Pickup_PK_INS_DZE",_Ratio3],
    ["Pickup_PK_TK_GUE_EP1_DZE",_Ratio3],
    ["S1203_ambulance_EP1",_Ratio3],
    ["S1203_TK_CIV_EP1",_Ratio3],
    ["Skoda",_Ratio3],
    ["SkodaBlue",_Ratio3],
    ["SkodaGreen",_Ratio3],
    ["SkodaRed",_Ratio3],
    ["SUV_Blue",_Ratio1],
    ["SUV_Camo",_Ratio1],
    ["SUV_Charcoal",_Ratio1],
    ["SUV_Green",_Ratio1],
    ["SUV_Orange",_Ratio1],
    ["SUV_Pink",_Ratio1],
    ["SUV_Red",_Ratio1],
    ["SUV_Silver",_Ratio1],
    ["SUV_TK_CIV_EP1",_Ratio1],
    ["SUV_White",_Ratio1],
    ["SUV_Yellow",_Ratio1],
    ["tractor",_Ratio3],
    ["TT650_Civ",_Ratio3],
    ["TT650_Ins",_Ratio3],
    ["TT650_TK_CIV_EP1",_Ratio3],
    ["UAZ_CDF",_Ratio3],
    ["UAZ_INS",_Ratio3],
    ["UAZ_MG_TK_EP1_DZE",_Ratio3],
    ["UAZ_RU",_Ratio3],
    ["UAZ_Unarmed_TK_CIV_EP1",_Ratio3],
    ["UAZ_Unarmed_TK_EP1",_Ratio3],
    ["UAZ_Unarmed_UN_EP1",_Ratio3],
    ["UH1H_DZE",_Ratio2],
    ["UH1Y_DZE",_Ratio2],
    ["UH60M_EP1_DZE",_Ratio1],
    ["UralRefuel_TK_EP1_DZ",_Ratio1],
    ["Ural_CDF",_Ratio3],
    ["Ural_TK_CIV_EP1",_Ratio3],
    ["Ural_UN_EP1",_Ratio3],
    ["V3S_Open_TK_CIV_EP1",_Ratio3],
    ["V3S_Open_TK_EP1",_Ratio3],
    ["V3S_Refuel_TK_GUE_EP1_DZ",_Ratio1],
    ["VolhaLimo_TK_CIV_EP1",_Ratio3],
    ["Volha_1_TK_CIV_EP1",_Ratio3],
    ["Volha_2_TK_CIV_EP1",_Ratio3],

 ["M1A1_US_DES_EP1",_Ratio3],
    ["VWGolf",_Ratio3]
];

get vehicles ids from here: https://community.bistudio.com/wiki/ArmA_2_OA:_Vehicles           https://community.bistudio.com/wiki/ArmA_2:_Vehicles

now you need add this vehicle in one of your trader menu.

so open \MPMissions\DayZ_Epoch_11.Chernarus\custom\CfgServerTrader\Category\FriendlyUtilityVehicles.hpp

find.:

class UAZ_Unarmed_UN_EP1 {
		type = "trade_any_vehicle";
		buy[] = {8,"ItemGoldBar"};
		sell[] = {4,"ItemGoldBar"};
	};

below add:

class M1A1_US_DES_EP1 {
		type = "trade_any_vehicle";
		buy[] = {8,"ItemGoldBar"};
		sell[] = {4,"ItemGoldBar"};
	};

 

Link to comment
Share on other sites

1 minute ago, karl1872 said:

hi there , I looked in them files you said , mine does not have the file called      CfgServerTrader

 

its a folder located in \@DayZ_Epoch\addons\dayz_code\Configs\

and into this folder you will find the cfgServerTrader.hpp file

and all hpp files with traders categorys and items.

Link to comment
Share on other sites

You are opening the dayz_code.pbo inside the @dayz_epoch\addons folder with a pbo extractor? 

Are the rest of the cfgtrader files in there? Maybe gtx have moved the cfgservertrader.hpp file. 

Open Description.ext in your mission folder and near the bottom should be a #include line for cfgservertrader.hpp.  Follow the file path to find where it is. 

Link to comment
Share on other sites

  • 2 weeks later...
3 hours ago, Anhor said:

Did someone regonize that he spoke from a arma 2 server? No word from a epoch server ..........

 

On 13/4/2017 at 5:49 AM, karl1872 said:

I must be doing some thing wrong.  Because I can't find it . 

https://github.com/EpochModTeam/DayZ-Epoch/tree/master/SQF/dayz_code/Configs

CfgServerTrader
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
  • Discord

×
×
  • Create New...