• 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 Custom monster spawn error!

potatis

New Member
Joined
Feb 9, 2012
Messages
73
Reaction score
1
Hi, i just made a custom monster.
All the xml scripts is as it should. But when i /reload monster ingame, and try to spawn it. It doesn't work.

Here's the script:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Zorro" nameDescription="a zorro race="blood" experience="7000000" speed="2000" manacost="0">
	<health now="14550000" max="14550000"/>
	<look type="223" corpse="6076"/>
	<targetchange interval="5000" chance="20"/>
	<strategy attack="300" defense="100"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="0"/>
		<flag canpushcreatures="0"/>
		<flag staticattack="90"/>
		<flag targetdistance="11"/>
		<flag runonhealth="3"/>
	</flags>
	<attack name="melee" interval="2000" skill="300" min="-4000" max="-7000"/>
		<attack name="death" interval="1000" chance="70" length="8" spread="0" min="0" max="-800">
			<attribute key="areaEffect" value="mortarea"/>
		</attack>
		<attack name="death" interval="2000" chance="60" target="0" radius="4" min="-200" max="-700">
			<attribute key="areaEffect" value="icearea"/>
		</attack>
		<attack name="physical" interval="3000" chance="40" radius="5" target="1" min="-50" max="-2555">
			<attribute key="areaEffect" value="groundshaker"/>
		</attack>
		<attack name="fire" interval="2000" chance="50" radius="6" target="1" min="-50" max="-900">
			<attribute key="areaEffect" value="firearea"/>
			<attribute key="shootEffect" value="fire"/>
		</attack>
    <attack name="manadrain" interval="2000" chance="60" range="7" min="-300" max="-900">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="poison" interval="3000" chance="20" radius="6" target="0" min="-250" max="-550">
      <attribute key="areaEffect" value="poison"/>
    </attack>
    <attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-200" max="-400">
      <attribute key="areaEffect" value="energy"/>
    </attack>
    <attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-225" max="-375">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="21" radius="6" target="0" min="-200" max="-450">
      <attribute key="areaEffect" value="poff"/>
    </attack>
    <attack name="strength" interval="3000" chance="20" radius="5" target="0" min="-200" max="-600">
      <attribute key="areaEffect" value="blackspark"/>
    </attack>
    <attack name="firecondition" interval="3000" chance="20" range="7" radius="7" target="1" min="-200" max="-800">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="25" length="8" spread="0" min="-50" max="-250">
      <attribute key="areaEffect" value="greenspark"/>
    </attack>
	</attacks>
	<defenses armor="130" defense="88">
		<defense name="healing" interval="1000" chance="20" min="5000" max="10000">
			<attribute key="areaEffect" value="greenshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="4" speedchange="500" duration="7000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element icePercent="20"/>
		<element deathPercent="20"/>
		<element firePercent="-15"/>
	</elements>
	<immunities>
    <immunity name="paralyze"/>
		<immunity lifedrain="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="80">
		<voice sentence="Squack!!" yell="1"/>
	</voices>
	<loot>
		<item id="1987" chance="100000">
		<inside>
			<item id="2646" chance="1000"/> --Golden boots
		</inside>
		</item>
	</loot>
</monster>

And here is the other one in monster.xml:
<monster name="Zorro" file="Zorro.xml"/>

All names and capulitar letters are the same. I cant see why it should not work. Anyone?

- - - Updated - - -

When i write /m Zorro it does not spawn
 
