• 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!

RevScripts (8.60) ADD NEW MONSTER ERROR. !HELP!

samuel157

/root
Joined
Mar 19, 2010
Messages
447
Solutions
3
Reaction score
49
Location
São Paulo, Brazil
GitHub
Samuel10M
[Warning - Monsters::loadMonster] Cannot load monster (Monstrengo) file (data/monster/Unknown/Monstrengo.xml).
Line: 64, Info: Extra content at the end of the document

XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Monstrengo" nameDescription="Monstrengo" race="blood" experience="666" speed="999" manacost="0">
  <health now="100" max="100"/>
  <look type="12" head="94" body="114" legs="79" feet="0" corpse="5527"/>
  <targetchange interval="" chance="1000000000"/>
  <strategy attack="1000000000" defense="1000000000"/>
  <flags>
    <flag summonable="0"/>
    <flag skull="5"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="0"/>
    <flag canpushcreatures="0"/>
    <flag targetdistance="0"/>
    <flag staticattack="0"/>
    <flag runonhealth="0"/>
  </flags>
      <attacks>
    <attack name="melee" interval="" min="-1000000000" max="-1000000000"/>
        <attack name="firecondition" interval="1000" chance="1000000000" range="100" min="-1000000000" max="-1000000000">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="yellowspark"/>
     </attack>
    <attack name="death" interval="1000" chance="1000000000" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="mortarea"/>
    </attack>
    <attack name="speed" interval="1000" chance="1000000000 radius="100" target="100" speedchange="-1000000000" duration="10000">
      <attribute key="areaEffect" value="poison"/>
    </attack>
    <attack name="strength" interval="1000" chance="1000000000" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="blackspark"/>
    </attack>
        <attack name="firefield" interval="1000" chance="1000000000" radius="100" target="100">
            <attribute key="areaEffect" value="explosion"/>
   </attack>
    <attack name="fire" interval="1000" chance="-8000" range="100" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>
       <attack name="fire" interval="1000" chance="1000000000" range="100" radius="100" target="100" min="-1000000000" max="-1000000000">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
     <attack name="fire" interval="1000" chance="1000000000" range="100" radius="100" target="1" min="-1000000000" max="-1000000000">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
    <attack name="manadrain" interval="1000" chance="1000000000" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="energyarea"/>
    </attack>
    <attack name="energy" interval="1000" chance="1000000000" length="100" spread="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="poisoncondition" interval="1000" chance="1000000000" length="100" spread="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="greenspark"/>
    </attack>
    <attack name="lifedrain" interval="1000" chance="1000000000" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="greenshimmer"/>
    </attack>
  </attacks>
  <defenses armor="10000" defense="10000">
    <defense name="healing" interval="1000" chance="1000000" min="1000000000" max="1000000000">
      <attribute key="areaEffect" value="blueshimmer"/>
    </defense>
    <defense name="speed" interval="2000" chance="1000000" speedchange="1000" duration="100000">
      <attribute key="areaEffect" value="redshimmer"/>
    </defense>
  </defenses>
  <immunities>
   <immunity physical="100"/>
    <immunity energy="100"/>
    <immunity fire="100"/>
    <immunity poison="100"/>
    <immunity lifedrain="100"/>
    <immunity paralyze="100"/>
    <immunity outfit="100"/>
    <immunity drunk="100"/>
    <immunity invisible="100"/>
    <immunity ice="100"/>
    <immunity death="100"/>
    <immunity holy="100"/>
  </immunities>
  <voices interval="5000" chance="10">
    <voice sentence="DESTRUCTION! TO ALL!" yell="1"/>
    <voice sentence="DESTRUCTION!" yell="1"/>
    <voice sentence="CHAOS!" yell="1"/>
     <voice sentence="EXPLOSION SPACE!" yell="1"/>
    <voice sentence="DEATH TO ALL!" yell="1"/>
  </voices>
  <loot capacity="5000">
    <item id="2157" countmax="100" chance="1000000000"/>
    <item id="9971" countmax="100" chance="1000000000"/>
    <item id="2159" countmax="100" chance="1000000000"/>
  </loot>
</monster>
 
Solution
Missing quote at line 30 after change value:
chance="1000000000 radius="100"

fixed code:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Monstrengo" nameDescription="Monstrengo" race="blood" experience="666" speed="999" manacost="0">
  <health now="100" max="100"/>
  <look type="12" head="94" body="114" legs="79" feet="0" corpse="5527"/>
  <targetchange interval="" chance="1000000000"/>
  <strategy attack="1000000000" defense="1000000000"/>
  <flags>
    <flag summonable="0"/>
    <flag skull="5"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="0"/>
    <flag canpushcreatures="0"/>
    <flag targetdistance="0"/>...
