DayZ
Trader
Reset Feb 22, 2019 @ 8:08am
Help With Creating Custom Trader
I am stuck on adding a custom trader i want to add a black market trader to my server per say. I want that trader to have certain guns you can buy and disable them in the other traders but im stuck. Ive got the person and the marker in the position i want but i dont know how to get the menu working for only certain guns buy there and others you cant buy at other traders. When i press B on that custom trader it just opens a Food menu with no categories and thats it im confused
< >
Showing 1-15 of 15 comments
Ephraus Mar 7, 2019 @ 4:33am 
You find a solution ?, if not i can help you.
Last edited by Ephraus; Mar 7, 2019 @ 4:33am
Reset Mar 7, 2019 @ 4:35am 
@Ephraus no i did not find a solution
Ephraus Mar 8, 2019 @ 7:55am 
We do it in our server you must modify 2 folders, in the trader folder on your server you have TraderObject and TraderConfig You must create on trader objet a new marker like this <TraderMarker> 5 // change the number to the last trader market you have +1
<TraderMarkerPosition> 8178.425293, 284.831787, 5970.206055 //position
<TraderMarkerSafezone> 80 //width of you safe zone

and traderConfig you must ad at the end of the last trader what do you want to sell like this
<Trader> Black market
<Category> Weapon
Glock18, W, 600, 150
mag_g18_30rnd, M, 50, 12
Taser, W, 1000, 250
Mag_taser M, 120, 30
gp_M249, W, 3000, 750
Mag_M249_Box200Rnd, M, 500, 125
PSG1, W, 2300, 700
Mag_psg_5Rnd, M, 250, 62
<Category> accessory
Rangefinder, *, 700, 175
KazuarOptic, *, 1200, 300
LongRangeOptic, *, 700, 175
PUScopeOptic, *, 1000, 250
<Category> Special Mag
Mag_taser, M, 120, 27
Mag_CBJ_50Rnd, M, 250, 62
Mag_vss_10Rnds_coupled, M, 600, 150
Mag_VAL_20Rnd_coupled, M, 500, 125
Mag_val_20Rnd_coupled_Tracer M, 500, 125
Mag_STANAGCoupled_30Rnd, M, 600, 150
Mag_rpk_40RndSpar, M, 500, 125
Last edited by Ephraus; Mar 12, 2019 @ 9:41am
Reset Mar 9, 2019 @ 7:04am 
Thanks so much it worked perfectly!
Animal451 Mar 11, 2019 @ 12:21pm 
That looks like a simple way to make a trader but mine doesn't seem to work? It lets me know when I enter or leave the safezone but presing "B" says theres no trader nearby?

I added this to the TraderObjects.txt:

// Devils Castle:

<TraderMarker> 6
<TraderMarkerPosition> 6886.30, 403.53, 11466.58
<TraderMarkerSafezone> 80

and

//Devils Castle:

<Object> SurvivorF_Irena
<ObjectPosition> 6886.30, 403.53, 11466.58
<ObjectOrientation> 135, 0, 0

<Object> Land_FuelStation_Build
<ObjectPosition> 6887.87, 403.53, 11466.0
<ObjectOrientation> -6, 0, 0


And this is a short example to what I added to the TraderConfig.txt:

<Trader> Black Market
<Category> Sniper Rifles
SVD, W, 2000, 1200

<Category> FIDOv Sniper Rifles
VSK94, W, 2200, 950
SVD_1963, W, 2200, 950
Ephraus Mar 12, 2019 @ 9:38am 
It seem good for me but i'm a novice in C++.
The survivor spawn ?
Last edited by Ephraus; Mar 12, 2019 @ 9:39am
Animal451 Mar 13, 2019 @ 10:52pm 
LOL, I'm learning as I go and know nothing about C++!

Anyway, yes the survivor spawns. I did a complete reinstall of the server to see if another mod was causing a problem but I still have the same issue. I only have Trader, RPCFramework, and Zomberry loaded for now.
Reset Mar 14, 2019 @ 4:55am 
@Animal451 add me on steam and message me and i will walk you through it
Ephraus Mar 14, 2019 @ 10:26am 
I don't know for zomberry but RPC work with trader without problem
Animal451 Mar 14, 2019 @ 6:59pm 
I removed the building and slightly moved the trader and survivor and it seems to work now?
TY11ORD Oct 8, 2020 @ 11:56pm 
Originally posted by Ephraus:
I don't know for zomberry but RPC work with trader without problem


CAN YOU please walk me through adding a black market trader please?
Ephraus Oct 15, 2020 @ 7:40am 
i'm not the better guy to explain that, ask the guy who create mod trader. I'll use trader long time ago.
Baby Yoda Mar 29, 2021 @ 5:00am 
its not working
Ephraus Mar 29, 2021 @ 8:03am 
I'll do a verification maybe they change something.
BLOODHOOD21 May 16, 2021 @ 6:47pm 
Originally posted by BlackGhost:
I am stuck on adding a custom trader i want to add a black market trader to my server per say. I want that trader to have certain guns you can buy and disable them in the other traders but im stuck. Ive got the person and the marker in the position i want but i dont know how to get the menu working for only certain guns buy there and others you cant buy at other traders. When i press B on that custom trader it just opens a Food menu with no categories and thats it im confused
< >
Showing 1-15 of 15 comments
Per page: 1530 50