
This mod is made mostly for normal maps.. though I am sure you could use it for others..
This mod adds chests to the game that give random loot. (the chests are mobs that will never move and die quickly.. mostly..)
There are 1-2 spawned in the jungle on normal maps so you will have a reason to kill those froggies... Then pre-set amounts for every floor - more chests per floor as you dig deeper, and better chests that drop better items the deeper you go.
But just free loot is no fun .. so some chests are also mimics .. these give no item when killed but should give decent exp to a hero... also some chests are trapped and will poison you... usually.
Due to my lack of experience with these things I am sure this can be improved.. so if you can improve it go for it.
Anyways.. I am not gonna compile this or upload anything .. - to lazy for now.. maybe later I will do that.. or if someone else would like to.. you may.
Anyways how to add this.. I'll just post what to add to each .xml to add this.
First
livingentities.xml
Add this at the end but above the line </livingentities>
- Code: Select all
<lowchest>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>0</level>
<name esES="Cofre">Chest</name>
<attack>1</attack>
<attackSpeed>1</attackSpeed>
<defense>1</defense>
<healthPoints>1</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>1</damage>
<LOS>1</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<effects>fakechesteffect</effects>
<drop>
<item>RANDOM</item>
<PCT>100</PCT>
<levelMin>1</levelMin>
<levelMax>10</levelMax>
</drop>
</lowchest>
<midchest>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>0</level>
<name esES="Cofre">Green Chest</name>
<attack>1</attack>
<attackSpeed>1</attackSpeed>
<defense>0</defense>
<healthPoints>1</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>1</damage>
<LOS>0</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<effects>fakechesteffect</effects>
<drop>
<item>RANDOM</item>
<PCT>100</PCT>
<levelMin>11</levelMin>
<levelMax>20</levelMax>
</drop>
</midchest>
<highchest>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>0</level>
<name esES="Oro Cofre">Gold Chest</name>
<attack>1</attack>
<attackSpeed>1</attackSpeed>
<defense>0</defense>
<healthPoints>1</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>1</damage>
<LOS>0</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<effects>fakechesteffect</effects>
<drop>
<item>RANDOM</item>
<PCT>100</PCT>
<levelMin>21</levelMin>
<levelMax>30</levelMax>
</drop>
</highchest>
<junchest>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>0</level>
<name esES="Froggy Cofre">Froggy Chest</name>
<habitat>jungle</habitat>
<attack>1</attack>
<attackSpeed>1</attackSpeed>
<defense>1</defense>
<healthPoints>1</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>1</damage>
<LOS>1</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<drop>
<item>RANDOM</item>
<PCT>100</PCT>
<levelMin>2</levelMin>
<levelMax>10</levelMax>
</drop>
</junchest>
<lowmimic>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>10</level>
<name esES="Cofre">Chest</name>
<attack>1500</attack>
<attackSpeed>4</attackSpeed>
<defense>1500</defense>
<healthPoints>1500</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>300</damage>
<LOS>1</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<effects>fakechesteffect</effects>
</lowmimic>
<midmimic>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>15</level>
<name esES="Verde Cofre">Green Chest</name>
<attack>2000</attack>
<attackSpeed>4</attackSpeed>
<defense>2000</defense>
<healthPoints>2500</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>800</damage>
<LOS>1</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<effects>fakechesteffect</effects>
</midmimic>
<highmimic>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>20</level>
<name esES="Oro Cofre">Gold Chest</name>
<attack>5000</attack>
<attackSpeed>4</attackSpeed>
<defense>4000</defense>
<healthPoints>5000</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>1500</damage>
<LOS>1</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<effects>fakechesteffect</effects>
</highmimic>
<lowtrapchest>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>0</level>
<name esES="Cofre">Chest</name>
<attack>5000</attack>
<attackSpeed>5</attackSpeed>
<defense>1</defense>
<healthPoints>1000</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>0</damage>
<LOS>1</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<effects>chestpoison</effects>
<drop>
<item>RANDOM</item>
<PCT>100</PCT>
<levelMin>1</levelMin>
<levelMax>10</levelMax>
</drop>
</lowtrapchest>
<midtrapchest>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>0</level>
<name esES="Verde Cofre">Green Chest</name>
<attack>5000</attack>
<attackSpeed>5</attackSpeed>
<defense>1</defense>
<healthPoints>1500</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>0</damage>
<LOS>1</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<effects>chestpoison</effects>
<drop>
<item>RANDOM</item>
<PCT>100</PCT>
<levelMin>11</levelMin>
<levelMax>20</levelMax>
</drop>
</midtrapchest>
<hightrapchest>
<type>ENEMY</type>
<hate>CITIZEN,HERO</hate>
<level>0</level>
<name esES="Oro Cofre">Gold Chest</name>
<attack>5000</attack>
<attackSpeed>5</attackSpeed>
<defense>1</defense>
<healthPoints>2500</healthPoints>
<attackVerb esES="ataca">crush</attackVerb>
<attackVerbInfinitive esES="atacar">crush</attackVerbInfinitive>
<damage>0</damage>
<LOS>1</LOS>
<movePCT>0</movePCT>
<walkSpeed>0</walkSpeed>
<grouping>true</grouping>
<effects>chestpoison</effects>
<drop>
<item>RANDOM</item>
<PCT>100</PCT>
<levelMin>21</levelMin>
<levelMax>30</levelMax>
</drop>
</hightrapchest>
Next in
effects.xml - again above the last </effects>.
- Code: Select all
<effect>
<id>chestpoison</id>
<onHitPCT>100</onHitPCT>
<onHitEffects>dotpoison200</onHitEffects>
</effect>
<effect>
<id>fakechesteffect</id>
</effect>
Next in
gen_livingentities add above the </gen_livingentities> at the end:
- Code: Select all
<add>
<entity>junchest</entity>
<qtty>1d2</qtty>
<pointx>1d200-1</pointx>
<pointy>1d200-1</pointy>
<level>0</level>
</add>
Next in
Graphics.ini
Add this first:
items.png to the TILESET_EXTRAS = at the top so it looks like:
- Code: Select all
TILESET_EXTRAS =
walls.png,living2.png,citizenmale.png,citizenfemale.png,military.png,terrainslopes.png,
terrainslopes2.png,buildings.png,heroes.png,heroes2.png,heroes3.png,items2.png,walls2.png,items.png
Do not copy and paste that bit, as I had to add enters to make it work on the forums.. just add items.png to the end like it isthere
Then at the bottom add:
- Code: Select all
[lowchest]TILE_X = 4
[lowchest]TILE_Y = 6
[lowchest]TEXTURE_FILE = items.png
[midchest]TILE_X = 4
[midchest]TILE_Y = 6
[midchest]COLOR = 169,231,190
[midchest]TEXTURE_FILE = items.png
[highchest]TILE_X = 4
[highchest]TILE_Y = 6
[highchest]COLOR = 248,149,16
[highchest]TEXTURE_FILE = items.png
[junchest]TILE_X = 4
[junchest]TILE_Y = 6
[junchest]TEXTURE_FILE = items.png
[lowmimic]TILE_X = 4
[lowmimic]TILE_Y = 6
[lowmimic]TEXTURE_FILE = items.png
[midmimic]TILE_X = 4
[midmimic]TILE_Y = 6
[midmimic]COLOR = 169,231,190
[midmimic]TEXTURE_FILE = items.png
[highmimic]TILE_X = 4
[highmimic]TILE_Y = 6
[highmimic]COLOR = 248,149,16
[highmimic]TEXTURE_FILE = items.png
[lowtrapchest]TILE_X = 4
[lowtrapchest]TILE_Y = 6
[lowtrapchest]TEXTURE_FILE = items.png
[midtrapchest]TILE_X = 4
[midtrapchest]TILE_Y = 6
[midtrapchest]COLOR = 169,231,190
[midtrapchest]TEXTURE_FILE = items.png
[hightrapchest]TILE_X = 4
[hightrapchest]TILE_Y = 6
[hightrapchest]COLOR = 248,149,16
[hightrapchest]TEXTURE_FILE = items.png
and lastly...
gen_dungeons you need to delete the entire content of the file then paste in this (I assume that will work.. I don't know where to even upload it quickly due to never uploading anything to share..)
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<gen_dungeons>
<dungeon>
<level>2</level>
<type>__CAVE__</type>
<monster>
<id>__RANDOM__</id>
<number>800</number>
<levelMin>1</levelMin>
<levelMax>1</levelMax>
</monster>
<monster>
<id>spiderqueen</id>
<number>1</number>
</monster>
<monster>
<id>lowchest</id>
<number>8</number>
</monster>
<monster>
<id>lowmimic</id>
<number>1</number>
</monster>
<monster>
<id>lowtrapchest</id>
<number>1</number>
</monster>
<monster>
<id>highchest</id>
<number>1d10-9</number>
</monster>
<monster>
<id>midchest</id>
<number>1d10-5</number>
</monster>
</dungeon>
<dungeon>
<level>3</level>
<type>__ROOMS__</type>
<monster>
<id>__RANDOM__</id>
<number>800</number>
<levelMin>1</levelMin>
<levelMax>2</levelMax>
</monster>
<monster>
<id>nusepthegoblinking</id>
<number>1</number>
</monster>
<monster>
<id>lowchest</id>
<number>9</number>
</monster>
<monster>
<id>lowmimic</id>
<number>1</number>
</monster>
<monster>
<id>lowtrapchest</id>
<number>2</number>
</monster>
<monster>
<id>midchest</id>
<number>1d10-4</number>
</monster>
<monster>
<id>highchest</id>
<number>1d10-8</number>
</monster>
</dungeon>
<dungeon>
<level>4</level>
<type>__ROOMS__</type>
<monster>
<id>__RANDOM__</id>
<number>800</number>
<levelMin>2</levelMin>
<levelMax>3</levelMax>
</monster>
<monster>
<id>draukthehobgoblinking</id>
<number>1</number>
</monster>
<monster>
<id>lowchest</id>
<number>5</number>
</monster>
<monster>
<id>midchest</id>
<number>8</number>
</monster>
<monster>
<id>midmimic</id>
<number>1</number>
</monster>
<monster>
<id>midtrapchest</id>
<number>1</number>
</monster>
<monster>
<id>highchest</id>
<number>1d10-7</number>
</monster>
</dungeon>
<dungeon>
<level>5</level>
<type>__CAVE__</type>
<monster>
<id>__RANDOM__</id>
<number>800</number>
<levelMin>1</levelMin>
<levelMax>4</levelMax>
</monster>
<monster>
<id>sikuthewolf</id>
<number>1</number>
</monster>
<monster>
<id>lowchest</id>
<number>8</number>
</monster>
<monster>
<id>midchest</id>
<number>8</number>
</monster>
<monster>
<id>midmimic</id>
<number>1</number>
</monster>
<monster>
<id>midtrapchest</id>
<number>2</number>
</monster>
<monster>
<id>highchest</id>
<number>1d10-6</number>
</monster>
</dungeon>
<dungeon>
<level>6</level>
<type>__RANDOM__</type>
<monster>
<id>__RANDOM__</id>
<number>800</number>
<levelMin>2</levelMin>
<levelMax>5</levelMax>
</monster>
<monster>
<id>nexythesnickeredge</id>
<number>1</number>
</monster>
<monster>
<id>cavetroll</id>
<number>2d2</number>
</monster>
<monster>
<id>lowchest</id>
<number>8</number>
</monster>
<monster>
<id>lowmimic</id>
<number>1</number>
</monster>
<monster>
<id>lowtrapchest</id>
<number>1</number>
</monster>
<monster>
<id>midchest</id>
<number>8</number>
</monster>
<monster>
<id>midmimic</id>
<number>2</number>
</monster>
<monster>
<id>midtrapchest</id>
<number>2</number>
</monster>
<monster>
<id>highchest</id>
<number>1d10-5</number>
</monster>
</dungeon>
<dungeon>
<level>7</level>
<type>__ROOMS__</type>
<monster>
<id>__RANDOM__</id>
<number>800</number>
<levelMin>3</levelMin>
<levelMax>6</levelMax>
</monster>
<monster>
<id>toponovichthezombie</id>
<number>1</number>
</monster>
<monster>
<id>lowchest</id>
<number>8</number>
</monster>
<monster>
<id>lowmimic</id>
<number>2</number>
</monster>
<monster>
<id>lowtrapchest</id>
<number>2</number>
</monster>
<monster>
<id>midchest</id>
<number>8</number>
</monster>
<monster>
<id>midmimic</id>
<number>2</number>
</monster>
<monster>
<id>midtrapchest</id>
<number>3</number>
</monster>
<monster>
<id>highchest</id>
<number>1d10-4</number>
</monster>
</dungeon>
<dungeon>
<level>8</level>
<type>__ROOMS__</type>
<monster>
<id>__RANDOM__</id>
<number>800</number>
<levelMin>2</levelMin>
<levelMax>8</levelMax>
</monster>
<monster>
<id>gaskonetheghoul</id>
<number>1</number>
</monster>
<monster>
<id>lowchest</id>
<number>5</number>
</monster>
<monster>
<id>lowmimic</id>
<number>1</number>
</monster>
<monster>
<id>lowtrapchest</id>
<number>1</number>
</monster>
<monster>
<id>midchest</id>
<number>5</number>
</monster>
<monster>
<id>midmimic</id>
<number>1</number>
</monster>
<monster>
<id>midtrapchest</id>
<number>1</number>
</monster>
<monster>
<id>highchest</id>
<number>8</number>
</monster>
<monster>
<id>highmimic</id>
<number>1</number>
</monster>
<monster>
<id>hightrapchest</id>
<number>1</number>
</monster>
</dungeon>
<dungeon>
<level>9</level>
<type>__RANDOM__</type>
<monster>
<id>__RANDOM__</id>
<number>800</number>
<levelMin>3</levelMin>
<levelMax>9</levelMax>
</monster>
<monster>
<id>humethealmightyogre</id>
<number>1</number>
</monster>
<monster>
<id>lowchest</id>
<number>8</number>
</monster>
<monster>
<id>lowmimic</id>
<number>2</number>
</monster>
<monster>
<id>lowtrapchest</id>
<number>2</number>
</monster>
<monster>
<id>midchest</id>
<number>8</number>
</monster>
<monster>
<id>midmimic</id>
<number>2</number>
</monster>
<monster>
<id>midtrapchest</id>
<number>2</number>
</monster>
<monster>
<id>highchest</id>
<number>8</number>
</monster>
<monster>
<id>highmimic</id>
<number>1</number>
</monster>
<monster>
<id>hightrapchest</id>
<number>2</number>
</monster>
</dungeon>
<dungeon>
<level>10</level>
<type>__ROOMS__</type>
<monster>
<id>irongolem</id>
<number>2</number>
</monster>
<monster>
<id>sneakyghoul</id>
<number>1d30+100</number>
</monster>
<monster>
<id>ogre</id>
<number>1d20+10</number>
</monster>
<monster>
<id>lustyogre</id>
<number>1d20+10</number>
</monster>
<monster>
<id>toponovichthezombie</id>
<number>1</number>
</monster>
<monster>
<id>gaskonetheghoul</id>
<number>1</number>
</monster>
<monster>
<id>nexythesnickeredge</id>
<number>1</number>
</monster>
<monster>
<id>theburningpet</id>
<number>1</number>
</monster>
<monster>
<id>lowchest</id>
<number>10</number>
</monster>
<monster>
<id>lowmimic</id>
<number>5</number>
</monster>
<monster>
<id>lowtrapchest</id>
<number>5</number>
</monster>
<monster>
<id>midchest</id>
<number>10</number>
</monster>
<monster>
<id>midmimic</id>
<number>5</number>
</monster>
<monster>
<id>midtrapchest</id>
<number>5</number>
</monster>
<monster>
<id>highchest</id>
<number>10</number>
</monster>
<monster>
<id>highmimic</id>
<number>5</number>
</monster>
<monster>
<id>hightrapchest</id>
<number>5</number>
</monster>
</dungeon>
</gen_dungeons>
Anyways.. If that all works out for you and I didn't somehow forget something (I'm pretty sure that's everything that needs added) - I hope you enjoy actualy finding some treasure.
This mod is not balanced really... I tested it - it works for me. Feel free to edit the number of chests or suggest a balance.. and again if anyone wants to compile this and make it modloader compatible - or just downloadable - be my guest, I may eventually but... not to night haha...

