This Guide will walk you through the entire process of adding custom items to your Server’s Trader Mod.
Part 1 – Download and install the Mod
For this Guide, I will use Munghards Item Pack as an example.
Workshop link: MunghardsItempack
- Subscribe to the Mod
- Navigate to where DayZ is installed (ProgramFiles/Steam/SteamApps/Common/DayZ)
- Make sure your File Explorer can view hidden items
- Click ‘View’
- Check the ‘Hidden items’ box
- You should see a ‘!Workshop’ folder
- Open the folder
- Copy the @MunghardsItempack folder
- Navigate to your Server
- Paste the @MunghardsItempack folder into your Servers main directory
- Open the @MunghardsItempack folder
- Open the ‘Keys’ folder
- Copy the file
- Navigate to your Server’s ‘keys’ folder
- Paste the file inside the Server’s ‘keys’ folder
- Don’t forget to add @MunghardsItempack to your Server’s Startup Command Line
Should look similar to this:
“-mod:@CF;@Trader;@MunghardsItempack”
Now we can begin adding Munghards custom items to your current Trader.
Part 2 – Add the items to your Server’s economy
Now you have to manually INJECT the new items into your Server’s loot table. And it’s very easy to do so.
Make sure you have Notepad++ installed for this part of the guide.
Notepad++
https://notepad-plus-plus.org/downloads/
- Navigate to your Server
- Open your ‘mpmissions’ folder
- Open your currently chosen map folder (default chernarus is dayzOffline.chernarusplus)
- Open the ‘db’ folder
BEFORE PROCEEDING, PLEASE RIGHT CLICK -> COPY THE ‘types.xml’ FILE -> PASTE A COPY ON YOUR DESKTOP -> PLACE IT IN A FOLDER CALLED ‘types backup’.
IF YOU ACCIDENTALLY MESS SOMETHING UP, IT WILL BREAK YOUR SERVER. IT IS IMPORTANT TO HAVE A BACKUP SO THAT YOU CAN RESTART YOUR PROGRESS.
- Inside the ‘db’ folder you will see a ‘types.xml’ file
- This file holds EVERY loot item in the game of DayZ
- Right click ‘types.xml’ -> Edit with Notepad++
- Minimize this window for now
- Navigate BACK to your @MunghardsItempack folder INSIDE your Server
- Open the folder, ‘types’
You can ignore all of these files
newtypesnewtypes2newtypes3newtypes4newtypes5
types
- Open the ‘types’ file
At this point you should have two Notepad++ windows open.
- MunghardsItempack types file
- Your Server’s types file
All we need to do, is properly copy and paste the MunghardsItempack items INTO our Server’s types file. When we do this, we are telling the server to add these items into the loot pool.
We do not want to include the very top and bottom lines of code that read :
<types></types>
We want everything in-between that start with :
<type
and end with:
</type>
- Select and Copy the text in this file
- Navigate to your Server’s types file that you already have open in Notepad++
- Scroll to the bottom of your Server’s types file
You will see these lines at the bottom:
</type></types>
You will paste the MunghardsItempack code in-between the </type> and </types> code. Like this:
</type>**PASTE THE ITEMS HERE**</types>
You don’t have to do this part but I highly recommend that you use a comment to organize your addition to this file.
To do this, scroll up to where the beginning of the MunghardsItempack is (or whichever mod you installed).
For MunghardsItempack, the first item in the list is:
<type name=”wolffurcowl_mung”>
<lifetime>7200</lifetime>
<flags count_in_cargo=”0″ count_in_hoarder=”0″ count_in_map=”1″ count_in_player=”0″ crafted=”0″ deloot=”0″/>
</type>
<!– MunghardsItempack –>
Using the <!–insert anything here –> comment is the preferred method for writing down notes inside the types files. It will NOT break or disrupt anything in the file. In fact it is the preferred comment method for types.xml files.
DO NOT USE // FOR COMMENTS, IT CAN BREAK YOUR TYPES FILE
USE <!– to start the comment
USE –> to end the comment
So the beginning of my MunghardsItempack looks like this:
<!– MunghardsItempack –>
<type name=”wolffurcowl_mung”>
<lifetime>7200</lifetime>
<flags count_in_cargo=”0″ count_in_hoarder=”0″ count_in_map=”1″ count_in_player=”0″ crafted=”0″ deloot=”0″/>
</type>
<type name=”bearfurcowl_mung”>
<lifetime>7200</lifetime>
<flags count_in_cargo=”0″ count_in_hoarder=”0″ count_in_map=”1″ count_in_player=”0″ crafted=”0″ deloot=”0″/>
</type>etc…etc…
Then it’s as easy as highlighting the entire MunghardsItempack, deleting it, and adding in the new items from the update.
Next, adding these items to your Trader.
Part 3 – Add the items to your Server’s Trader
No matter what, they will include a types file. You just learned how to add the new items to your Server’s loot table.
IF you download an itempack, and the Mod author did NOT include a Trader Config file, you can still add the items to your Trader. You have to open the Mod’s ‘types’ file and manually copy + paste each item name into your TraderConfig.txt file (located inside your ServerProfile folder).
Anyways, looks like MunghardsItempack DOES in fact include a TraderConfig file.
- Open your @MunghardsItempack folder in your Server Directory
- Open the ‘traderconfig’ folder
- Right click -> Edit with notepad++ the ‘Trader_Config.txt’ file
Now we are going to open another window.
- Navigate to your Server’s Directory
- Open your ServerProfile folder
- Open the ‘Trader’ folder
IMPORTANT! MAKE SURE YOU BACK UP THIS TRADER FOLDER! COPY AND PASTE THIS TRADER FOLDER ONTO YOUR DESKTOP AND NAME IT TRADER BACKUP! IF YOU SCREW SOMETHING UP YOU’LL BE HAPPY YOU CAN REVERT BACK TO A DEFAULT FILE!
- Right click -> Edit with Notepad ++ the ‘TraderConfig.txt’ file
You should now have 2 windows open:
- MunghardsItempack traderconfig file
- Your Server’s TraderConfig file
Try to imagine that your Server’s TraderConfig file is the MASTER FILE. It includes all of your Traders and items.
When you download new item mods, you will have to add them to your MASTER LIST so that players can see the new items and buy them.
That is what we are doing here. You can now copy the MunghardsItempack traderconfig code and paste it into your Server’s TraderConfig file.
You get to choose where it goes. (You can choose which trader sells these items) Just monkey around with it and have fun!
That should cover everything. You can use this guide for any Item mod and it should all work the same.
Please leave feedback if you enjoyed this guide! Let me know if anything is incorrect or if you’re having troubles!
Related Posts:
- DayZ: How to Install DZSA Launcher
- DayZ: Where To Find The Humvee in New 1.19 Update
- DayZ Blood Chart and Types Guide
- Dayz-How to Cure Sick Status and All Sick Status Details
- Dayz – All You Should Know Before You Start