Ir para conteúdo

[Duvida] Cannot Load Monster


miroking

Posts Recomendados

Eu fiz 2 monstros novos e toda vez que abro o servidor esses 2 erros aparecem, ja olhei o script deles mas não consigo achar o erro ;(

 

porfavor me ajudem a achar o erro deles

 

abaixo os scripts deles :

 

Atirador de Elite :

 

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Atirador de Elite" nameDescription="a atirador de elite" race="blood" experience="4000" speed="400" manacost="0">
<health now="20000" max="20000"/>
<look type="129" head="95" body="95" legs="95" feet="95" corpse="6080"/>
<targetchange interval="5000" chance="8"/>
<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="0"/>
	<flag targetdistance="4"/>
	<flag staticattack="90"/>
	<flag runonhealth="0"/>
</flags>
<attacks>
	<attack name="physical" interval="1000" range="7" min="-250" max="-750">
		<attribute key="shootEffect" value="arrow"/>
	</attack>
</attacks>
<defenses armor="50" defense="80"/>
<elements>
	<element holyPercent="30"/>
	<element deathPercent="-10"/>
</elements>
<immunities>
	<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="25">
	<voice sentence="Head Shot!"/>
	<voice sentence="Feel the Power of my Arrow !"/>
	<voice sentence="Die !!!"/>
	<voice sentence="you will not have time to see me"/>
	<voice sentence="Your existence will end here!"/>
</voices>
<loot>
	<item id="2160" countmax="5" chance="100000"/><!-- crystal coin -->
		<inside>
		</inside>
	</item>
</loot>
<summons maxSummons="2">
	<summon name="Atirador Summon" interval="1000" chance="100" max="2"/>
</summons>
</monster>

 

Atirador Summon :

 

<?xml version="1.0" encoding="UTF-8"?>
<monster name="Atirador de Elite" nameDescription="a atirador de elite" race="blood" experience="4000" speed="400" manacost="0">
<health now="20000" max="20000"/>
<look type="129" head="95" body="95" legs="95" feet="95" corpse="6080"/>
<targetchange interval="5000" chance="8"/>
<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="0"/>
	<flag targetdistance="4"/>
	<flag staticattack="90"/>
	<flag runonhealth="0"/>
</flags>
<attacks>
	<attack name="physical" interval="1000" range="7" min="-250" max="-750">
		<attribute key="shootEffect" value="arrow"/>
	</attack>
</attacks>
<defenses armor="50" defense="80"/>
<elements>
	<element holyPercent="30"/>
	<element deathPercent="-10"/>
</elements>
<immunities>
	<immunity invisible="1"/>
</immunities>
<voices interval="5000" chance="25">
	<voice sentence="Head Shot!"/>
	<voice sentence="Feel the Power of my Arrow !"/>
	<voice sentence="Die !!!"/>
	<voice sentence="you will not have time to see me"/>
	<voice sentence="Your existence will end here!"/>
</voices>
<loot>
		<inside>
		</inside>
	</item>
</loot>
</monster>

 

No arquivo Monster.xml coloquei :

 

	<!--[ADM]-->
<monster name="Atirador de Elite" file="Custom/Atirador de Elite.xml"/>
<monster name="Atirador Summon" file="Custom/Atirador Summon.xml"/>

 

Os erros ao ligar o ot são :

[Warning - Monsters::loadMonster] Cannot load monster (Atirador de Elite) file (data/monster/Custom/Atirador de Elite.xml) Line: 46, Info: Extra content at the end of the document

[Warning - Monsters::loadMonster] Cannot load monster (Atirador Summon) file (data/monster/Custom/Atirador Summon.xml) Line: 45, Info: Extra content at the end of the document

 

obs : o atirador de elite faz 2 copias exatas dele mesmo , igual ao slime

Editado por miroking
Link para o comentário
Compartilhar em outros sites

atirador.xml

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Atirador de Elite" nameDescription="a atirador de elite" race="blood" experience="3000" speed="300" manacost="360">

<health now="3000" max="3000"/>

<look type="129" head="95" body="95" legs="95" feet="95" corpse="6080"/>

<targetchange interval="5000" chance="8"/>

<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="0"/>

<flag targetdistance="4"/>

<flag staticattack="90"/>

<flag runonhealth="0"/>

</flags>

<attacks>

<attack name="physical" interval="1000" range="7" min="-60" max="-800">

<attribute key="shootEffect" value="arrow"/>

</attack>

</attacks>

<defenses armor="30" defense="50"/>

<elements>

<element holyPercent="30"/>

<element deathPercent="-10"/>

</elements>

<summons maxSummons="1">

<summon name="Atirador Summon" interval="1000" chance="12"/>

</summons>

<immunities>

<immunity invisible="1"/>

</immunities>

<voices interval="5000" chance="10">

<voice sentence="You wont see me in time!"/>

<voice sentence="Die !!!"/>

<voice sentence="HeadShot !!!"/>

<voice sentence="I see you"/>

<voice sentence="Your existence will end here!"/>

</voices>

<loot>

<item id="1987" chance="6666">

<inside>

<item id="2160" chance="20000" countmax="5" />

</inside>

</item>

</loot>

</monster>

 

 

atiradorsummon.xml

<?xml version="1.0" encoding="UTF-8"?>

<monster name="Atirador Summon" nameDescription="a atirador summon" race="blood" experience="4000" speed="400" manacost="0">

<health now="20000" max="20000"/>

<look type="129" head="95" body="95" legs="95" feet="95" corpse="6080"/>

<targetchange interval="5000" chance="8"/>

<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="0"/>

<flag targetdistance="4"/>

<flag staticattack="90"/>

<flag runonhealth="0"/>

</flags>

<attacks>

<attack name="physical" interval="1000" range="7" min="-250" max="-750">

<attribute key="shootEffect" value="arrow"/>

</attack>

</attacks>

<defenses armor="50" defense="80"/>

<elements>

<element holyPercent="30"/>

<element deathPercent="-10"/>

</elements>

<immunities>

<immunity invisible="1"/>

</immunities>

<voices interval="5000" chance="25">

<voice sentence="Head Shot!"/>

<voice sentence="Feel the Power of my Arrow !"/>

<voice sentence="Die !!!"/>

<voice sentence="you will not have time to see me"/>

<voice sentence="Your existence will end here!"/>

</voices>

<loot>

</loot>

</monster>

 

em monsters.xml adicione:

 

<monster name="Atirador Summon" file="atiradorsummon.xml"/>

<monster name="Atirador de Elite" file="atirador.xml"/>

Editado por Nicekid
Link para o comentário
Compartilhar em outros sites

percebi que voce retirou do atirador de elite a parte do looktype dele, por acaso eu n posso fazer a seguinte look type ?

 

looktype="129" head="95" body="95" legs="95" feet=95" ?

Link para o comentário
Compartilhar em outros sites

realmente voce é muito bom, sempre tirano minhas duvidas rapidamente, funcionou perfeitamente, só me fale 1 coisa o erro erro estava em algum lugar ? se sim em que parte ?

 

ou era simplesmente os espaços que causavam o erro ?

Link para o comentário
Compartilhar em outros sites

1° erro

 

<item id="2160" countmax="5" chance="100000"/><!-- crystal coin -->

 

o certo é:

 

<item id="2160" chance="20000" countmax="5"/>

 

 

2° erro no monstro atirador de summon

 

ja existia o nome ''Atirador de Elite''

e voce coloco no script do atirador de summon o mesmo nome,gerando conflito

veja:

 

monster name="Atirador de Elite" nameDescription="a atirador de elite"

 

certo seria:

 

monster name="Atirador Summon" nameDescription="a atirador summon"

 

 

 

3° erro

 

summon

 

as tags de summon estavam em local errado

voce as tinha colocado no final

e certo seria abaixo de </elements>

Editado por Nicekid
Link para o comentário
Compartilhar em outros sites

1° erro

 

<item id="2160" countmax="5" chance="100000"/><!-- crystal coin -->

 

o certo é:

 

<item id="2160" chance="20000" countmax="5"/>

 

 

2° erro no monstro atirador de summon

 

ja existia o nome ''Atirador de Elite''

e voce coloco no script do atirador de summon o mesmo nome,gerando conflito

veja:

 

monster name="Atirador de Elite" nameDescription="a atirador de elite"

 

certo seria:

 

monster name="Atirador Summon" nameDescription="a atirador summon"

 

 

 

3° erro

 

summon

 

as tags de summon estavam em local errado

voce as tinha colocado no final

e certo seria abaixo de </elements>

 

certo mtu obrigado

Link para o comentário
Compartilhar em outros sites

vou pedir para que os moderadores fechem o topico

 

vlw amigo

 

qualquer duvida ja sabe

 

e obs: quando sua duvida tiver sido sanada use o botao "denunciar" para que os moderadores possam fecham o topico!

 

abraços

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...