Last edited:
you're missing a " after description name,

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Zorro" nameDescription="a zorro" race="blood" experience="7000000" speed="2000" manacost="0">
	<health now="14550000" max="14550000"/>
	<look type="223" head="0" body="0" legs="0" feet="0" corpse="6076"/>
	<targetchange interval="5000" chance="20"/>
	<strategy attack="300" defense="100"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="0"/>
		<flag canpushcreatures="0"/>
		<flag staticattack="90"/>
		<flag targetdistance="11"/>
		<flag runonhealth="3"/>
	</flags>
	<attack name="melee" interval="2000" skill="300" min="-4000" max="-7000"/>
		<attack name="death" interval="1000" chance="70" length="8" spread="0" min="0" max="-800">
			<attribute key="areaEffect" value="mortarea"/>
		</attack>
		<attack name="death" interval="2000" chance="60" target="0" radius="4" min="-200" max="-700">
			<attribute key="areaEffect" value="icearea"/>
		</attack>
		<attack name="physical" interval="3000" chance="40" radius="5" target="1" min="-50" max="-2555">
			<attribute key="areaEffect" value="groundshaker"/>
		</attack>
		<attack name="fire" interval="2000" chance="50" radius="6" target="1" min="-50" max="-900">
			<attribute key="areaEffect" value="firearea"/>
			<attribute key="shootEffect" value="fire"/>
		</attack>
    <attack name="manadrain" interval="2000" chance="60" range="7" min="-300" max="-900">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="poison" interval="3000" chance="20" radius="6" target="0" min="-250" max="-550">
      <attribute key="areaEffect" value="poison"/>
    </attack>
    <attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-200" max="-400">
      <attribute key="areaEffect" value="energy"/>
    </attack>
    <attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-225" max="-375">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="21" radius="6" target="0" min="-200" max="-450">
      <attribute key="areaEffect" value="poff"/>
    </attack>
    <attack name="strength" interval="3000" chance="20" radius="5" target="0" min="-200" max="-600">
      <attribute key="areaEffect" value="blackspark"/>
    </attack>
    <attack name="firecondition" interval="3000" chance="20" range="7" radius="7" target="1" min="-200" max="-800">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="25" length="8" spread="0" min="-50" max="-250">
      <attribute key="areaEffect" value="greenspark"/>
    </attack>
	</attacks>
	<defenses armor="130" defense="88">
		<defense name="healing" interval="1000" chance="20" min="5000" max="10000">
			<attribute key="areaEffect" value="greenshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="4" speedchange="500" duration="7000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element icePercent="20"/>
		<element deathPercent="20"/>
		<element firePercent="-15"/>
	</elements>
	<immunities>
    <immunity name="paralyze"/>
		<immunity lifedrain="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="80">
		<voice sentence="Squack!!" yell="1"/>
	</voices>
	<loot capacity="800">
		<item id="1987" countmax="1" chance="100000">
		<item id="2646" countmax="1" chance="1000"/> --Golden boots
	</loot>
</monster>
Changed the look type line, idk if it was affecting your script, but it should work :p
& Do you get any errors on your console? if yes take a picture and post it. :)
 
