• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Problem with Monsters

Creon

Well-Known Member
Joined
Aug 25, 2009
Messages
709
Reaction score
94
Location
United States
I'm getting error messages with several monsters saying the same thing:
Code:
data/monster/Barbarians/barbarian brutetamer/.xml:25: parser error : expected '>'   </attacks>
                                                                                            ^

This is happening with several monsters, and I can't seem to figure it out. Here is the monster file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
	<monster name="Barbarian Brutetamer" nameDescription="a barbarian brutetamer" race="blood" experience="90" speed="178" manacost="0">
	<health now="145" max="145"/>
	<look type="264" head="78" body="116" legs="95" feet="121" corpse="6081"/>
	<targetchange interval="2000" chance="5"/>
	<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 staticattack="90"/>
		<flag lightlevel="0"/>
		<flag lightcolor="0"/>
		<flag targetdistance="4"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="10" attack="20"/>
		<attack name="physical" interval="2000" chance="30" range="7" radius="1" target="1" min="-0" max="-34">
			<attribute key="shootEffect" value="snowball"/>
	</attacks>
	<defenses>
	<defenses armor="10" defense="10">
	<defense name="healing" interval="2000" chance="20" min="30" max="90">
		<attribute key="areaEffect" value="blueshimmer"/>
	</defenses>
	<elements>
		<element icePercent="50"/>
		<element holyPercent="10"/>
		<element earthPercent="20"/>
		<element physicalPercent="-10"/>
		<element deathPercent="-5"/>
	</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="2">
		<summon name="War Wolf" interval="2000" chance="20" max="2"/>
	</summons>
	<voices interval="2000" chance="10">
		<voice sentence="To me, creatures of the wild!"/>
		<voice sentence="My instincts tell me about your cowardice."/>
		<voice sentence="Feel the power of the beast!"/>

	</voices>
	<loot>
    <item id="2671" countmax="3" chance="9250" /><!-- ham -->
    <item id="2148" countmax="15" chance="48325" /><!-- gold coin -->
    <item id="3965" chance="5200" /><!-- hunting spear -->
    <item id="7343" chance="8550" /><!-- fur bag -->
    <item id="2686" countmax="2" chance="8500" /><!-- corncob -->
    <item id="2401" chance="7250" /><!-- staff -->
    <item id="2464" chance="9600" /><!-- chain armor -->
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="7620" chance="1300" /><!-- mana potion -->
            <item id="1958" chance="4700" /><!-- book -->
            <item id="7457" chance="625" /><!-- fur boots -->
            <item id="7379" chance="750" /><!-- brutetamer's staff -->
            <item id="7464" chance="625" /><!-- mammoth fur shorts -->
            <item id="7463" chance="550" /><!-- mammoth fur cape -->
        </inside>
    </item>
</loot>
</monster>
 
After every attack put this </attack>
LUA:
<?xml version="1.0" encoding="UTF-8"?>
	<monster name="Barbarian Brutetamer" nameDescription="a barbarian brutetamer" race="blood" experience="90" speed="178" manacost="0">
	<health now="145" max="145"/>
	<look type="264" head="78" body="116" legs="95" feet="121" corpse="6081"/>
	<targetchange interval="2000" chance="5"/>
	<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 staticattack="90"/>
		<flag lightlevel="0"/>
		<flag lightcolor="0"/>
		<flag targetdistance="4"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="10" attack="20"/>
		<attack name="physical" interval="2000" chance="30" range="7" radius="1" target="1" min="-0" max="-34">
                <attribute key="shootEffect" value="snowball"/>
		</attack>
	</attacks>
	<defenses>
	<defenses armor="10" defense="10">
	<defense name="healing" interval="2000" chance="20" min="30" max="90">
		<attribute key="areaEffect" value="blueshimmer"/>
	</defenses>
	<elements>
		<element icePercent="50"/>
		<element holyPercent="10"/>
		<element earthPercent="20"/>
		<element physicalPercent="-10"/>
		<element deathPercent="-5"/>
	</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="2">
		<summon name="War Wolf" interval="2000" chance="20" max="2"/>
	</summons>
	<voices interval="2000" chance="10">
		<voice sentence="To me, creatures of the wild!"/>
		<voice sentence="My instincts tell me about your cowardice."/>
		<voice sentence="Feel the power of the beast!"/>

	</voices>
	<loot>
    <item id="2671" countmax="3" chance="9250" /><!-- ham -->
    <item id="2148" countmax="15" chance="48325" /><!-- gold coin -->
    <item id="3965" chance="5200" /><!-- hunting spear -->
    <item id="7343" chance="8550" /><!-- fur bag -->
    <item id="2686" countmax="2" chance="8500" /><!-- corncob -->
    <item id="2401" chance="7250" /><!-- staff -->
    <item id="2464" chance="9600" /><!-- chain armor -->
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="7620" chance="1300" /><!-- mana potion -->
            <item id="1958" chance="4700" /><!-- book -->
            <item id="7457" chance="625" /><!-- fur boots -->
            <item id="7379" chance="750" /><!-- brutetamer's staff -->
            <item id="7464" chance="625" /><!-- mammoth fur shorts -->
            <item id="7463" chance="550" /><!-- mammoth fur cape -->
        </inside>
    </item>
