Jump to content

How to increase the amount dropped by a zombie in line with player level?


Recommended Posts

So I am working on a mod whereby the zombies only drop casinoCoins and you use those coins to purchase items from the trader.

 

I have the following in my loot.xml:

 

<remove 
xpath="/lootcontainers/lootcontainer[@id='70']/item[@group='cannedfood'
	or @name='drinkJarBeer' 
	or @name='drinkJarBoiledWater' 
	or @group='booksAllScaled' 
	or @group='brassResource' 
	or @name='resourceForgedIron' 
	or @name='resourceForgedSteel' 
	or @group='groupToolsTiered' 
	or @group='groupRareToolsTiered' 
	or @group='groupArmorScaled' 
	or @name='armorMiningHelmet' 
	or @group='groupApparelClothes' 
	or @group='warmClothes' 
	or @group='groupAmmoRegular' 
	or @group='groupWeaponsAllScaled' 
	or @name='apparelNightvisionGoggles' 
	or @name='oldCash' 
	or @name='drugHerbalAntibiotics' 
	or @group='rareMedicine' 
	or @name='drugPainkillers' 
	or @name='drugVitamins' 
	or @group='groupTreasureMaps' 
	or @group='groupQuestChallenge'
	or @name='casinoCoin']

"/>

<!-- Bikers -->
<remove 
xpath="/lootcontainers/lootcontainer[@id='71']/item[@group='cannedfood'
	or @name='drinkJarBeer' 
	or @name='drinkJarBoiledWater' 
	or @group='booksAllScaled' 
	or @group='brassResource' 
	or @name='resourceForgedIron' 
	or @name='resourceForgedSteel' 
	or @group='groupToolsTiered' 
	or @group='groupRareToolsTiered' 
	or @group='groupArmorScaled' 
	or @name='armorMiningHelmet' 
	or @group='groupApparelClothes' 
	or @group='warmClothes' 
	or @group='groupAmmoRegular' 
	or @group='groupWeaponsAllScaled' 
	or @name='apparelNightvisionGoggles' 
	or @name='oldCash' 
	or @name='drugHerbalAntibiotics' 
	or @group='rareMedicine' 
	or @name='drugPainkillers' 
	or @name='drugVitamins' 
	or @group='groupTreasureMaps' 
	or @group='groupQuestChallenge'
	or @name='resourceMilitaryFiber'
	or @name='armorSwatHelmet'
	or @group='groupApparelHazmat'
	or @group='groupModAllScaled'
	or @group='vehiclePartsTiered'
	or @name='casinoCoin']

"/>

<!-- Demolitions Zombie -->
<remove xpath="/lootcontainers/lootcontainer[@id='73']/item[@group='booksRareOnlyScaled'
	or @name='resourceForgedSteel'
	or @group='groupRareToolsTiered'
	or @group='groupArmorScaled' 
	or @name='armorSwatHelmet' 
	or @group='groupApparelHazmat'
	or @group='groupAmmoRegular'
	or @group='groupWeaponsAllScaled'
	or @name='apparelNightvisionGoggles'
	or @name='oldCash'
	or @group='rareMedicine'
	or @name='drugVitamins'
	or @name='drugSteroids'
	or @group='groupTreasureMaps'
	or @group='groupQuestChallenge'
	or @group='groupModAllScaled'
	or @group='vehiclePartsTiered']
	
	"/>

<!-- Add casinoCoin to Demolitions Zombie with low drop rate-->
<append xpath="/lootcontainers/lootcontainer[@id='73']">
	<item name="casinoCoin" count="1,20" prob="1"/>
</append>

<!-- Add casinoCoin to Other Zombies with low drop rate-->
<append xpath="/lootcontainers/lootcontainer[@id='70']">
	<item name="casinoCoin" count="1,20" prob="1"/>
</append>

<append xpath="/lootcontainers/lootcontainer[@id='71']">
	<item name="casinoCoin" count="1,20" prob="1"/>
</append>

 

However it doesnt seem to matter what night or how high a level the player is the amount of coins never changes.

 

I would like it that the game progresses the zombies drop a higher value of coins.

 

Sorry if this is obvious this is my first attempt at modding

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...