Ir para conteúdo
  • 0

Qual erro com esse monster?


danitero15

Pergunta

Da erro na 3ª linha, que diz que tem um extra content at the end of document:

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
	<monster name="Amazon Guard" nameDescription="an amazon guard" race="blood" experience="900" speed="500"/>
	<health now="1100" max="1100"/>
	<look type="139" head="113" body="57" legs="0" feet="113" addons="2" corpse="6081"/>
	<targetchange interval="5000" chance="8"/>
	<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 canpushcreatures="1"/>
		<flag targetdistance="1"/>
		<flag staticattack="90"/>
		<flag runonhealth="300"/>		
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="60" attack="40"/>
		<attack name="physical" interval="2000" chance="20" range="7" min="-0" max="-50"/>
			<attribute key="shootEffect" value="spear"/>
		<attack name="melee" interval="3000" chance="15" range="7" radius="3" target="0" min="-80" max="-155"/>

			<attribute key="areaEffect" value="blackspark"/>

		<attack name="physical" interval="1000" chance="8" range="7" radius="3" target="1" min="0" max="-155"/>
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="redspark"/>
	</attacks>
	<defenses armor="30" defense="25"/>
	<elements>
		<element icePercent="10"/>
		<element firePercent="10"/>
		<element holyPercent="5"/>
		<element deathPercent="-5"/>
		<element physicalPercent="-10"/>
	</elements>
	<voices interval="5000" chance="10">
		<voice sentence="Leave now!"/>
		<voice sentence="I will get your head!"/>
	</voices>
	<loot>
		<item id="2148" countmax="101" chance="225000"/><!-- gold coin -->
		<item id="2666" chance="30000"/><!-- meat -->
		<item id="2674" countmax="2" chance="10000"/><!-- apple -->
		<item id="2229" countmax="2" chance="55000"/><!-- skull -->
		<item id="2379" chance="22500"/><!-- dagger -->
		<item id="1987" chance="100000"><!-- bag -->
			<inside>
		<item id="2389" countmax="3" chance="37500"/><!-- spear -->
		<item id="2125" chance="750"/><!-- crystal necklace -->
		<item id="2387" chance="700"/><!-- double axe -->
		<item id="2200" chance="1800"/><!-- protection amulet -->
		<item id="7618" chance="200"/><!-- health potion -->
		<item id="2147" chance="100"/><!-- small ruby -->
		<item id="2145" chance="50"/><!-- small diamond -->	
		<item id="2499" chance="80"/><!-- amazon helmet -->	
		<item id="2500" chance="80"/><!-- amazon armor -->	
		<item id="2537" chance="80"/><!-- amazon shield -->	
			</inside>
		</item>
	</loot>
</monster>

 

 

 

O erro aparece na tag do Health now...

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 0

tinha uma barra encerrando a primeira linha

 

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Amazon Guard" nameDescription="an amazon guard" race="blood" experience="900" speed="500">
	<health now="1100" max="1100"/>
	<look type="139" head="113" body="57" legs="0" feet="113" addons="2" corpse="6081"/>
	<targetchange interval="5000" chance="8"/>
	<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 canpushcreatures="1"/>
		<flag targetdistance="1"/>
		<flag staticattack="90"/>
		<flag runonhealth="300"/>		
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="60" attack="40"/>
		<attack name="physical" interval="2000" chance="20" range="7" min="-0" max="-50"/>
			<attribute key="shootEffect" value="spear"/>
		<attack name="melee" interval="3000" chance="15" range="7" radius="3" target="0" min="-80" max="-155"/>

			<attribute key="areaEffect" value="blackspark"/>

		<attack name="physical" interval="1000" chance="8" range="7" radius="3" target="1" min="0" max="-155"/>
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="redspark"/>
	</attacks>
	<defenses armor="30" defense="25"/>
	<elements>
		<element icePercent="10"/>
		<element firePercent="10"/>
		<element holyPercent="5"/>
		<element deathPercent="-5"/>
		<element physicalPercent="-10"/>
	</elements>
	<voices interval="5000" chance="10">
		<voice sentence="Leave now!"/>
		<voice sentence="I will get your head!"/>
	</voices>
	<loot>
		<item id="2148" countmax="101" chance="225000"/><!-- gold coin -->
		<item id="2666" chance="30000"/><!-- meat -->
		<item id="2674" countmax="2" chance="10000"/><!-- apple -->
		<item id="2229" countmax="2" chance="55000"/><!-- skull -->
		<item id="2379" chance="22500"/><!-- dagger -->
		<item id="1987" chance="100000"><!-- bag -->
			<inside>
		<item id="2389" countmax="3" chance="37500"/><!-- spear -->
		<item id="2125" chance="750"/><!-- crystal necklace -->
		<item id="2387" chance="700"/><!-- double axe -->
		<item id="2200" chance="1800"/><!-- protection amulet -->
		<item id="7618" chance="200"/><!-- health potion -->
		<item id="2147" chance="100"/><!-- small ruby -->
		<item id="2145" chance="50"/><!-- small diamond -->	
		<item id="2499" chance="80"/><!-- amazon helmet -->	
		<item id="2500" chance="80"/><!-- amazon armor -->	
		<item id="2537" chance="80"/><!-- amazon shield -->	
			</inside>
		</item>
	</loot>
	
</monster>

 



testa assim

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...