Last edited:
you're missing a " after description name,

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Zorro" nameDescription="a zorro" race="blood" experience="7000000" speed="2000" manacost="0">
	<health now="14550000" max="14550000"/>
	<look type="223" corpse="6076"/>
	<targetchange interval="5000" chance="20"/>
	<strategy attack="300" defense="100"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="0"/>
		<flag canpushcreatures="0"/>
		<flag staticattack="90"/>
		<flag targetdistance="11"/>
		<flag runonhealth="3"/>
	</flags>
	<attack name="melee" interval="2000" skill="300" min="-4000" max="-7000"/>
		<attack name="death" interval="1000" chance="70" length="8" spread="0" min="0" max="-800">
			<attribute key="areaEffect" value="mortarea"/>
		</attack>
		<attack name="death" interval="2000" chance="60" target="0" radius="4" min="-200" max="-700">
			<attribute key="areaEffect" value="icearea"/>
		</attack>
		<attack name="physical" interval="3000" chance="40" radius="5" target="1" min="-50" max="-2555">
			<attribute key="areaEffect" value="groundshaker"/>
		</attack>
		<attack name="fire" interval="2000" chance="50" radius="6" target="1" min="-50" max="-900">
			<attribute key="areaEffect" value="firearea"/>
			<attribute key="shootEffect" value="fire"/>
		</attack>
    <attack name="manadrain" interval="2000" chance="60" range="7" min="-300" max="-900">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="poison" interval="3000" chance="20" radius="6" target="0" min="-250" max="-550">
      <attribute key="areaEffect" value="poison"/>
    </attack>
    <attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-200" max="-400">
      <attribute key="areaEffect" value="energy"/>
    </attack>
    <attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-225" max="-375">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="21" radius="6" target="0" min="-200" max="-450">
      <attribute key="areaEffect" value="poff"/>
    </attack>
    <attack name="strength" interval="3000" chance="20" radius="5" target="0" min="-200" max="-600">
      <attribute key="areaEffect" value="blackspark"/>
    </attack>
    <attack name="firecondition" interval="3000" chance="20" range="7" radius="7" target="1" min="-200" max="-800">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="25" length="8" spread="0" min="-50" max="-250">
      <attribute key="areaEffect" value="greenspark"/>
    </attack>
	</attacks>
	<defenses armor="130" defense="88">
		<defense name="healing" interval="1000" chance="20" min="5000" max="10000">
			<attribute key="areaEffect" value="greenshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="4" speedchange="500" duration="7000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element icePercent="20"/>
		<element deathPercent="20"/>
		<element firePercent="-15"/>
	</elements>
	<immunities>
    <immunity name="paralyze"/>
		<immunity lifedrain="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="80">
		<voice sentence="Squack!!" yell="1"/>
	</voices>
	<loot>
		<item id="1987" chance="100000">
		<inside>
			<item id="2646" chance="1000"/> --Golden boots
		</inside>
		</item>
	</loot>
</monster>

& Make sure you got it registered in monster.xml , in monster file.
& Do you get any errors on your console? if yes take a picture and post it. :)

Namnlös.jpg
That's what i get. And i fixed the "
Also, it says Zazu on the picture. But it's the same, Zorro is not the original name anymore. I changed the names. On both places.
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Zorro" nameDescription="a zorro race="blood" experience="7000000" speed="2000" manacost="0">
	<health now="14550000" max="14550000"/>
	<look type="223" corpse="6076"/>
	<targetchange interval="5000" chance="20"/>
	<strategy attack="300" defense="100"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="0"/>
		<flag canpushcreatures="0"/>
		<flag staticattack="90"/>
		<flag targetdistance="11"/>
		<flag runonhealth="3"/>
	</flags>
		<attacks>
	<attack name="melee" interval="2000" skill="300" min="-4000" max="-7000"/>
		<attack name="death" interval="1000" chance="70" length="8" spread="0" min="0" max="-800">
			<attribute key="areaEffect" value="mortarea"/>
		</attack>
		<attack name="death" interval="2000" chance="60" target="0" radius="4" min="-200" max="-700">
			<attribute key="areaEffect" value="icearea"/>
		</attack>
		<attack name="physical" interval="3000" chance="40" radius="5" target="1" min="-50" max="-2555">
			<attribute key="areaEffect" value="groundshaker"/>
		</attack>
		<attack name="fire" interval="2000" chance="50" radius="6" target="1" min="-50" max="-900">
			<attribute key="areaEffect" value="firearea"/>
			<attribute key="shootEffect" value="fire"/>
		</attack>
    <attack name="manadrain" interval="2000" chance="60" range="7" min="-300" max="-900">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="poison" interval="3000" chance="20" radius="6" target="0" min="-250" max="-550">
      <attribute key="areaEffect" value="poison"/>
    </attack>
    <attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-200" max="-400">
      <attribute key="areaEffect" value="energy"/>
    </attack>
    <attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-225" max="-375">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="21" radius="6" target="0" min="-200" max="-450">
      <attribute key="areaEffect" value="poff"/>
    </attack>
    <attack name="strength" interval="3000" chance="20" radius="5" target="0" min="-200" max="-600">
      <attribute key="areaEffect" value="blackspark"/>
    </attack>
    <attack name="firecondition" interval="3000" chance="20" range="7" radius="7" target="1" min="-200" max="-800">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="25" length="8" spread="0" min="-50" max="-250">
      <attribute key="areaEffect" value="greenspark"/>
    </attack>
	</attacks>
	<defenses armor="130" defense="88">
		<defense name="healing" interval="1000" chance="20" min="5000" max="10000">
			<attribute key="areaEffect" value="greenshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="4" speedchange="500" duration="7000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element icePercent="20"/>
		<element deathPercent="20"/>
		<element firePercent="-15"/>
	</elements>
	<immunities>
    <immunity name="paralyze"/>
		<immunity lifedrain="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="80">
		<voice sentence="Squack!!" yell="1"/>
	</voices>
	<loot>
		<item id="1987" chance="100000">
		<inside>
			<item id="2646" chance="1000"/> --Golden boots
		</inside>
		</item>
	</loot>