</loot>
</monster>
 
That seemed to work, but there are several more problems with the monster:
DZGgN3q.png


Here is the monster again:
Code:
<?xml version="1.0" encoding="UTF-8"?>
	<monster name="Barbarian Brutetamer" nameDescription="a barbarian brutetamer" race="blood" experience="90" speed="178" manacost="0">
	<health now="145" max="145"/>
	<look type="264" head="78" body="116" legs="95" feet="121" corpse="6081"/>
	<targetchange interval="2000" chance="5"/>
	<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 staticattack="90"/>
		<flag lightlevel="0"/>
		<flag lightcolor="0"/>
		<flag targetdistance="4"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="10" attack="20"/>
		<attack name="physical" interval="2000" chance="30" range="7" radius="1" target="1" min="-0" max="-34">
                <attribute key="shootEffect" value="snowball"/>
		</attack>
	</attacks>
	<defenses>
	<defenses armor="10" defense="10">
	<defense name="healing" interval="2000" chance="20" min="30" max="90">
		<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	<elements>
		<element icePercent="50"/>
		<element holyPercent="10"/>
		<element earthPercent="20"/>
		<element physicalPercent="-10"/>
		<element deathPercent="-5"/>
	</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="2">
		<summon name="War Wolf" interval="2000" chance="20" max="2"/>
	</summons>
	<voices interval="2000" chance="10">
		<voice sentence="To me, creatures of the wild!"/>
		<voice sentence="My instincts tell me about your cowardice."/>
		<voice sentence="Feel the power of the beast!"/>
 
	</voices>
	<loot>
    <item id="2671" countmax="3" chance="9250" /><!-- ham -->
    <item id="2148" countmax="15" chance="48325" /><!-- gold coin -->
    <item id="3965" chance="5200" /><!-- hunting spear -->
    <item id="7343" chance="8550" /><!-- fur bag -->
    <item id="2686" countmax="2" chance="8500" /><!-- corncob -->
    <item id="2401" chance="7250" /><!-- staff -->
    <item id="2464" chance="9600" /><!-- chain armor -->
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="7620" chance="1300" /><!-- mana potion -->
            <item id="1958" chance="4700" /><!-- book -->
            <item id="7457" chance="625" /><!-- fur boots -->
            <item id="7379" chance="750" /><!-- brutetamer's staff -->
            <item id="7464" chance="625" /><!-- mammoth fur shorts -->
            <item id="7463" chance="550" /><!-- mammoth fur cape -->
        </inside>
    </item>
</loot>
</monster>
 
missing </defenses>

LUA:
<?xml version="1.0" encoding="UTF-8"?>
	<monster name="Barbarian Brutetamer" nameDescription="a barbarian brutetamer" race="blood" experience="90" speed="178" manacost="0">
	<health now="145" max="145"/>
	<look type="264" head="78" body="116" legs="95" feet="121" corpse="6081"/>
	<targetchange interval="2000" chance="5"/>
	<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 staticattack="90"/>
		<flag lightlevel="0"/>
		<flag lightcolor="0"/>
		<flag targetdistance="4"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="10" attack="20"/>
		<attack name="physical" interval="2000" chance="30" range="7" radius="1" target="1" min="-0" max="-34">
                <attribute key="shootEffect" value="snowball"/>
		</attack>
	</attacks>
	<defenses>
	<defenses armor="10" defense="10">
	<defense name="healing" interval="2000" chance="20" min="30" max="90">
		<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
		</defenses>
	<elements>
		<element icePercent="50"/>
		<element holyPercent="10"/>
		<element earthPercent="20"/>
		<element physicalPercent="-10"/>
		<element deathPercent="-5"/>
	</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="2">
		<summon name="War Wolf" interval="2000" chance="20" max="2"/>
	</summons>
	<voices interval="2000" chance="10">
		<voice sentence="To me, creatures of the wild!"/>
		<voice sentence="My instincts tell me about your cowardice."/>
		<voice sentence="Feel the power of the beast!"/>
 
	</voices>
	<loot>
    <item id="2671" countmax="3" chance="9250" /><!-- ham -->
    <item id="2148" countmax="15" chance="48325" /><!-- gold coin -->
    <item id="3965" chance="5200" /><!-- hunting spear -->
    <item id="7343" chance="8550" /><!-- fur bag -->
    <item id="2686" countmax="2" chance="8500" /><!-- corncob -->
    <item id="2401" chance="7250" /><!-- staff -->
    <item id="2464" chance="9600" /><!-- chain armor -->
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="7620" chance="1300" /><!-- mana potion -->
            <item id="1958" chance="4700" /><!-- book -->
            <item id="7457" chance="625" /><!-- fur boots -->
            <item id="7379" chance="750" /><!-- brutetamer's staff -->
            <item id="7464" chance="625" /><!-- mammoth fur shorts -->
            <item id="7463" chance="550" /><!-- mammoth fur cape -->
        </inside>
    </item>
