Parzival2020
New member
I am wanting to add some items and amend some items in the loot.xml and cant seem to crack it.
I think it's because of my xpath structures.
For example I add this to make the demolition Zombies:
<!-- Add casinoCoin to Demolitions Zombie -->
<append xpath="/lootcontainers/lootcontainer[@id='73']">
<item name="casinoCoin" count="1,20" prob="1"/>
</append>
This works fine
However when I try to amend the casinoCoin drop rate for the other Zombies it doesnt work with this:
<set xpath="/lootcontainers/lootcontainer/item[@name='casinoCoin']" name="count">1,20</set>
The drop rate of the coins still seems in the hundreds. I was hoping the above would affect all other zombies (id's 70 and 71) as I didnt specify it, but I did also try
<set xpath="/lootcontainers/lootcontainer[@id='70']/item[@name='casinoCoin']" name="count">1,20</set>
<set xpath="/lootcontainers/lootcontainer[@id='71']/item[@name='casinoCoin']" name="count">1,20</set>
but it didnt work
For example when I kill the Demolition Zombie he will drop a very small amount (30ish or so), but any other zombies drop up to 1200 coins
Essentially what I would like to achieve is that they drop a small amount of casino coins, which increases as the players lvl/gamestage increase.
I think it's because of my xpath structures.
For example I add this to make the demolition Zombies:
<!-- Add casinoCoin to Demolitions Zombie -->
<append xpath="/lootcontainers/lootcontainer[@id='73']">
<item name="casinoCoin" count="1,20" prob="1"/>
</append>
This works fine
However when I try to amend the casinoCoin drop rate for the other Zombies it doesnt work with this:
<set xpath="/lootcontainers/lootcontainer/item[@name='casinoCoin']" name="count">1,20</set>
The drop rate of the coins still seems in the hundreds. I was hoping the above would affect all other zombies (id's 70 and 71) as I didnt specify it, but I did also try
<set xpath="/lootcontainers/lootcontainer[@id='70']/item[@name='casinoCoin']" name="count">1,20</set>
<set xpath="/lootcontainers/lootcontainer[@id='71']/item[@name='casinoCoin']" name="count">1,20</set>
but it didnt work
For example when I kill the Demolition Zombie he will drop a very small amount (30ish or so), but any other zombies drop up to 1200 coins
Essentially what I would like to achieve is that they drop a small amount of casino coins, which increases as the players lvl/gamestage increase.
Last edited by a moderator: