Adjusting Loot in DayZ
In this article, we will describe where you can download the required types.xml
file.
We will also explain how and where you can upload the edited types.xml
file.
1. Downloading types.xml
You can download a types.xml
file here: GitHub.
Alternatively, you can also take one from your game directory.
2. Editing types.xml
For editing, it is best to use an editor with syntax highlighting, such as Notepad++.
As an example, we will change the entry for AK101
.
Original:
<type name="AK101">
<nominal>5</nominal>
<lifetime>28800</lifetime>
<restock>1800</restock>
<min>2</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="1" count_in_hoarder="1" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
<category name="weapons"/>
<usage name="Military"/>
<value name="Tier4"/>
</type>
Edited:
<type name="AK101">
<nominal>10</nominal>
<lifetime>28800</lifetime>
<restock>1800</restock>
<min>0</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="1" count_in_hoarder="1" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
<category name="weapons"/>
<usage name="Military"/>
<value name="Tier4"/>
</type>
By making this change, there will be up to twice as many AK101
weapons in the world as before.
Here is an explanation of the individual settings:
Setting | Description |
---|---|
type | Determines which item will be spawned, for example, |
nominal | Determines the maximum number of an item, for example,
|
lifetime | Time in seconds before an item despawns if it has not been touched |
restock | Time in seconds for an item of the specified type to respawn. If the value is 0, all items will be spawned at once |
min | If the number of items in the world falls below this value, new items will be spawned |
quantmin | Min % of the quantity, for example, for ammunition |
quantmax | Max % of the quantity, for example, for ammunition |
cost | Priority for CE, the higher the value, the higher the priority |
flags | Example:
<flags count_in_cargo="1" count_in_hoarder="1" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> |
category | Determines the category of the item |
tag | Example <tag name="shelves" /> |
usage | Example <usage name="Military" /> |
value | Example <value name="Tier4" /> |
3. Uploading types.xml
- Stop your server
- Connect to your FTP program with the Upload-FTP.
You can find the login details in the FTP overview when you click on FTP. - The edited
types.xml
file should be placed in the db folder of the respective map.
For example:configID/mpmissions/dayzOffline.chernarusplus/db/
or:configID/mpmissions/dayzOffline.enoch/db/
Note: You can find the configID or configuration ID for your server on our page under Gameserver.
If your configID is, for example, 123456, it would look like this:/123456/mpmissions/dayzOffline.enoch/db/
- Start your server
Your edited types.xml file will be included and used when you start your server.