</loot>
</monster>
 
missing </defenses>

LUA:
<?xml version="1.0" encoding="UTF-8"?>
	<monster name="Barbarian Brutetamer" nameDescription="a barbarian brutetamer" race="blood" experience="90" speed="178" manacost="0">
	<health now="145" max="145"/>
	<look type="264" head="78" body="116" legs="95" feet="121" corpse="6081"/>
	<targetchange interval="2000" chance="5"/>
	<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 staticattack="90"/>
		<flag lightlevel="0"/>
		<flag lightcolor="0"/>
		<flag targetdistance="4"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="10" attack="20"/>
		<attack name="physical" interval="2000" chance="30" range="7" radius="1" target="1" min="-0" max="-34">
                <attribute key="shootEffect" value="snowball"/>
		</attack>
	</attacks>
	<defenses>
	<defenses armor="10" defense="10">
	<defense name="healing" interval="2000" chance="20" min="30" max="90">
		<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
		</defenses>
	<elements>
		<element icePercent="50"/>
		<element holyPercent="10"/>
		<element earthPercent="20"/>
		<element physicalPercent="-10"/>
		<element deathPercent="-5"/>
	</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="2">
		<summon name="War Wolf" interval="2000" chance="20" max="2"/>
	</summons>
	<voices interval="2000" chance="10">
		<voice sentence="To me, creatures of the wild!"/>
		<voice sentence="My instincts tell me about your cowardice."/>
		<voice sentence="Feel the power of the beast!"/>
 
	</voices>
	<loot>
    <item id="2671" countmax="3" chance="9250" /><!-- ham -->
    <item id="2148" countmax="15" chance="48325" /><!-- gold coin -->
    <item id="3965" chance="5200" /><!-- hunting spear -->
    <item id="7343" chance="8550" /><!-- fur bag -->
    <item id="2686" countmax="2" chance="8500" /><!-- corncob -->
    <item id="2401" chance="7250" /><!-- staff -->
    <item id="2464" chance="9600" /><!-- chain armor -->
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="7620" chance="1300" /><!-- mana potion -->
            <item id="1958" chance="4700" /><!-- book -->
            <item id="7457" chance="625" /><!-- fur boots -->
            <item id="7379" chance="750" /><!-- brutetamer's staff -->
            <item id="7464" chance="625" /><!-- mammoth fur shorts -->
            <item id="7463" chance="550" /><!-- mammoth fur cape -->
        </inside>
    </item>
</loot>
</monster>

That didn't appear to do anything. There is still a problem with the defense at line 27, and the monster tag.
 
Try:

