• 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 Monsters - Errors in console

Scizorek

New Member
Joined
Jan 8, 2009
Messages
19
Reaction score
0
Hello.

I have problem with 2 monsters.

In console :


PHP:
[06/01/2011 16:58:08] [Warning - Monsters::loadMonster] Cannot load monster (korpaxian junior) file (data/monster/Mutated/korpaxian junior.xml).
[06/01/2011 16:58:08] Line: 24, Info: Extra content at the end of the document


[06/01/2011 16:58:08] [Warning - Monsters::loadMonster] Cannot load monster (Korpaxian Father) file (data/monster/Outlaws/korpaxian father2.xml).
[06/01/2011 16:58:08] Line: 3, Info: Extra content at the end of the document

korpaxian father2.xml
Code:
<?xml version="1.0" encoding="UTF-8"?/>
<monster name="Korpaxian Father" nameDescription="a Korpaxian Father" race="blood" experience="45" speed="300" manacost="0"/>
	<health now="200" max="200"/>
	<look type="131" head="95" body="95" legs="95" feet="95" addons="3" corpse="6080"/>
	<targetchange interval="5000" chance="8"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="1"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag staticattack="90"/>
		<flag targetdistance="1"/>
		<flag runonhealth="5"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="30" attack="16"/>
		<attack name="drunk" interval="1000" chance="20" range="7"/>
			<attribute key="shootEffect" value="energy"/>
		</attack>
	</attacks>
	<defenses armor="20" defense="25"/>
	<immunities>
		<immunity physical="0"/>
		<immunity energy="1"/>
		<immunity fire="1"/>
		<immunity poison="0"/>
		<immunity lifedrain="0"/>
		<immunity paralyze="0"/>
		<immunity outfit="0"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="10"/>
		<voice sentence="PYSKA!" yell="1"/>
		<voice sentence="Gdzie jest moja flaszka!?" yell="1"/>
		<voice sentence="Ide robic kraty!" yell="1"/>
		<voice sentence="Frytkownica wydupcyla!"/>
		<voice sentence="Gdzie moj polonez!?"/>
	</voices>
	<loot>
	<item id="2472" chance="20000"/> 
	<item id="7885" chance="20000"/> 
	<item id="7894" chance="1333"/> 
	<item id="2514" chance="20000"/> 
	<item id="10518" chance="100000"/> 
		<inside>
		<item id="7411" chance="20000"/> 
		<item id="8903" chance="1333"/> 
		<item id="7410" chance="20000"/> 
		<item id="7416" chance="20000"/> 
		<item id="7388" chance="600"/> 
		<item id="2421" chance="1333"/> 
		<item id="8928" chance="1333"/> 
		<item id="7405" chance="600"/> 
		<item id="8930" chance="1333"/> 
		<item id="7433" chance="1333"/> 
		<item id="8868" chance="1333"/> 
		<item id="2542" chance="1333"/> 
		<item id="8924" chance="1333"/> 
		<item id="7435" chance="1333"/> 
		<item id="2539" chance="20000"/>
		<item id="8869" chance="1333"/>
		<item id="8918" chance="600"/> 
		<item id="7423" chance="1200"/> 
		<item id="2522" chance="1200"/> 
		<item id="2415" chance="1200"/>
		<item id="8926" chance="600"/>
		<item id="8885" chance="1333"/>
		<item id="8904" chance="600"/> 
		<item id="5903" chance="100000"/> 
		</inside>
	</loot>
</monster>

