• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Monster Bugs

Gangsta-jr

You are an elite knight
Senator
Joined
Jan 13, 2008
Messages
1,547
Reaction score
3
Location
Bottrop, Germany
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Vampire" nameDescription="a vampire" race="undead" experience="290" speed="220" manacost="0">
<health now="450" max="450"/>
<look type="68" head="0" body="0" legs="0" feet="0" corpse="2956"/>
<targetchange interval="2000" chance="5"/>
<strategy attack="70" defense="30"/>
<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 runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" minl="-1" max="-150"/>
<attack name="lifedrain" interval="1000" chance="20" range="1" min="-50" max="-120"/>
<attribute key="areaEffect" value="redshimmer"/>
</attack>
<attack name="speed" interval="1000" chance="12" range="7" speedchange="-350" duration="30000">
<attribute key="areaEffect" value="redshimmer"/>
</attack>
<attack name="paralyze" interval="5000" chance="45"/>
</attack>
</attacks>

<defenses armor="27" defense="38">
<defense name="outfit" interval="1000" chance="1" monster="bat" duration="6000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>
<immunities>
<immunity physical="0"/>
<immunity energy="0"/>
<immunity fire="0"/>
<immunity poison="1"/>
<immunity lifedrain="1"/>
<immunity paralyze="1"/>
<immunity outfit="1"/>
<immunity drunk="1"/>
<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="BLOOD!" yell="1"/>
<voice sentence="Let me kiss your neck."/>
<voice sentence="I smell warm blood."/>
<voice sentence="I call you, my bats!, come!"/>
</voices>

When i start the ot it says

data/monster/vampire.xml:29: parser error : Extra content at the end of the document
</attacks>
^
 
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Cave Rat" nameDescription="a cave rat" race="blood" experience="10" speed="150" manacost="250">
<health now="30" max="30"/>
<look type="56" head="20" body="30" legs="40" feet="50" corpse="2813"/>
<targetchange interval="60000" chance="0"/>
<strategy attack="100" defense="0"/>
<flags>
<flag summonable="1"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="1"/>
<flag convinceable="1"/>
<flag pushable="1"/>
<flag canpushitems="0"/>
<flag staticattack="50"/>
<flag lightlevel="0"/>
<flag lightcolor="0"/>
<flag targetdistance="1"/>
<flag runonhealth="3"/>
</flags>
<attacks>
<attack name="melee" interval="2000" min="-1" max="-10"/>
</attacks>
<defenses armor="2" defense="4"/>
<immunities>
<immunity physical="0"/>
<immunity energy="0"/>
<immunity fire="0"/>
<immunity poison="0"/>
<immunity lifedrain="0"/>
<immunity paralyze="0"/>
<immunity outfit="0"/>
<immunity drunk="0"/>
<immunity invisible="0"/>
</immunities>
<voices interval="5000" chance="10">
<voice sentence="Meeeeep!"/>
<voice sentence="Meep!"/>
</voices>
<loot>
<item id="2148" countmax="9" chance="30000"/> -- Gold Coin
<item id="2696" countmax="1" chance="50000"/> -- Cheese
<item id="2687" countmax="3" chance="5000"/> -- Cookies
<item id="3976" countmax="3" chance="5000"/> -- Worm
<item id="2650" countmax="1" chance="800"/> -- Jacket
<item id="1987" countmax="1" chance="200"> -- Bag
<inside>
<item id="3976" countmax="3" chance="100000"> -- Worm
</inside>
</item>
</loot>
</monster>

Here is another Example the whole XML even with loot
I get like 5 errors on it when i start up the server
I compared that script to another Server and I dont know whats wrong
 
Code:
<attacks>
<attack name="melee" interval="2000" minl="-1" max="-150"/>
<attack name="lifedrain" interval="1000" chance="20" range="1" min="-50" max="-120">
<attribute key="areaEffect" value="redshimmer"/>
</attack>
<attack name="speed" interval="1000" chance="12" range="7" speedchange="-350" duration="30000">
<attribute key="areaEffect" value="redshimmer"/>
</attack>
</attacks>

<defenses armor="27" defense="38">
<defense name="outfit" interval="1000" chance="1" monster="bat" duration="6000">
<attribute key="areaEffect" value="blueshimmer"/>
</defense>
</defenses>

Try with this in vampire.

Code:
<item id="3976" countmax="3" chance="100000"/> -- Worm
and this in the other one.
 
Back
Top