Jump to content
  • 0

Adding traders to custom safe zones.


liamR

Question

Hey people,

ive been looking all round the web trying to find videos on how to add traders to my own safezone. All of these videos are outdated and have different file directory's so its impossible to follow, is there anyone who knows how to do this?

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
30 minutes ago, liamR said:

Hey people,

ive been looking all round the web trying to find videos on how to add traders to my own safezone. All of these videos are outdated and have different file directory's so its impossible to follow, is there anyone who knows how to do this?

open your arma2oa editor 3D. ( i guess you know how to use it) place your trader save the file. open the mission saved. take his class name, his position coords and direction.

Now:

open ...\@DayZ_Epoch_Server\addons\dayz_server\traders\chernarus11.sqf

Spoiler

[
    ["Class NAME HERE",[Trader,coords,here],setdir here],
    ["Profiteer4",[11449.5,11341,0],34.5259],
    ["RU_Villager3",[7996.1,2899.08,0.669153],86.8589],
    ["Worker3",[4041.62,11668.9,0],24.9128],
    ["CIV_EuroMan01_EP1",[4064.07,11680.1,0],231.007],
    ["RU_WorkWoman5",[4071.99,11676.7,0],206.817],
    ["TK_GUE_Soldier_5_EP1",[4054.22,11664.7,0],62.9967],
    ["CIV_EuroMan02_EP1",[4058.05,11678.7,0],89.8909],
    ["Dr_Hladik_EP1",[6314.1,7791.53,0],217.326],
    ["RU_Functionary1",[12946.3,12766.6,0],194.242],
    ["Woodlander1",[11471.2,11361.2,3.05176e-005],250.154],
    ["RU_WorkWoman1",[11463.9,11351.7,0],261.277],
    ["Rocker4",[11465.5,11354.5,0],310.039],
    ["RU_Citizen3",[11462.3,11366,0],125.74],
    ["Dr_Annie_Baker_EP1",[11472,11370.6,0],208.205],
    ["TK_CIV_Takistani04_EP1",[6321,7794.45,-0.276764],359.642],
    ["RU_Citizen4",[13530.9,6356.74,0],102.758],
    ["RU_Citizen1",[4360.62,2260.98,0],196.699],
    ["Pilot_EP1",[6317.05,7797.92,-0.276825],104.175],
    ["Rita_Ensler_EP1",[6310.78,7794.51,0],245.567],
    ["Worker2",[12061.6,12636.3,0.0569916],19.9271],
    ["GUE_Soldier_MG",[1623.17,7797.79,0],274.599],
    ["RU_Profiteer4",[6300.31,7800.59,0],310.641],
    ["Woodlander3",[6317.99,7789.33,0],229.209],
    ["HouseWife1",[13468.4,5439.58,2.55675],268.259],
    ["Doctor",[4059.44,11660.4,0],24.2669],
    ["GUE_Woodlander2",[6321.04,7781.03,0],9.66389]
] call server_spawnTraders;

Now if u wanna give this trader a items menu to sell/bought..

take a look here:

Note: if ure using coins you have done 80% of the work in the guode from above. Just open your chernarus11.sqf (the one where all traders are defined with categorys to sell and bought and add your own)

Link to comment
Share on other sites

  • 0
2 hours ago, liamR said:

Umm, thankyou for the reply, i dont know what arma2oa 3D editor is, and also cant i just duplicate a trader and put it where ever i want to save time, instead of putting each item into the trader? @jaundayz

Yes you can do it. But you will learn use arma2o 3d editor to place the ia .. go to themain menu of the game and press ctrl +e to open the editor 3d

Link to comment
Share on other sites

  • 0
Just now, liamR said:

Hey, i have already put the AI in the game but im now struggling with adding the menu bro, any ideas for that? thanks in advance

ok, are you using coins?

Can you give me the ai class name , his coords and his setdir values?

Link to comment
Share on other sites

  • 0

    ["BanditW1_DZ",[1611.27,2365.28,0],284.235],
    ["BanditW1_DZ",[1611.13,2374.04,0],268.871],
    ["BanditW1_DZ",[1601.21,2382.29,0],222.949],
    ["BanditW1_DZ",[1588.95,2387.04,0],158.501],
    ["BanditW1_DZ",[1580.48,2379.43,0],106.239],

So i have these set up rn,

Link to comment
Share on other sites

  • 0
Just now, liamR said:

    ["BanditW1_DZ",[1611.27,2365.28,0],284.235],
    ["BanditW1_DZ",[1611.13,2374.04,0],268.871],
    ["BanditW1_DZ",[1601.21,2382.29,0],222.949],
    ["BanditW1_DZ",[1588.95,2387.04,0],158.501],
    ["BanditW1_DZ",[1580.48,2379.43,0],106.239],

So i have these set up rn,

are you using coins mod?

Link to comment
Share on other sites

  • 0

1-open ...\MPMissions\DayZ_Epoch_1.Chernarus\scripts\traders\server_traders.sqf

at top add lines in blue:

Spoiler

serverTraders = ["BanditW1_DZ ","Tanny_PMC","Profiteer4","Dr_Hladik_EP1"];

bellow paste:

//Custom Vendor
menu_BanditW1_DZ = [
    [["Attachments",693],["Ammunition",478],["Currency and gems",1100],["Clothes",476],["Weapons",477]],
    [],
    "neutral"
];

changes for your owns categorys.

Recomend you change the trader class.. cuz if i remember well BanditW1_Dz is also used as character for players.. then if someone choose this model gonna have a trader menu over his body.

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