</monster>
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Zorro" nameDescription="a zorro race="blood" experience="7000000" speed="2000" manacost="0">
	<health now="14550000" max="14550000"/>
	<look type="223" corpse="6076"/>
	<targetchange interval="5000" chance="20"/>
	<strategy attack="300" defense="100"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="0"/>
		<flag canpushcreatures="0"/>
		<flag staticattack="90"/>
		<flag targetdistance="11"/>
		<flag runonhealth="3"/>
	</flags>
		<attacks>
	<attack name="melee" interval="2000" skill="300" min="-4000" max="-7000"/>
		<attack name="death" interval="1000" chance="70" length="8" spread="0" min="0" max="-800">
			<attribute key="areaEffect" value="mortarea"/>
		</attack>
		<attack name="death" interval="2000" chance="60" target="0" radius="4" min="-200" max="-700">
			<attribute key="areaEffect" value="icearea"/>
		</attack>
		<attack name="physical" interval="3000" chance="40" radius="5" target="1" min="-50" max="-2555">
			<attribute key="areaEffect" value="groundshaker"/>
		</attack>
		<attack name="fire" interval="2000" chance="50" radius="6" target="1" min="-50" max="-900">
			<attribute key="areaEffect" value="firearea"/>
			<attribute key="shootEffect" value="fire"/>
		</attack>
    <attack name="manadrain" interval="2000" chance="60" range="7" min="-300" max="-900">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="poison" interval="3000" chance="20" radius="6" target="0" min="-250" max="-550">
      <attribute key="areaEffect" value="poison"/>
    </attack>
    <attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-200" max="-400">
      <attribute key="areaEffect" value="energy"/>
    </attack>
    <attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-225" max="-375">
      <attribute key="areaEffect" value="redshimmer"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="21" radius="6" target="0" min="-200" max="-450">
      <attribute key="areaEffect" value="poff"/>
    </attack>
    <attack name="strength" interval="3000" chance="20" radius="5" target="0" min="-200" max="-600">
      <attribute key="areaEffect" value="blackspark"/>
    </attack>
    <attack name="firecondition" interval="3000" chance="20" range="7" radius="7" target="1" min="-200" max="-800">
      <attribute key="shootEffect" value="fire"/>
      <attribute key="areaEffect" value="firearea"/>
    </attack>
    <attack name="lifedrain" interval="2000" chance="25" length="8" spread="0" min="-50" max="-250">
      <attribute key="areaEffect" value="greenspark"/>
    </attack>
	</attacks>
	<defenses armor="130" defense="88">
		<defense name="healing" interval="1000" chance="20" min="5000" max="10000">
			<attribute key="areaEffect" value="greenshimmer"/>
		</defense>
		<defense name="speed" interval="1000" chance="4" speedchange="500" duration="7000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element icePercent="20"/>
		<element deathPercent="20"/>
		<element firePercent="-15"/>
	</elements>
	<immunities>
    <immunity name="paralyze"/>
		<immunity lifedrain="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="80">
		<voice sentence="Squack!!" yell="1"/>
	</voices>
	<loot>
		<item id="1987" chance="100000">
		<inside>
			<item id="2646" chance="1000"/> --Golden boots
		</inside>
		</item>
	</loot>
</monster>

Thank you so much! What was the problem?
 
Back
Top