• 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 Could someone check if my Training monk.xml files is writen right? TFS 1.2

Tarek

Premium User
Premium User
Joined
Jun 9, 2012
Messages
3,593
Solutions
4
Reaction score
1,183
Location
Sweden
GitHub
Taarek
Thisi s my Training monks.xml I can't import it on rme. and on console i get this error.

eh8DaPJ.png

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="Training Monk" race="blood" experience="0" speed="150" manacost="305">
    <health now="1000000000" max="1000000000"/>
    <look type="229" corpse="5967"/>
    <targetchange interval="4000" chance="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="50"/>
      <flag lightlevel="0"/>
      <flag lightcolor="0"/>
      <flag targetdistance="1"/>
      <flag runonhealth="0"/>
    </flags>
    <attacks>
    <attack name="melee" interval="20000" skill="10" attack="10"/>
    </attacks>
    <defenses armor="55" defense="55">
    <defense name="healing" interval="2000" chance="100" min="10000" max="1000000">
    <attribute key="areaEffect" value="blueshimmer"/>
    </defense>
    <loot>
    </loot>
</monster>
 
First of all, tab your scripts and you will easily find the issue.
Another tip is to either use an online xml validator or as I do with smaller files, notepad++.

If you are using notepad++ you can just mark the first line, use the arrow and go down till it stops lighting up.
In this case the problem is here:
Code:
 <defenses armor="55" defense="55">

It does not have an end tag and in this case you should add it after:
Code:
    <defense name="healing" interval="2000" chance="100" min="10000" max="1000000">
    <attribute key="areaEffect" value="blueshimmer"/>
    </defense>

Code:
    <defenses armor="55" defense="55">
        <defense name="healing" interval="2000" chance="100" min="10000" max="1000000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
 
First of all, tab your scripts and you will easily find the issue.
Another tip is to either use an online xml validator or as I do with smaller files, notepad++.

If you are using notepad++ you can just mark the first line, use the arrow and go down till it stops lighting up.
In this case the problem is here:
Code:
<defenses armor="55" defense="55">

It does not have an end tag and in this case you should add it after:
Code:
    <defense name="healing" interval="2000" chance="100" min="10000" max="1000000">
    <attribute key="areaEffect" value="blueshimmer"/>
    </defense>

Code:
    <defenses armor="55" defense="55">
        <defense name="healing" interval="2000" chance="100" min="10000" max="1000000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
Ty WibbenZ. :3
 
Back
Top