Missing quote at line 30 after change value:
chance="1000000000 radius="100"

fixed code:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Monstrengo" nameDescription="Monstrengo" race="blood" experience="666" speed="999" manacost="0">
  <health now="100" max="100"/>
  <look type="12" head="94" body="114" legs="79" feet="0" corpse="5527"/>
  <targetchange interval="" chance="1000000000"/>
  <strategy attack="1000000000" defense="1000000000"/>
  <flags>
    <flag summonable="0"/>
    <flag skull="5"/>
    <flag attackable="1"/>
    <flag hostile="1"/>
    <flag illusionable="0"/>
    <flag convinceable="0"/>
    <flag pushable="0"/>
    <flag canpushitems="0"/>
    <flag canpushcreatures="0"/>
    <flag targetdistance="0"/>
    <flag staticattack="0"/>
    <flag runonhealth="0"/>
  </flags>
      <attacks>
    <attack name="melee" interval="" min="-1000000000" max="-1000000000"/>
        <attack name="firecondition" interval="1000" chance="1000000000" range="100" min="-1000000000" max="-1000000000">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="yellowspark"/>
     </attack>
    <attack name="death" interval="1000" chance="1000000000" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="mortarea"/>
    </attack>
    <attack name="speed" interval="1000" chance="1000000000" radius="100" target="100" speedchange="-1000000000" duration="10000">
      <attribute key="areaEffect" value="poison"/>
    </attack>
    <attack name="strength" interval="1000" chance="1000000000" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="blackspark"/>
    </attack>
        <attack name="firefield" interval="1000" chance="1000000000" radius="100" target="100">
            <attribute key="areaEffect" value="explosion"/>
   </attack>
    <attack name="fire" interval="1000" chance="-8000" range="100" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>
       <attack name="fire" interval="1000" chance="1000000000" range="100" radius="100" target="100" min="-1000000000" max="-1000000000">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
     <attack name="fire" interval="1000" chance="1000000000" range="100" radius="100" target="1" min="-1000000000" max="-1000000000">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
    <attack name="manadrain" interval="1000" chance="1000000000" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="energyarea"/>
    </attack>
    <attack name="energy" interval="1000" chance="1000000000" length="100" spread="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="poisoncondition" interval="1000" chance="1000000000" length="100" spread="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="greenspark"/>
    </attack>
    <attack name="lifedrain" interval="1000" chance="1000000000" radius="100" target="100" min="-1000000000" max="-1000000000">
      <attribute key="areaEffect" value="greenshimmer"/>
    </attack>
  </attacks>
  <defenses armor="10000" defense="10000">
    <defense name="healing" interval="1000" chance="1000000" min="1000000000" max="1000000000">
      <attribute key="areaEffect" value="blueshimmer"/>
    </defense>
    <defense name="speed" interval="2000" chance="1000000" speedchange="1000" duration="100000">
      <attribute key="areaEffect" value="redshimmer"/>
    </defense>
  </defenses>
  <immunities>
   <immunity physical="100"/>
    <immunity energy="100"/>
    <immunity fire="100"/>
    <immunity poison="100"/>
    <immunity lifedrain="100"/>
    <immunity paralyze="100"/>
    <immunity outfit="100"/>
    <immunity drunk="100"/>
    <immunity invisible="100"/>
    <immunity ice="100"/>
    <immunity death="100"/>
    <immunity holy="100"/>
  </immunities>
  <voices interval="5000" chance="10">
    <voice sentence="DESTRUCTION! TO ALL!" yell="1"/>
    <voice sentence="DESTRUCTION!" yell="1"/>
    <voice sentence="CHAOS!" yell="1"/>
     <voice sentence="EXPLOSION SPACE!" yell="1"/>
    <voice sentence="DEATH TO ALL!" yell="1"/>
  </voices>
  <loot capacity="5000">
    <item id="2157" countmax="100" chance="1000000000"/>
    <item id="9971" countmax="100" chance="1000000000"/>
    <item id="2159" countmax="100" chance="1000000000"/>
  </loot>
</monster>

Next time try to use some XML validator ;)
First entry in google using phrase "xml validator":
XML Validation: XML Validation (https://www.xmlvalidation.com/)
 
Solution
Back
Top