• 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 [SOLVED] Trying to import a new Trainer monster to RME - failure.

AdiMit

c(;
Joined
May 2, 2016
Messages
70
Solutions
2
Reaction score
3
Hello guys,
as the title states I'm experiencing problems trying to import my new monster (Training Monk) to RME (Tibia version 8.60)

I get this error:
"Error OT data file 'C:\...\data\monster\Monks\training monk.xml'. Couldn't open file 'training monk.xml', invalid format?"

Here's the .xml file:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a training monk" race="blood" experience="10" speed="0" manacost="0">
    <health now="100000" max="100000"/>
    <look type="225" corpse="6080"/>
    <targetchange interval="5000" chance="0"/>
    <strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="0"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag canpushcreatures="0"/>
        <flag targetdistance="1"/>
        <flag staticattack="50"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
        <attack name="melee" interval="2000" min="-1" max="-2"/>
            <attribute key="areaEffect" value="redshimmer"/>
        </attack>
    </attacks>
    <defenses armor="0" defense="0">
        <defense name="healing" interval="1000" chance="100" min="90000" max="90000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="speed" interval="1000" chance="10" speedchange="300" duration="6000">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
    </defenses>
    <immunities>
        <immunity invisible="1"/>
    </immunities>
    <voices interval="5000" chance="10">
        <voice sentence="Practise makes perfect!"/>
        <voice sentence="Work out!"/>
        <voice sentence="Try harder!"/>
    </voices>
    <loot>
        <item id="2148" countmax="20" chance="100000"/><!-- gold coin -->
        <item id="2439" chance="400"/><!-- daramanian mace -->
        <item id="1949" chance="10000"/><!-- scroll -->
        <item id="2467" chance="10000"/><!-- leather armor -->
        <item id="2642" chance="6666"/><!-- sandals -->
        <item id="3976" countmax="10" chance="50000"/><!-- worm -->
        <item id="1987" chance="100000"><!-- bag -->
            <inside>
                <item id="2177" countmax="1" chance="1000"/><!-- life crystal -->
                <item id="2044" chance="6666"/><!-- lamp -->
                <item id="2689" countmax="3" chance="20000"/><!-- bread -->
                <item id="2401" chance="3333"/><!-- staff -->
                <item id="2440" chance="100"/><!-- daramanian waraxe -->
                <item id="2166" chance="1428"/><!-- power ring -->
                <item id="1949" chance="20000"/><!-- scroll -->
                <item id="2193" chance="1200"/><!-- ankh -->
            </inside>
        </item>
    </loot>
</monster>

Thank you in advance for your help!
Best regards!
 
Solution
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a training monk" race="blood" experience="10" speed="0" manacost="0">
    <health now="100000" max="100000"/>
    <look type="225" corpse="6080"/>
    <targetchange interval="5000" chance="0"/>
    <strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="0"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag canpushcreatures="0"/>
        <flag targetdistance="1"/>
        <flag staticattack="50"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
        <attack...
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a training monk" race="blood" experience="10" speed="0" manacost="0">
    <health now="100000" max="100000"/>
    <look type="225" corpse="6080"/>
    <targetchange interval="5000" chance="0"/>
    <strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="0"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag canpushcreatures="0"/>
        <flag targetdistance="1"/>
        <flag staticattack="50"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
        <attack name="melee" interval="2000" min="-1" max="-2">
            <attribute key="areaEffect" value="redshimmer"/>
        </attack>
    </attacks>
    <defenses armor="0" defense="0">
        <defense name="healing" interval="1000" chance="100" min="90000" max="90000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="speed" interval="1000" chance="10" speedchange="300" duration="6000">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
    </defenses>
    <immunities>
        <immunity invisible="1"/>
    </immunities>
    <voices interval="5000" chance="10">
        <voice sentence="Practise makes perfect!"/>
        <voice sentence="Work out!"/>
        <voice sentence="Try harder!"/>
    </voices>
    <loot>
        <item id="2148" countmax="20" chance="100000"/><!-- gold coin -->
        <item id="2439" chance="400"/><!-- daramanian mace -->
        <item id="1949" chance="10000"/><!-- scroll -->
        <item id="2467" chance="10000"/><!-- leather armor -->
        <item id="2642" chance="6666"/><!-- sandals -->
        <item id="3976" countmax="10" chance="50000"/><!-- worm -->
        <item id="1987" chance="100000"><!-- bag -->
            <inside>
                <item id="2177" countmax="1" chance="1000"/><!-- life crystal -->
                <item id="2044" chance="6666"/><!-- lamp -->
                <item id="2689" countmax="3" chance="20000"/><!-- bread -->
                <item id="2401" chance="3333"/><!-- staff -->
                <item id="2440" chance="100"/><!-- daramanian waraxe -->
                <item id="2166" chance="1428"/><!-- power ring -->
                <item id="1949" chance="20000"/><!-- scroll -->
                <item id="2193" chance="1200"/><!-- ankh -->
            </inside>
        </item>
    </loot>
</monster>
Error was on line 21
PHP:
<attack name="melee" interval="2000" min="-1" max="-2"/>
should be this
PHP:
<attack name="melee" interval="2000" min="-1" max="-2">
 
Solution
Back
Top