LUA:
<?xml version="1.0" encoding="UTF-8"?>
	<monster name="Barbarian Brutetamer" nameDescription="a barbarian brutetamer" race="blood" experience="90" speed="178" manacost="0">
	<health now="145" max="145"/>
	<look type="264" head="78" body="116" legs="95" feet="121" corpse="6081"/>
	<targetchange interval="2000" chance="5"/>
	<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 staticattack="90"/>
		<flag lightlevel="0"/>
		<flag lightcolor="0"/>
		<flag targetdistance="4"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="10" attack="20"/>
		<attack name="physical" interval="2000" chance="30" range="7" radius="1" target="1" min="-0" max="-34">
			<attribute key="shootEffect" value="snowball"/>
		</attack>
		<attack name="skills" interval="2000" chance="5" range="7" radius="1" target="1" axe="-1">
			<attribute key="shootEffect" value="snowball"/>
		</attack>
		<attack name="skills" interval="2000" chance="5" range="7" radius="1" target="1" sword="-1">
			<attribute key="shootEffect" value="snowball"/>
		</attack>
		<attack name="skills" interval="2000" chance="5" range="7" radius="1" target="1" club="-1">
			<attribute key="shootEffect" value="snowball"/>
		</attack>
		<attack name="skills" interval="2000" chance="5" range="7" radius="1" target="1" shielding="-1">
			<attribute key="shootEffect" value="snowball"/>
		</attack>
		<attack name="skills" interval="2000" chance="5" range="7" radius="1" target="1" distance="-1">
			<attribute key="shootEffect" value="snowball"/>
		</attack>
	</attacks>
	<defenses armor="10" defense="10">
	<defense name="healing" interval="2000" chance="20" min="30" max="90">
		<attribute key="areaEffect" value="blueshimmer"/>
	</defense>
	</defenses>
	<elements>
		<element icePercent="50"/>
		<element holyPercent="10"/>
		<element earthPercent="20"/>
		<element physicalPercent="-10"/>
		<element deathPercent="-5"/>
	</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="2">
		<summon name="War Wolf" interval="2000" chance="20" max="2"/>
	</summons>
	<voices interval="2000" chance="10">
		<voice sentence="To me, creatures of the wild!"/>
		<voice sentence="My instincts tell me about your cowardice."/>
		<voice sentence="Feel the power of the beast!"/>

	</voices>
	<loot>
    <item id="2671" countmax="3" chance="9250" /><!-- ham -->
    <item id="2148" countmax="15" chance="48325" /><!-- gold coin -->
    <item id="3965" chance="5200" /><!-- hunting spear -->
    <item id="7343" chance="8550" /><!-- fur bag -->
    <item id="2686" countmax="2" chance="8500" /><!-- corncob -->
    <item id="2401" chance="7250" /><!-- staff -->
    <item id="2464" chance="9600" /><!-- chain armor -->
            <item id="7620" chance="1300" /><!-- mana potion -->
            <item id="1958" chance="4700" /><!-- book -->
            <item id="7457" chance="625" /><!-- fur boots -->
            <item id="7379" chance="750" /><!-- brutetamer's staff -->
            <item id="7464" chance="625" /><!-- mammoth fur shorts -->
            <item id="7463" chance="550" /><!-- mammoth fur cape -->
</loot>

</monster>
 
Try:

XML:
<?xml version="1.0" encoding="UTF-8"?>
	<monster name="Barbarian Brutetamer" nameDescription="a barbarian brutetamer" race="blood" experience="90" speed="178" manacost="0">
	<health now="145" max="145"/>
	<look type="264" head="78" body="116" legs="95" feet="121" corpse="6081"/>
	<targetchange interval="2000" chance="5"/>
	<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 staticattack="90"/>
		<flag lightlevel="0"/>
		<flag lightcolor="0"/>
		<flag targetdistance="4"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="10" attack="20"/>
		<attack name="physical" interval="2000" chance="30" range="7" radius="1" target="1" min="-0" max="-34">
			<attribute key="shootEffect" value="snowball"/>
	</attack>
	</attacks>
	<defenses>
	<defenses armor="10" defense="10">
	<defense name="healing" interval="2000" chance="20" min="30" max="90">
		<attribute key="areaEffect" value="blueshimmer"/>
	</defenses>
	<elements>
		<element icePercent="50"/>
		<element holyPercent="10"/>
		<element earthPercent="20"/>
		<element physicalPercent="-10"/>
		<element deathPercent="-5"/>
	</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="2">
		<summon name="War Wolf" interval="2000" chance="20" max="2"/>
	</summons>
	<voices interval="2000" chance="10">
		<voice sentence="To me, creatures of the wild!"/>
		<voice sentence="My instincts tell me about your cowardice."/>
		<voice sentence="Feel the power of the beast!"/>

	</voices>
	<loot>
    <item id="2671" countmax="3" chance="9250" /><!-- ham -->
    <item id="2148" countmax="15" chance="48325" /><!-- gold coin -->
    <item id="3965" chance="5200" /><!-- hunting spear -->
    <item id="7343" chance="8550" /><!-- fur bag -->
    <item id="2686" countmax="2" chance="8500" /><!-- corncob -->
    <item id="2401" chance="7250" /><!-- staff -->
    <item id="2464" chance="9600" /><!-- chain armor -->
    <item id="1987" chance="100000"><!-- bag -->
        <inside>
            <item id="7620" chance="1300" /><!-- mana potion -->
            <item id="1958" chance="4700" /><!-- book -->
            <item id="7457" chance="625" /><!-- fur boots -->
            <item id="7379" chance="750" /><!-- brutetamer's staff -->
            <item id="7464" chance="625" /><!-- mammoth fur shorts -->
            <item id="7463" chance="550" /><!-- mammoth fur cape -->
        </inside>
    </item>
</loot>
</monster>
 
Back
Top