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

[Problem] with my npc

Tibia Rox

Member
Joined
Feb 4, 2009
Messages
1,181
Reaction score
9
Location
U.S.A
I'm trying to import it into the map editor, but it says "Invalid format". What's wrong?

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Slick Hydro Elemental" nameDescription="a slick hydro elemental" race="water" experience="1255" speed="276" manacost="0">
	<health now="1176" max="1176"/>
	<look type="286" head="0" body="0" legs="0" feet="0" corpse="4323"/>
	<targetchange interval="2000" chance="25"/>
	<strategy attack="70" defense="36"/>
	<flags>
		<flag summonable="0"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag targetdistance="1"/>
		<flag runonhealth="20"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="82" attack="52"/>
		</attack>
		<attack name="lifedrain" interval="1000" chance="10" length="6" spread="5" min="-450" max="-470">
			<attribute key="areaEffect" value="blueshimmer"/>
		</attack>
	</attacks>
	<defenses armor="38" defense="40">
		<defense name="healing" interval="1000" chance="17" min="170" max="400">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<immunities>
		<immunity physical="0"/>
		<immunity energy="0"/>
		<immunity fire="0"/>
		<immunity poison="1"/>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="10">
		<voice sentence="I shall turn your warm body into a cold pool of water"/>
	</voices>
	<loot capacity="1200">
		<item id="2148" countmax="36" chance="145000"/>
	</loot>
</monster>
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Slick Hydro Elemental" nameDescription="a slick hydro elemental" race="water" experience="1255" speed="276" manacost="0">
	<health now="1176" max="1176"/>
	<look type="286" corpse="4323"/>
	<targetchange interval="2000" chance="25"/>
	<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="1"/>
		<flag targetdistance="1"/>
		<flag runonhealth="20"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="82" attack="52"/>
		<attack name="lifedrain" interval="1000" chance="10" length="6" spread="5" min="-450" max="-470">
			<attribute key="areaEffect" value="blueshimmer"/>
		</attack>
	</attacks>
	<defenses armor="38" defense="40">
		<defense name="healing" interval="1000" chance="17" min="170" max="400">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<immunities>
		<immunity poison="1"/>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="10">
		<voice sentence="I shall turn your warm body into a cold pool of water"/>
	</voices>
	<loot>
		<item id="2148" countmax="36" chance="100000"/>
	</loot>
</monster>
 
Back
Top