korpaxian junior.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Korpaxia Junior" nameDescription="a korpaxian junior" race="blood" experience="150" speed="245" manacost="0">
	<health now="50000" max="50000"/>
	<look type="323" corpse="9107"/>
	<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="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-1000" max="-2000" poison="300"/>
		</attack> 
	</attacks>
	<immunities>
		<immunity death="1"/>
		<immunity earth="1"/>
		<immunity paralyze="1"/>
		<immunity lifedrain="1"/>
		<immunity drunk="1"/>
		<immunity drown="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="2500" chance="10">
		<voice sentence="Jestem Magiem!"/>
		<voice sentence="Mamo oni mnie przezywaja!"/>
		<voice sentence="khhhh!"/>
		<voice sentence="Przynies mi ta zabawke z piaskownicy!"/>
		<voice sentence="ADHD Power!"/>
		<voice sentence="Tata mnie goli kosiarka!"/>
	</voices>
	<loot>
		<item id="2148" countmax="50" chance="100000"/><!-- gold coin -->
		<item id="3976" countmax="3" chance="10000"/><!-- worm -->
		<item id="2671" chance="900"/><!-- ham -->
		<item id="2696" chance="13500"/><!-- cheese -->
		<item id="2226" chance="12500"/><!-- fishbone -->
		<item id="2484" chance="3000"/><!-- studded armor -->
		<item id="2801" chance="1500"/><!-- fern -->
		<item id="1987" chance="100000"><!-- bag -->
			<inside>
				<item id="2406" countmax="1" chance="4000"/><!-- short sword -->
				<item id="2376" chance="3000"/><!-- sword -->
				<item id="2170" chance="300"/><!-- silver amulet -->
				<item id="2161" chance="1500"/><!-- strange talisman -->
				<item id="9808" chance="2000"/><!-- rusty armor -->
				<item id="7910" chance="700"/><!-- peanut -->
			</inside>
		</item>
	</loot>
</monster>

Someone can help me? :<
 
First code:
Replace:
<item id="10518" chance="100000"/>
with:
<item id="10518" chance="100000">
also
Replace:
<attack name="drunk" interval="1000" chance="20" range="7"/>
with:
<attack name="drunk" interval="1000" chance="20" range="7">



Second code:
Remove
</attack>
 
For second thanks - it works.

For first - it doesn't work. Again

[06/01/2011 17:48:06] [Warning - Monsters::loadMonster] Cannot load monster (Korpaxian Father) file (data/monster/Outlaws/korpaxian father2.xml).
[06/01/2011 17:48:06] Line: 3, Info: Extra content at the end of the document
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Korpaxian Father" nameDescription="a Korpaxian Father" race="blood" experience="45" speed="300" manacost="0">
	<health now="200" max="200"/>
	<look type="131" head="95" body="95" legs="95" feet="95" addons="3" corpse="6080"/>
	<targetchange interval="5000" chance="8"/>
	<strategy attack="100" defense="0"/>
	<flags>
		<flag summonable="1"/>
		<flag attackable="1"/>
		<flag hostile="1"/>
		<flag illusionable="0"/>
		<flag convinceable="0"/>
		<flag pushable="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag staticattack="90"/>
		<flag targetdistance="1"/>
		<flag runonhealth="5"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" skill="30" attack="16"/>
		<attack name="drunk" interval="1000" chance="20" range="7">
			<attribute key="shootEffect" value="energy"/>
		</attack>
	</attacks>
	<defenses armor="20" defense="25"/>
	<immunities>
		<immunity energy="1"/>
		<immunity fire="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="10">
		<voice sentence="PYSKA!" yell="1"/>
		<voice sentence="Gdzie jest moja flaszka!?" yell="1"/>
		<voice sentence="Ide robic kraty!" yell="1"/>
		<voice sentence="Frytkownica wydupcyla!"/>
		<voice sentence="Gdzie moj polonez!?"/>
	</voices>
	<loot>
		<item id="2472" chance="20000"/> 
		<item id="7885" chance="20000"/> 
		<item id="7894" chance="1333"/> 
		<item id="2514" chance="20000"/> 
		<item id="10518" chance="100000">
			<inside>
				<item id="7411" chance="20000"/> 
				<item id="8903" chance="1333"/> 
				<item id="7410" chance="20000"/> 
				<item id="7416" chance="20000"/> 
				<item id="7388" chance="600"/> 
				<item id="2421" chance="1333"/> 
				<item id="8928" chance="1333"/> 
				<item id="7405" chance="600"/> 
				<item id="8930" chance="1333"/> 
				<item id="7433" chance="1333"/> 
				<item id="8868" chance="1333"/> 
				<item id="2542" chance="1333"/> 
				<item id="8924" chance="1333"/> 
				<item id="7435" chance="1333"/> 
				<item id="2539" chance="20000"/>
				<item id="8869" chance="1333"/>
				<item id="8918" chance="600"/> 
				<item id="7423" chance="1200"/> 
				<item id="2522" chance="1200"/> 
				<item id="2415" chance="1200"/>
				<item id="8926" chance="600"/>
				<item id="8885" chance="1333"/>
				<item id="8904" chance="600"/> 
				<item id="5903" chance="100000"/> 
			</inside>
		</item>
	</loot>
</monster>
 
Back
Top