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

Monster Help?

XxDeathAvenger

New Member
Joined
May 5, 2011
Messages
95
Reaction score
2
Hi guys, I created a creature just to test and see if I could. But as I try to add it to the map, it says wrong format? Can anyone see anything wrong with this?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Dark Magic" nameDescription="Dark Magic" race="undead" experience="0" speed="400" manacost="03121223131">
    <health now="17000" max="17000"/>
    <look type="294" corpse="6324"/>
    <targetchange interval="4000" chance="9"/>
    <strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="1"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag staticattack="15"/>
        <flag lightlevel="0"/>
        <flag lightcolor="0"/>
        <flag targetdistance="2"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
    <attack name="physical" interval="2000" chance="6" range="7" target="1" min="-200" max="-1000">
            <attribute key="shootEffect" value="suddendeath"/>
            <attribute key="areaEffect" value="mortarea"/>
        <attack name="lifedrain" interval="2000" change="15" range="7" max="-7">
            <attribute key="areaEffect" value="greenshimmer"/>
        </attack>
    </attacks>
    <defenses armor="10" defense="45">
        <defense name="speed" interval="2000" chance="12" speedchange="310">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
        <defense name="healing" interval="2000" chance="10" min="200" max="400">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="Invisible" interval="2000" chance="10">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
    <elements>
        <element energyPercent="40"/>
        <element earthPercent="90"/>
        <element physicalPercent="60"/>
    </elements>
    <immunities>
        <immunity death="1"/>
        <immunity paralyze="1"/>
        <immunity invisible="1"/>
    </immunities>
    <voices interval="2000" chance="5">
        <voice sentence="Crackle!"/>
        <voice sentence="Tsshh"/>
        <voice sentence="AHHHHHH"/>
    </voices>
    <loot>
    <item id="10521" chance="575" /><!-- moon backpack -->
    <item id="8922" chance="400" />
    <item id="2792" chance="50000" />
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="2213" chance="12000">
        </inside>
    </item>
</loot>
















</monster>

I really appreciate all of the help you guys are providing, thank you!
 
Last edited by a moderator:
Line 61
Code:
<item id="2213" chance="12000">
should be
Code:
<item id="2213" chance="12000"/>

The /> at the end of the tag lets you know that this node has no sub-nodes associated with it.

If it did, lets us item as an example (since its the one with the error)
If item had sub nodes it would need a closing tag at the very least
Code:
<item id="2213" chance="12000">
</item>

If it doesn't have sub-nodes then we use just use the forward slash ( / ) just before the ( > ) sign
Code:
<item id="2213" chance="12000"/>
 
Last edited:
So it would be like so?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Dark Magic" nameDescription="Dark Magic" race="undead" experience="0" speed="400" manacost="03121223131">
    <health now="17000" max="17000"/>
    <look type="294" corpse="6324"/>
    <targetchange interval="4000" chance="9"/>
    <strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="1"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag staticattack="15"/>
        <flag lightlevel="0"/>
        <flag lightcolor="0"/>
        <flag targetdistance="2"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
    <attack name="physical" interval="2000" chance="6" range="7" target="1" min="-200" max="-1000">
            <attribute key="shootEffect" value="suddendeath"/>
            <attribute key="areaEffect" value="mortarea"/>
        <attack name="lifedrain" interval="2000" change="15" range="7" max="-7">
            <attribute key="areaEffect" value="greenshimmer"/>
        </attack>
    </attacks>
    <defenses armor="10" defense="45">
        <defense name="speed" interval="2000" chance="12" speedchange="310">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
        <defense name="healing" interval="2000" chance="10" min="200" max="400">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="Invisible" interval="2000" chance="10">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
    <elements>
        <element energyPercent="40"/>
        <element earthPercent="90"/>
        <element physicalPercent="60"/>
    </elements>
    <immunities>
        <immunity death="1"/>
        <immunity paralyze="1"/>
        <immunity invisible="1"/>
    </immunities>
    <voices interval="2000" chance="5">
        <voice sentence="Crackle!"/>
        <voice sentence="Tsshh"/>
        <voice sentence="AHHHHHH"/>
    </voices>
    <loot>
    <item id="10521" chance="575" /><!-- moon backpack -->
    <item id="8922" chance="400" />
    <item id="2792" chance="50000" />
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="2213" chance="12000"/>
        </inside>
    </item>
</loot>
















</monster>

I have added the / just before the > but I still get the same error.
 
The closing tag for line 22 was missing
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Dark Magic" nameDescription="Dark Magic" race="undead" experience="0" speed="400" manacost="03121223131">
    <health now="17000" max="17000"/>
    <look type="294" corpse="6324"/>
    <targetchange interval="4000" chance="9"/>
    <strategy attack="100" defense="0"/>
    <flags>
        <flag summonable="0"/>
        <flag attackable="1"/>
        <flag hostile="1"/>
        <flag illusionable="1"/>
        <flag convinceable="0"/>
        <flag pushable="0"/>
        <flag canpushitems="1"/>
        <flag staticattack="15"/>
        <flag lightlevel="0"/>
        <flag lightcolor="0"/>
        <flag targetdistance="2"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
    <attack name="physical" interval="2000" chance="6" range="7" target="1" min="-200" max="-1000">
        <attribute key="shootEffect" value="suddendeath"/>
        <attribute key="areaEffect" value="mortarea"/>
    </attack>
    <attack name="lifedrain" interval="2000" change="15" range="7" max="-7">
        <attribute key="areaEffect" value="greenshimmer"/>
    </attack>
    </attacks>
    <defenses armor="10" defense="45">
        <defense name="speed" interval="2000" chance="12" speedchange="310">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
        <defense name="healing" interval="2000" chance="10" min="200" max="400">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="Invisible" interval="2000" chance="10">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
    <elements>
        <element energyPercent="40"/>
        <element earthPercent="90"/>
        <element physicalPercent="60"/>
    </elements>
    <immunities>
        <immunity death="1"/>
        <immunity paralyze="1"/>
        <immunity invisible="1"/>
    </immunities>
    <voices interval="2000" chance="5">
        <voice sentence="Crackle!"/>
        <voice sentence="Tsshh"/>
        <voice sentence="AHHHHHH"/>
    </voices>
    <loot>
        <item id="10521" chance="575" /><!-- moon backpack -->
        <item id="8922" chance="400" />
        <item id="2792" chance="50000" />
        <item id="1987" chance="100000"><!-- bag -->
            <inside>
                <item id="2213" chance="12000"/>
            </inside>
        </item>
    </loot>
</monster>
 
Back
Top