• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Loot xml not work at all

VENOM2019

Refugee
Hello everyone!

I tried to add my modded items to the lootlist like this:

<condigs>

<append xpath="loot">

<lootcontainers>

<lootcontainer id="17" count="1,2"... >

<item name="Desert Eagle" prob="0.08">

</lootcontainer>

</lootcontainers>

</append>

</configs>

This didn't work at all, I tried everything, and nothing works. But when I wrote the desert eagle to the original loot file the gun acually appeared in the toiled with the count of 2. Please help with this!

 
A couple of issues, if you copied directly there is a typo "condigs"

Also if you append like this, you are adding a new loot container with id 17, which already exits.

I am on my phone so I cant copy code, but you need to either append the entry directly, or setattribute to change a value.

Someone at their pc might be able to paste code...

 
You could try something like:

Code:
<append xpath="/lootcontainers/lootcontainer[@id='65']">
       <item name="Desert Eagle" count="1" prob="0.015"/>
</append>
if you just wanna add it to the toilet loot.

 
Back
Top