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

Whats wrong with this monster?

Tibia Rox

Member
Joined
Feb 4, 2009
Messages
1,181
Reaction score
9
Location
U.S.A
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Archidemon" nameDescription="an Archidemon" race="undead" experience="25" speed="100" manacost="0">
	<health now="55" max="55"/>
	<look type="12" head="0" body="123" legs="97" feet="94" corpse="6068"/>
	<targetchange interval="10000" 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="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag staticattack="98"/>
		<flag targetdistance="1"/>
		<flag runonhealth="5"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-0" max="-1"/>
		<attack name="melee" interval="2000" chance="40" range="7" radius="6" target="0" min="-5" max="-10">
			<attribute key="areaEffect" value="blackspark"/>
	</attacks>
	<immunities>
		<immunity physical="0"/>
		<immunity energy="1"/>
		<immunity fire="1"/>
		<immunity poison="1"/>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="30">
		<voice sentence="Im back from my grave to kill all who stand in my way!"/>
	</voices>
	<loot>
    	<item id="2148" countmax="14" chance="435000" /><!-- gold coin -->
    	<item id="7618" countmax="2" chance="15000" /><!-- health potion -->
    	<item id="8704" countmax="4" chance="435000" /><!-- small health potion -->
	</loot>
</monster>

I keep getting this :
Code:
[10/10/2010 14:51:00] [Warning - Monsters::loadMonster] Cannot load monster (Archidemon) file (data/monster/Custom Monsters/Archidemon.xml).
[10/10/2010 14:51:00] Line: 45, Info: Premature end of data in tag monster line 2
 
try this
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Archidemon" nameDescription="an Archidemon" race="undead" experience="25" speed="100" manacost="0">
	<health now="55" max="55"/>
	<look type="12" head="0" body="123" legs="97" feet="94" corpse="6068"/>
	<targetchange interval="10000" 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="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag staticattack="98"/>
		<flag targetdistance="1"/>
		<flag runonhealth="5"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-0" max="-1"/>
		<attack name="melee" interval="2000" chance="40" range="7" radius="6" target="0" min="-5" max="-10"/>
			<attribute key="areaEffect" value="blackspark"/>
	</attacks>
	<immunities>
		<immunity physical="0"/>
		<immunity energy="1"/>
		<immunity fire="1"/>
		<immunity poison="1"/>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="30">
		<voice sentence="Im back from my grave to kill all who stand in my way!"/>
	</voices>
	<loot>
    	<item id="2148" countmax="14" chance="435000" /><!-- gold coin -->
    	<item id="7618" countmax="2" chance="15000" /><!-- health potion -->
    	<item id="8704" countmax="4" chance="435000" /><!-- small health potion -->
	</loot>
</monster>

Don't forget the rep button ;)
 
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Archidemon" nameDescription="an Archidemon" race="undead" experience="25" speed="100" manacost="0">
	<health now="55" max="55"/>
	<look type="12" head="0" body="123" legs="97" feet="94" corpse="6068"/>
	<targetchange interval="10000" 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="0"/>
		<flag canpushitems="1"/>
		<flag canpushcreatures="1"/>
		<flag staticattack="98"/>
		<flag targetdistance="1"/>
		<flag runonhealth="5"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-0" max="-1"/>
		<attack name="physical" interval="2000" chance="40" range="7" radius="6" target="0" min="-5" max="-10">
			<attribute key="areaEffect" value="blackspark"/>
		</attack>
	</attacks>
	<immunities>
		<immunity energy="1"/>
		<immunity fire="1"/>
		<immunity poison="1"/>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<voices interval="5000" chance="30">
		<voice sentence="Im back from my grave to kill all who stand in my way!"/>
	</voices>
	<loot>
    	<item id="2148" countmax="14" chance="435000" /><!-- gold coin -->
    	<item id="7618" countmax="2" chance="15000" /><!-- health potion -->
    	<item id="8704" countmax="4" chance="435000" /><!-- small health potion -->
	</loot>
</monster>

You forgot to close the second attack with:
Code:
</attack>
 
Got it working, thanks!

Now im having a prob with items.xml

Code:
	<item id="20035" name="tea" />
</items>
Code:
[10/10/2010 16:18:57] [Warning - Items::loadFromXml] Cannot load items file.
[10/10/2010 16:18:57] Line: 17723, Info: Premature end of data in tag items line 2
The above line is line 17723.
 
Code:
	<item id="12607" article="a" name="draken boots">
		<attribute key="weight" value="2500" />
		<attribute key="armor" value="3" />
		<attribute key="slotType" value="feet" />
		<attribute key="speed" value="15" />
	</item>
	<item id="20001" name="water" />
	<item id="20002" name="blood" />
	<item id="20003" name="beer" />
	<item id="20004" name="slime" />
	<item id="20005" name="lemonade" />
	<item id="20006" name="milk" />
	<item id="20007" name="manafluid" />
	<item id="20010" name="lifefluid" />
	<item id="20011" name="oil" />
	<item id="20013" name="urine" />
	<item id="20014" name="coconut milk" />
	<item id="20015" name="wine" />
	<item id="20019" name="mud" />
	<item id="20021" name="fruit juice" />
	<item id="20026" name="lava" />
	<item id="20027" name="rum" />
	<item id="20028" name="swamp" />
    	<item id="20035" name="tea"/>
</items>

lol, here the last few items in my items.xml, and again this is what it says:
Code:
[10/10/2010 17:38:33] [Warning - Items::loadFromXml] Cannot load items file.
[10/10/2010 17:38:33] Line: 17723, Info: Premature end of data in tag items line 2
 
I don't think you'll be able to add that item (liquid) since those itemids are special. You can't create those items with /i 200XX for example, they need to be in a container.
 
Code:
[10/10/2010 17:38:33] [Warning - Items::loadFromXml] Cannot load items file.
[10/10/2010 17:38:33] Line: 17723, Info: Premature end of data in tag items line 2

if Line: 17723 shows the last line u have big problem :D, possible u forgot </item> or sth everywhere ;p
 
Back
Top