Sprite
Poznańska Pyra
- Joined
- Jun 15, 2009
- Messages
- 207
- Reaction score
- 13
Hello,
i have problem with custom monsters! All the cusom monsters give the same experience np.
This monster gives the same experience as Basteman
When changing experience="5999999900" to experience="9999999999999999999999999" gives the same. If you exceed the max exp that can give a monster, This should give 0 experience... Someone knows where is the mistake?
**
I would add that the second OTS have all the same and it works
i have problem with custom monsters! All the cusom monsters give the same experience np.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Barak" nameDescription="Barak" race="fire" experience="4500000000" speed="530" manacost="0">
<health now="1700000" max="1700000"/>
<look type="344" corpse="6302"/>
<targetchange interval="2000" chance="10"/>
<strategy attack="65" defense="20"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag runonhealth="3000"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="1600" attack="2200"/>
<attack name="manadrain" interval="1000" chance="7" range="7" min="-8000" max="-9000">
<attribute key="shootEffect" value="energy"/>
<attribute key="areaEffect" value="poff"/>
</attack>
<attack name="drunk" interval="1000" chance="7" range="7">
<attribute key="shootEffect" value="energy"/>
<attribute key="areaEffect" value="energyarea"/>
</attack>
<attack name="strength" interval="1000" chance="9" range="7">
<attribute key="shootEffect" value="largerock"/>
<attribute key="areaEffect" value="energyarea"/>
</attack>
<attack name="lifedrain" interval="1000" chance="10" radius="8" target="0" min="-2000" max="-3000">
<attribute key="areaEffect" value="bluebubble"/>
</attack>
<attack name="manadrain" interval="1000" chance="10" radius="8" target="0" min="-800" max="-1400">
<attribute key="areaEffect" value="greenshimmer"/>
</attack>
<attack name="speed" interval="1000" chance="12" radius="6" target="0" speedchange="-400" duration="60000">
<attribute key="areaEffect" value="poison"/>
</attack>
<attack name="strength" interval="1000" chance="8" radius="5" target="0">
<attribute key="areaEffect" value="blackspark"/>
</attack>
<attack name="fire" interval="1000" chance="1000" range="7" radius="7" target="1" min="-30000" max="-35000">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="lifedrain" interval="1000" chance="15" length="8" spread="0" min="-3000" max="-4450">
<attribute key="areaEffect" value="redshimmer"/>
</attack>
</attacks>
<defenses armor="160" defense="160">
<defense name="healing" interval="1000" chance="15" min="5000" max="10000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="healing" interval="1000" chance="25" min="1000" max="2000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="speed" interval="1000" chance="8" speedchange="501" duration="5000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
</defenses>
<immunities>
<immunity physical="0"/>
<immunity energy="1"/>
<immunity fire="1"/>
<immunity poison="1"/>
<immunity lifedrain="1"/>
<immunity paralyze="0"/>
<immunity outfit="1"/>
<immunity drunk="1"/>
<immunity invisible="1"/>
</immunities>
<summons maxSummons="1">
<summon name="bazir" interval="1000" chance="15" max="1"/>
</summons>
<voices interval="5000" chance="10">
<voice sentence="BOW TO THE POWER OF THE RUTHLESS SEVEN!" yell="1"/>
<voice sentence="Slay your friends and I will spare you!"/>
<voice sentence="DON'T BE AFRAID, I AM COMING IN PEACE!" yell="1"/>
<voice sentence="COME HERE! FREE ITEMS FOR EVERYONE!" yell="1"/>
</voices>
<loot capacity="5000">
<item id="2142" countmax="1" chance="3500"/>
<item id="2231" countmax="1" chance="9000"/>
<item id="2144" countmax="15" chance="15000"/>
<item id="2158" countmax="1" chance="1500"/>
<item id="2195" countmax="1" chance="4000"/>
<item id="2186" countmax="1" chance="3500"/>
<item id="2192" countmax="1" chance="2500"/>
<item id="2125" countmax="1" chance="1500"/>
<item id="2124" countmax="1" chance="5500"/>
<item id="2520" countmax="1" chance="15500"/>
<item id="2462" countmax="1" chance="11000"/>
<item id="2387" countmax="1" chance="20000"/>
<item id="2434" countmax="1" chance="4500"/>
<item id="2167" countmax="1" chance="13500"/>
<item id="2432" countmax="1" chance="17000"/>
<item id="2393" countmax="1" chance="12500"/>
<item id="2148" countmax="100" chance="99900"/>
<item id="2148" countmax="100" chance="77700"/>
<item id="2148" countmax="100" chance="66600"/>
<item id="2179" countmax="1" chance="8000"/>
<item id="2470" countmax="1" chance="5000"/>
<item id="2033" countmax="1" chance="7500"/>
<item id="2418" countmax="1" chance="4500"/>
<item id="2182" countmax="1" chance="3500"/>
<item id="2155" countmax="1" chance="1500"/>
<item id="2188" countmax="1" chance="2500"/>
<item id="2396" countmax="1" chance="7500"/>
<item id="2177" countmax="1" chance="1000"/>
<item id="2162" countmax="1" chance="11500"/>
<item id="2472" countmax="1" chance="3000"/>
<item id="2514" countmax="1" chance="7500"/>
<item id="2164" countmax="1" chance="5000"/>
<item id="2178" countmax="1" chance="4000"/>
<item id="2176" countmax="1" chance="12000"/>
<item id="2171" countmax="1" chance="4500"/>
<item id="2200" countmax="1" chance="4500"/>
<item id="1982" countmax="1" chance="2600"/>
<item id="2214" countmax="1" chance="13000"/>
<item id="2123" countmax="1" chance="3500"/>
<item id="2170" countmax="1" chance="13000"/>
<item id="2402" countmax="1" chance="15500"/>
<item id="2436" countmax="1" chance="5000"/>
<item id="2150" countmax="20" chance="13500"/>
<item id="2145" countmax="5" chance="9500"/>
<item id="2149" countmax="10" chance="15500"/>
<item id="2146" countmax="10" chance="13500"/>
<item id="2165" countmax="1" chance="9500"/>
<item id="2197" countmax="1" chance="4000"/>
<item id="2174" countmax="1" chance="2500"/>
<item id="2151" countmax="7" chance="14000"/>
<item id="2112" countmax="1" chance="14500"/>
<item id="2421" countmax="1" chance="13500"/>
<item id="2377" countmax="1" chance="20000"/>
<item id="3955" countmax="1" chance="100"/>
<item id="2185" countmax="1" chance="3500"/>
<item id="2143" countmax="15" chance="12500"/>
</loot>
</monster>
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Basteman" nameDescription="Basteman" race="fire" experience="5999999900" speed="530" manacost="0">
<health now="2700000" max="2700000"/>
<look type="285" corpse="8933"/>
<targetchange interval="2000" chance="10"/>
<strategy attack="65" defense="20"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="0"/>
<flag pushable="0"/>
<flag canpushitems="1"/>
<flag canpushcreatures="1"/>
<flag targetdistance="1"/>
<flag runonhealth="3000"/>
</flags>
<attacks>
<attack name="melee" interval="3000" skill="3600" attack="2900"/>
<attack name="manadrain" interval="1000" chance="7" range="7" min="-8000" max="-9000">
<attribute key="shootEffect" value="energy"/>
<attribute key="areaEffect" value="poff"/>
</attack>
<attack name="drunk" interval="1000" chance="7" range="7">
<attribute key="shootEffect" value="energy"/>
<attribute key="areaEffect" value="energyarea"/>
</attack>
<attack name="strength" interval="1000" chance="9" range="7">
<attribute key="shootEffect" value="largerock"/>
<attribute key="areaEffect" value="energyarea"/>
</attack>
<attack name="lifedrain" interval="1000" chance="10" radius="8" target="0" min="-2000" max="-3000">
<attribute key="areaEffect" value="bluebubble"/>
</attack>
<attack name="manadrain" interval="1000" chance="10" radius="8" target="0" min="-1000" max="-1400">
<attribute key="areaEffect" value="greenshimmer"/>
</attack>
<attack name="energy" interval="1000" chance="1009" length="8" spread="0" min="-3000" max="-3600">
<attribute key="areaEffect" value="energyarea"/>
</attack>
<attack name="speed" interval="1000" chance="12" radius="6" target="0" speedchange="-400" duration="60000">
<attribute key="areaEffect" value="poison"/>
</attack>
<attack name="strength" interval="1000" chance="8" radius="5" target="0">
<attribute key="areaEffect" value="blackspark"/>
</attack>
<attack name="outfit" interval="1000" chance="2" radius="8" target="0" monster="demon" duration="5000">
<attribute key="areaEffect" value="bluebubble"/>
</attack>
<attack name="outfit" interval="1000" chance="2" radius="8" target="0" item="3058" duration="5000">
<attribute key="areaEffect" value="bluebubble"/>
</attack>
<attack name="fire" interval="1000" chance="1000" range="7" radius="7" target="1" min="-65000" max="-85000">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="energy" interval="1000" chance="1000" range="7" radius="7" target="1" min="-45000" max="-55000">
<attribute key="shootEffect" value="energy"/>
<attribute key="areaEffect" value="energyarea"/>
</attack>
<attack name="lifedrain" interval="1000" chance="15" length="8" spread="0" min="-3000" max="-4450">
<attribute key="areaEffect" value="redshimmer"/>
</attack>
</attacks>
<defenses armor="160" defense="160">
<defense name="healing" interval="1000" chance="15" min="5000" max="10000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="healing" interval="1000" chance="25" min="1000" max="2000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
<defense name="speed" interval="1000" chance="8" speedchange="501" duration="5000">
<attribute key="areaEffect" value="redshimmer"/>
</defense>
<defense name="outfit" interval="1000" chance="2" item="2916" duration="7000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<immunities>
<immunity physical="0"/>
<immunity energy="1"/>
<immunity fire="1"/>
<immunity poison="1"/>
<immunity lifedrain="1"/>
<immunity paralyze="0"/>
<immunity outfit="1"/>
<immunity drunk="1"/>
<immunity invisible="1"/>
</immunities>
<summons maxSummons="2">
<summon name="bazor" interval="1000" chance="15" max="1"/>
</summons>
<voices interval="5000" chance="10">
<voice sentence="BOW TO THE POWER OF THE RUTHLESS SEVEN!" yell="1"/>
<voice sentence="Slay your friends and I will spare you!"/>
<voice sentence="DON'T BE AFRAID, I AM COMING IN PEACE!" yell="1"/>
<voice sentence="COME HERE! FREE ITEMS FOR EVERYONE!" yell="1"/>
</voices>
<loot capacity="5000">
<item id="2160" countmax="30" chance="350000"/>
<item id="2151" countmax="70" chance="3500000"/>
<item id="2185" countmax="1" chance="35000"/>
<item id="2472" countmax="1" chance="35000"/>
<item id="2520" countmax="1" chance="35000"/>
<item id="9933" countmax="1" chance="350000"/>
<item id="2640" countmax="1" chance="350000"/>
<item id="2143" countmax="15" chance="12500"/>
</loot>
</monster>
When changing experience="5999999900" to experience="9999999999999999999999999" gives the same. If you exceed the max exp that can give a monster, This should give 0 experience... Someone knows where is the mistake?
**
I would add that the second OTS have all the same and it works