Hello! I think most of us have noticed that OTS monsters aren't really that good as REAL ones! Our otie monsters are getting crazy while we're trying to take them in the corner! Does someone here know where is the problem? Or maybe it's not a LUA problem but compiling? :O! For example i'll give you mine monsters script to compare (if there's something wrong)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Dragon" nameDescription="a dragon" race="blood" experience="700" speed="160" manacost="0">
<health now="1000" max="1000"/>
<look type="34" corpse="5973"/>
<targetchange interval="2000" chance="5"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag staticattack="90"/>
<flag runonhealth="300"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="50" attack="40"/>
<attack name="fire" interval="2000" chance="8" length="8" spread="3" min="-100" max="-170">
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="fire" interval="2000" chance="12" range="7" radius="4" target="1" min="-60" max="-140">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
</attacks>
<defenses armor="25" defense="18">
<defense name="healing" interval="2000" chance="10" min="40" max="70">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<elements>
<element earthPercent="80"/>
<element energyPercent="20"/>
<element icePercent="-10"/>
</elements>
<immunities>
<immunity fire="1"/>
<immunity paralyze="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="15">
<voice sentence="GROOAAARRR" yell="1"/>
<voice sentence="FCHHHHH" yell="1"/>
</voices>
<loot>
<item id="7430" chance="500"/><!-- dragonbone staff -->
<item id="2177" chance="600"/><!-- life crystal -->
<item id="2145" chance="925"/><!-- small diamond -->
<item id="2516" chance="800"/><!-- dragon shield -->
<item id="2409" chance="1050"/><!-- serpent sword -->
<item id="2434" chance="1050"/><!-- dragon hammer -->
<item id="7588" chance="1000"/><!-- strong health potion -->
<item id="2187" chance="1100"/><!-- wand of inferno -->
<item id="5920" chance="1250"/><!-- green dragon scale -->
<item id="2387" chance="1450"/><!-- double axe -->
<item id="5877" chance="1450"/><!--green dragon leather -->
<item id="2647" chance="2425"/><!-- plate legs -->
<item id="2413" chance="2400"/><!-- broadsword -->
<item id="2457" chance="3000"/><!-- steel helmet -->
<item id="2397" chance="3375"/><!-- longsword -->
<item id="2546" chance="4900" countmax="10"/><!-- burst arrow -->
<item id="12413" chance="7337"/><!-- dragon tail -->
<item id="2455" chance="9400"/><!-- crossbow -->
<item id="2509" chance="12525"/><!-- steel shield -->
<item id="2672" countmax="3" chance="20025"/><!-- dragon ham -->
<item id="2148" chance="34800" countmax="110"/><!-- gold coin -->
</loot>
</monster>