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

Error with creature

Tibia Rox

Member
Joined
Feb 4, 2009
Messages
1,181
Reaction score
9
Location
U.S.A
I'm not exactly sure whats wrong with this monster, but I cant import it.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Troll Hypnotist" nameDescription="a troll hypnotist" race="blood" experience="105" speed="210" manacost="290">
	<health now="210" max="210"/>
	<look type="282" corpse="7930"/>
	<targetchange interval="5000" chance="20"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="1"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="0"/>
		<flag staticattack="90"/>
		<flag targetdistance="1"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="3" attack="4"/>
		<attack name="fire" interval="1000" chance="25" range="2" radius="2" target="1" min="-63" max="-127">
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="firearea"/>
	</attacks>
	<elements>
		<element firePercent="-20"/>
		<element earthPercent="-20"/>
		<element energyPercent="100"/>
		<element physicalPercent="-25"/>
		<element deathPercent="100"/>
		<element icePercent="100"/>
	</elements>
	<defenses armor="10" defense="12"/>
	<voices interval="5000" chance="10">
		<voice sentence="Wat iz dis i smell?!  Humanz?!"/>
		<voice sentence="Groar"/>
	</voices>
	<loot>
		<item id="2148" countmax="43" chance="100000"/><!-- gold coin -->
		<item id="2148" countmax="22" chance="100000"/><!-- gold coin -->
		<item id="2260" countmax="3" chance="10000"/><!-- blank rune -->
		<item id="8871" chance="1200"/><!-- focus cape -->
		<item id="2162" chance="5000"/><!-- magic lightwand -->
		<item id="2188" chance="2000"/><!-- wand of decay -->
	</loot>
</monster>

Does anyone know whats wrong?
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Troll Hypnotist" nameDescription="a troll hypnotist" race="blood" experience="105" speed="210" manacost="290">
	<health now="210" max="210"/>
	<look type="282" corpse="7930"/>
	<targetchange interval="5000" chance="20"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="1"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="0"/>
		<flag staticattack="90"/>
		<flag targetdistance="1"/>
		<flag runonhealth="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="3" attack="4"/>
		<attack name="fire" interval="1000" chance="25" range="2" radius="2" target="1" min="-63" max="-127">
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="firearea"/>
                </attack>
	</attacks>
	<elements>
		<element firePercent="-20"/>
		<element earthPercent="-20"/>
		<element energyPercent="100"/>
		<element physicalPercent="-25"/>
		<element deathPercent="100"/>
		<element icePercent="100"/>
	</elements>
	<defenses armor="10" defense="12"/>
	<voices interval="5000" chance="10">
		<voice sentence="Wat iz dis i smell?!  Humanz?!"/>
		<voice sentence="Groar"/>
	</voices>
	<loot>
		<item id="2148" countmax="43" chance="100000"/><!-- gold coin -->
		<item id="2148" countmax="22" chance="100000"/><!-- gold coin -->
		<item id="2260" countmax="3" chance="10000"/><!-- blank rune -->
		<item id="8871" chance="1200"/><!-- focus cape -->
		<item id="2162" chance="5000"/><!-- magic lightwand -->
		<item id="2188" chance="2000"/><!-- wand of decay -->
	</loot>
</monster>

Try that
 
You need to close the attack if you have additional attributes.

Code:
	<attacks>
		<attack name="melee" interval="2000" skill="3" attack="4"/>
[COLOR="darkorange"]		<attack name="fire" interval="1000" chance="25" range="2" radius="2" target="1" min="-63" max="-127">
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="firearea"/>[/COLOR]
                [COLOR="red"]</attack>[/COLOR]
	</attacks>
 
Back
Top