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

Monster Loot

Rethen

New Member
Joined
Apr 16, 2010
Messages
215
Reaction score
2
Full one...
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Draken Spellweaver" nameDescription="a draken spellweaver" race="blood" experience="2600" speed="240" manacost="0">
    <health now="5000" max="5000"/>
    <look type="340" corpse="11317"/>
    <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="1"/>
        <flag targetdistance="1"/>
        <flag staticattack="90"/>
        <flag runonhealth="0"/>
     </flags>
<attacks>
    <attack name="melee" interval="2000" skill="55" attack="50"/>
<attack name="fire" interval="2000" chance="10" range="7" radius="1" target="1" min="-15" max="-245">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="fire" interval="2000" chance="15" range="7" radius="4" target="1" min="-0" max="-410">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
    <attack name="energy" interval="1000" chance="24" range="7" target="1" min="-0" max="-310">
      <attribute key="shootEffect" value="energyball"/>
      <attribute key="areaEffect" value="energy"/>
      </attack>
</attacks>
    <defenses armor="25" defense="25">
<defense name="invisible" interval="1500" chance="10" duration="3000">
<attribute key="areaEffect" value="redshimmer"/>
        </defense>
    </defenses>
<elements>
<element physicalPercent="0"/>
<element holyPercent="20"/>
<element deathPercent="-10"/>
<element energyPercent="25"/>
<element icePercent="0"/>
<element earthPercent="-10"/>
</elements>
<immunities>
<immunity fire="1"/>
<immunity invisible="1"/>
</immunities>
<loot>
<item id="2148" countmax="100" chance="100000" > <!-- gold coin -->
<item id="2148" countmax="90" chance="100000"/> <!-- gold coin -->
<item id="2152" countmax="5" chance="10000"/> <!-- platinum coin -->
<item id="2666" countmax="4" chance="100000"/> <!-- meat -->
<item id="11314" chance="11000"/> <!-- weaver wandtip -->
<item id="7590" chance="6000"/> <!-- great mana potion -->
<item id="2147" countmax="5" chance="8000"/> <!-- small ruby -->
<item id="1987" chance="100000"/> <!-- bag -->
<inside>
<item id="11303" chance="1100"/> <!-- zaoan shoes -->
<item id="8871" chance="800"/> <!-- focus cape -->
<item id="2187" chance="700"/> <!-- wand of inferno -->
<item id="11304" chance="350"/> <!-- zaoan legs -->
<item id="11356" chance="450"/> <!-- zaoan robe -->
<item id="11355" chance="250"/> <!-- spellweavers robe -->
<item id="2123" chance="300"/> <!-- ring of the sky -->
<item id="11310" chance="100"/> <!-- draken trophy -->
</inside>
</item>
</loot>
</monster>
Code:
<loot>
<item id="2148" countmax="100" chance="100000" > <!-- gold coin -->
<item id="2148" countmax="90" chance="100000"/> <!-- gold coin -->
<item id="2152" countmax="5" chance="10000"/> <!-- platinum coin -->
<item id="2666" countmax="4" chance="100000"/> <!-- meat -->
<item id="11314" chance="11000"/> <!-- weaver wandtip -->
<item id="7590" chance="6000"/> <!-- great mana potion -->
<item id="2147" countmax="5" chance="8000"/> <!-- small ruby -->
<item id="1987" chance="100000"> <!-- bag -->
<inside>
<item id="11303" chance="1100"/> <!-- zaoan shoes -->
<item id="8871" chance="800"/> <!-- focus cape -->
<item id="2187" chance="700"/> <!-- wand of inferno -->
<item id="11304" chance="350"/> <!-- zaoan legs -->
<item id="11356" chance="450"/> <!-- zaoan robe -->
<item id="11355" chance="250"/> <!-- spellweavers robe -->
<item id="2123" chance="300"/> <!-- ring of the sky -->
<item id="11310" chance="100"/> <!-- draken trophy -->
</inside>
</item>
</loot>
this is what I have in my draken spellweaver.xml
but when i do "/m draken spellweaver" the creature is not there(like invisible but can't see), and it has 100hp and gives no loot

when I change to this one, its working perfect but im trying to fix all items to new 8.6...
Code:
<loot>
<item id="2148" countmax="100" chance1="100000" chancemax="34000"/>
<item id="2148" countmax="80" chance1="100000" chancemax="3400"/>
<item id="2152" countmax="2" chance1="10000" chancemax="3400"/>
<item id="2666" countmax="2" chance1="100000" chancemax="5300"/>
<item id="11308" chance="11000"/>
<item id="7590" chance="6000"/>
<item id="2147" chance="8000"/>
<item id="1987" chance="100000"> <!-- bag -->
<inside>
<item id="11297" chance="1100"/>
<item id="11297" chance="850"/>
<item id="8871" chance="800"/>
<item id="11349" chance="1250"/>
</inside>
</item>
 
Last edited:
ofc
<monster name="Draken Spellweaver" file="8.54/Draken Spellweaver.xml"/>

error log
Code:
data/monster/8.54/Draken Spellweaver.xml:72: parser error : Opening and ending tag mismatch: item line 53 and loot
</loot>
       ^
data/monster/8.54/Draken Spellweaver.xml:73: parser error : Premature end of data in tag loot line 52
<monster/>
          ^
data/monster/8.54/Draken Spellweaver.xml:73: parser error : Premature end of data in tag monster line 2
<monster/>
          ^
[15:19:36.339] [Warning - Monsters::loadMonster] Cannot load monster (Draken Spellweaver) file (data/monster/8.54/Draken Spellweaver.xml).
[15:19:36.339] Line: 73, Info: Premature end of data in tag monster line 2


@Look main post now, edited with little more thingys
 
I have check the monster script but can't find no broken tags, here is the script anyway, try and see you could have accidentally erased something:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Draken Spellweaver" nameDescription="a draken spellweaver" race="blood" experience="2600" speed="240" manacost="0">
    <health now="5000" max="5000"/>
    <look type="340" corpse="11317"/>
    <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="1"/>
        <flag targetdistance="1"/>
        <flag staticattack="90"/>
        <flag runonhealth="0"/>
    </flags>
	<attacks>
		<attack name="melee" interval="2000" skill="55" attack="50"/>
		<attack name="fire" interval="2000" chance="10" range="7" radius="1" target="1" min="-15" max="-245">
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="firearea"/>
		</attack>
		<attack name="fire" interval="2000" chance="15" range="7" radius="4" target="1" min="-0" max="-410">
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="firearea"/>
		</attack>
		<attack name="energy" interval="1000" chance="24" range="7" target="1" min="-0" max="-310">
			<attribute key="shootEffect" value="energyball"/>
			<attribute key="areaEffect" value="energy"/>
		</attack>
	</attacks>
    <defenses armor="25" defense="25">
		<defense name="invisible" interval="1500" chance="10" duration="3000">
			<attribute key="areaEffect" value="redshimmer"/>
        </defense>
    </defenses>
	<elements>
		<element physicalPercent="0"/>
		<element holyPercent="20"/>
		<element deathPercent="-10"/>
		<element energyPercent="25"/>
		<element icePercent="0"/>
		<element earthPercent="-10"/>
	</elements>
	<immunities>
		<immunity fire="1"/>
		<immunity invisible="1"/>
	</immunities>
	<loot>
		<item id="2148" countmax="100" chance="100000" > <!-- gold coin -->
		<item id="2148" countmax="90" chance="100000"/> <!-- gold coin -->
		<item id="2152" countmax="5" chance="10000"/> <!-- platinum coin -->
		<item id="2666" countmax="4" chance="100000"/> <!-- meat -->
		<item id="11314" chance="11000"/> <!-- weaver wandtip -->
		<item id="7590" chance="6000"/> <!-- great mana potion -->
		<item id="2147" countmax="5" chance="8000"/> <!-- small ruby -->
		<item id="1987" chance="100000"/> <!-- bag -->
		<inside>
			<item id="11303" chance="1100"/> <!-- zaoan shoes -->
			<item id="8871" chance="800"/> <!-- focus cape -->
			<item id="2187" chance="700"/> <!-- wand of inferno -->
			<item id="11304" chance="350"/> <!-- zaoan legs -->
			<item id="11356" chance="450"/> <!-- zaoan robe -->
			<item id="11355" chance="250"/> <!-- spellweavers robe -->
			<item id="2123" chance="300"/> <!-- ring of the sky -->
			<item id="11310" chance="100"/> <!-- draken trophy -->
		</inside>
		</item>
	</loot>
</monster>
 
XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Draken Spellweaver" nameDescription="a draken spellweaver" race="blood" experience="2600" speed="240" manacost="0">
    <health now="5000" max="5000"/>
    <look type="340" corpse="11317"/>
    <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="1"/>
        <flag targetdistance="1"/>
        <flag staticattack="90"/>
        <flag runonhealth="0"/>
     </flags>
<attacks>
    <attack name="melee" interval="2000" skill="55" attack="50"/>
<attack name="fire" interval="2000" chance="10" range="7" radius="1" target="1" min="-15" max="-245">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
<attack name="fire" interval="2000" chance="15" range="7" radius="4" target="1" min="-0" max="-410">
<attribute key="shootEffect" value="fire"/>
<attribute key="areaEffect" value="firearea"/>
</attack>
    <attack name="energy" interval="1000" chance="24" range="7" target="1" min="-0" max="-310">
      <attribute key="shootEffect" value="energyball"/>
      <attribute key="areaEffect" value="energy"/>
      </attack>
</attacks>
    <defenses armor="25" defense="25">
<defense name="invisible" interval="1500" chance="10" duration="3000">
<attribute key="areaEffect" value="redshimmer"/>
        </defense>
    </defenses>
<elements>
<element physicalPercent="0"/>
<element holyPercent="20"/>
<element deathPercent="-10"/>
<element energyPercent="25"/>
<element icePercent="0"/>
<element earthPercent="-10"/>
</elements>
<immunities>
<immunity fire="1"/>
<immunity invisible="1"/>
</immunities>
<loot>
<item id="2148" countmax="100" chance="100000"/> <!-- gold coin -->
<item id="2148" countmax="90" chance="100000"/> <!-- gold coin -->
<item id="2152" countmax="5" chance="10000"/> <!-- platinum coin -->
<item id="2666" countmax="4" chance="100000"/> <!-- meat -->
<item id="11314" chance="11000"/> <!-- weaver wandtip -->
<item id="7590" chance="6000"/> <!-- great mana potion -->
<item id="2147" countmax="5" chance="8000"/> <!-- small ruby -->
<item id="1987" chance="100000"> <!-- bag -->
    <item id="11303" chance="1100"/> <!-- zaoan shoes -->
    <item id="8871" chance="800"/> <!-- focus cape -->
    <item id="2187" chance="700"/> <!-- wand of inferno -->
    <item id="11304" chance="350"/> <!-- zaoan legs -->
    <item id="11356" chance="450"/> <!-- zaoan robe -->
    <item id="11355" chance="250"/> <!-- spellweavers robe -->
    <item id="2123" chance="300"/> <!-- ring of the sky -->
    <item id="11310" chance="100"/> <!-- draken trophy -->
</item>
</loot>
</monster>
 
1) You forgot "/" 53 line
2) Delete "/" 60 line
3) Delete <inside> and </inside> because when u dont have "/" in line with container (backpack, bag, etc) next items will be in container.
4) Close container items </item>
 
Back
Top