Thorn
Spriting since 2013
hii, im trying to put a spell into a monster, but it gives me an error, also i don't know quite well how to add spells, here is my monster
this is the spell i added and got the error
and this is the error
plzz guys help me
and teach me plz how to add spells and if it's possible how to edit the areaeffects
LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="God of the Forest" nameDescription="GOD of the Forest" race="undead" experience="390000" speed="2090" manacost="0">
<health now="500000" max="500000"/>
<look type="285" corpse="8933"/>
<targetchange interval="1" chance="50"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag staticattack="80"/>
<flag lightlevel="0"/>
<flag lightcolor="0"/>
<flag targetdistance="1"/>
<flag runonhealth="1"/>
</flags>
<attacks>
<attack name="melee" interval="500" chance="1" min="-5000" max="-6000"/>
<attack name="Hells Core" interval="500" chance="1" min="-5000" max="-6000"/>
</attack>
<attack name="earth" interval="20" chance="10" length="6" spread="0" min="2000" max="-4000">
<attribute key="areaEffect" value="smallplants"/>
</attack>
<attack name="physical" interval="2000" chance="9" target="0" radius="4" min="0" max="-240">
<attribute key="areaEffect" value="poff"/>
</attack>
</attacks>
<elements>
<element deathPercent="20"/>
<element icePercent="20"/>
<element physicalPercent="20"/>
<element holyPercent="20"/>
<element firePercent="-25"/>
</elements>
<immunities>
<immunity paralyze="1"/>
<immunity invisible="1"/>
<immunity earth="1"/>
<immunity energy="1"/>
</immunities>
<loot>
<item id="2148" countmax="114" chance="100000"/><!-- gold coin -->
<item id="1294" countmax="9" chance="9000"/><!-- small stone -->
<item id="2436" chance="3000"/><!-- plate armor -->
</loot>
</monster>
this is the spell i added and got the error
LUA:
<attack name="Hells Core" interval="500" chance="1" min="-5000" max="-6000"/>
and this is the error
XML:
[30/07/2013 01:01:34] [Warning - Monsters::loadMonster] Cannot load monster (GOD of the forest) file (data/monster/Edited/GOD of the forest.xml).
[30/07/2013 01:01:34] Line: 32, Info: Extra content at the end of the document
plzz guys help me