Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Wayz-5b4547ac6073cc5d

I need help for trader mod

Recommended Posts

Just edit the TraderConfig.txt file in your trader folder on the server. I usually just add a new category for the modded items to an existing trader. Like Base Building stuff to the tools trader:

<Trader> Misc Trader               // This trader comes as default with the trader mod.     
    <Category> Tools (small)                    
        Binoculars,                                *,        0,        0        
        CanOpener,                                 *,        0,        0
        ChernarusMap,                              *,        0,        0
        CombatKnife,                               *,        0,        0
        Compass,                                   *,        0,        0
        ...
        ...
        more standard items here
        ...
        ...
      
     <Category> BaseBuildingPlus               // Just add a new category called whatever you want.
        BBP_Land_Claim_FlagKit,                     *,		0,		0
        BBP_Blueprint,                              *,		0,		0
        BBP_Workbench,                              *,		0,		0
        BBP_T1_WallKit,                             *,		0,		0
        BBP_T1_Wall_HalfKit,                        *,		0,		0

Obviously adjust the prices to your liking. I have set mine to 0 since I just run a test server.

Hopefully the mod creator, or someone in the comment section of the mod, has posted already done trader lists for you to just paste into this file. If not, you're just going to have to add them yourself using the object names most likely posted by the mod creator on the mod page.

Here is a description of the three columns following the object name of the modded item. It's straight from the file itself:

 

// Quantity:  * means max value; Quantity V means Vehicle; Quantity VNK means Vehicle without Key; Quantity M means Magazine; Quantity W means Weapon; Quantity S means Steak Meat; Quantity K means Key Duplication

// Sellvalue:  -1 means it can not be sold

// Buyvalue:  -1 means it can not be bought

 

Vehicles are a bit more work to.

Vehicles are added to the vehicle trader in the same file. Well, they can be added to whichever trader I suppose, but that's what I did.

<Trader> Vehicles Trader    
     <Category> Vehicles    
        CivilianSedan,                                VNK,    0,        0 
        CivilianSedan_Black,                          VNK,    0,        0
        ...
        ...
        more standard vehicles
        ...
        ...
        Kubelwagen,                                   VNK,    0,        0   // Modded vehicle

Not sure if you *have to* add the vehicle parts for the modded vehicle to the section below, but why not. It's still the same file and just below the section in the above code.

    <Category> Vehicle Parts    
        HeadlightH7_Box,                   *,        0,        0
        SparkPlug,                         *,        0,        0
        EngineOil,                         *,        0,        0
        ...
        ...
        ...
        Kubelwagen_dver_1_1,               *,       0,      0
        Kubelwagen_dver_1_2,               *,       0,      0
        Kubelwagen_dver_2_1,               *,       0,      0
        Kubelwagen_dver_2_2,               *,       0,      0
        Kubelwagen_koleso,                 *,       0,      0

Next you have to add the modded vehicle to the file TraderVehicleParts.txt in the same directory. This file contains sections named the same as the vehicle class name in the previous file, and each section contains the vehicle parts the vehicle will spawn with. Preferably all of them.

<VehicleParts> Kubelwagen
    SparkPlug
    CarBattery
    CarRadiator
    HeadlightH7
    HeadlightH7
    Kubelwagen_dver_1_1
    Kubelwagen_dver_1_2
    Kubelwagen_dver_2_1
    Kubelwagen_dver_2_2
    CanisterGasoline
    Kubelwagen_koleso
    Kubelwagen_koleso
    Kubelwagen_koleso
    Kubelwagen_koleso
    Kubelwagen_koleso

Just place it below the rest of the standard vehicles.

 

That should be it, unless I missed something. The vehicle should now be available for purchase in the vehicle trader.

Share this post


Link to post
Share on other sites

×