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

Lua looterror

Glidarn

Member
Joined
May 9, 2009
Messages
970
Reaction score
16
Location
Åkersberga, Sweden
I changed some loot on some bosses and this happend :(

Imageshack - looterror.png


LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Ferumbras" nameDescription="Ferumbras" race="venom" experience="12000" speed="320" manacost="0">
	<health now="35000" max="35000"/>
	<look type="229" corpse="6078"/>
	<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="2"/>
		<flag staticattack="90"/>
		<flag runonhealth="2500"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-100" max="-350"/>
		<attack name="manadrain" interval="2000" chance="20" range="7" min="-300" max="-700">
			<attribute key="areaEffect" value="redshimmer"/>
		</attack>
		<attack name="poison" interval="3000" chance="20" radius="6" target="0" min="-250" max="-550">
			<attribute key="areaEffect" value="poison"/>
		</attack>
		<attack name="energy" interval="2000" chance="18" radius="6" target="0" min="-200" max="-400">
			<attribute key="areaEffect" value="energy"/>
		</attack>
		<attack name="manadrain" interval="2000" chance="16" radius="6" target="0" min="-225" max="-375">
			<attribute key="areaEffect" value="redshimmer"/>
		</attack>
		<attack name="lifedrain" interval="2000" chance="21" radius="6" target="0" min="-200" max="-450">
			<attribute key="areaEffect" value="poff"/>
		</attack>
		<attack name="effect" interval="3000" chance="20" radius="5" target="0" min="-200" max="-600">
			<attribute key="areaEffect" value="blackspark"/>
		</attack>
		<attack name="firecondition" interval="3000" chance="20" range="7" radius="7" target="1" min="-200" max="-800">
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="firearea"/>
		</attack>
		<attack name="lifedrain" interval="2000" chance="25" length="8" spread="0" min="-50" max="-250">
			<attribute key="areaEffect" value="greenspark"/>
		</attack>
	</attacks>
	<defenses armor="100" defense="120">
		<defense name="healing" interval="2000" chance="10" min="900" max="1500">
			<attribute key="areaEffect" value="greenshimmer"/>
		</defense>
		<defense name="speed" interval="3000" chance="30" speedchange="360" duration="7000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
		<defense name="invisible" interval="4000" chance="20" duration="5000">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element firePercent="90"/>
	</elements>
	<immunities>
		<immunity lifedrain="1"/>
		<immunity paralyze="1"/>
		<immunity outfit="1"/>
		<immunity drunk="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="3">
		<summon name="Demon" interval="3000" chance="12" max="3"/>
	</summons>
	<voices interval="5000" chance="20">
		<voice sentence="NOONE WILL STOP ME THIS TIME!" yell="1"/>
		<voice sentence="THE POWER IS MINE!" yell="1"/>
	</voices>
	<loot>
		<item id="2148" countmax="100" chance="100000"/><!-- gold coin -->
		<item id="2148" countmax="25" chance="100000"/><!-- gold coin -->
		<item id="2393" chance="16060"/><!-- giant sword -->
		<item id="2514" chance="12050"/><!-- mastermind shield -->
		<item id="2472" chance="7000"/><!-- magic plate armor -->
		<item id="1987" chance="100000"><!-- bag -->
		<item id="7417" chance="7500"><!-- runed sword -->
		<item id="8926" chance="9000"><!-- demonwing axe -->
		<item id="7405" chance="6000"><!-- havoc blade -->
		<item id="8868" chance="3500"><!-- velvet mantle -->
		<item id="2539" chance="8000"><!-- phoenix shield -->
			<inside>
				<item id="2678" countmax="3" chance="20000"/><!-- coconut -->
				<item id="2148" countmax="100" chance="100000"/><!-- gold coin -->
				<item id="2151" countmax="4" chance="12000"/><!-- talon -->
				<item id="5903" chance="100000"/><!-- ferumbras' hat -->
				<item id="2149" countmax="3" chance="15000"/><!-- small emerald -->
				<item id="2171" chance="30000"/><!-- platinum amulet -->
				<item id="2415" chance="6000"/><!-- great axe -->
			</inside>
		</item>
	</loot>
</monster>


Morgaroth

LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Morgaroth" nameDescription="Morgaroth" race="undead" experience="15000" speed="400" manacost="0">
	<health now="55000" max="55000"/>
	<look type="12" head="0" body="94" legs="79" feet="79" 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="0"/>
	</flags>
	<attacks>
		<attack name="melee" interval="2000" min="-700" max="-2000"/>
		<attack name="fire" interval="3000" chance="35" range="7" radius="7" target="1" min="-700" max="-1200">
			<attribute key="shootEffect" value="fire"/>
			<attribute key="areaEffect" value="firearea"/>
		</attack>
		<attack name="melee" interval="1800" chance="40" range="7" radius="5" target="0" min="-250" max="-400">
			<attribute key="areaEffect" value="blackspark"/>
		</attack>
		<attack name="energy" interval="3000" chance="30" length="8" spread="0" min="-300" max="-1000">
			<attribute key="areaEffect" value="energy"/>
		</attack>
		<attack name="physical" interval="2500" chance="20" range="7" radius="5" target="0" min="-200" max="-480">
			<attribute key="areaEffect" value="greenshimmer"/>
		</attack>
		<attack name="physical" interval="2000" chance="15" range="7" radius="13" target="0" min="-250" max="-500">
			<attribute key="areaEffect" value="rednote"/>
		</attack>
		<attack name="physical" interval="2000" chance="20" radius="14" target="0" min="-200" max="-450">
			<attribute key="areaEffect" value="bluebubble"/>
		</attack>
		<attack name="melee" interval="3000" chance="15" range="7" radius="3" target="0" min="-100" max="-200">
			<attribute key="areaEffect" value="blueshimmer"/>
		</attack>
	</attacks>
	<defenses armor="55" defense="65">
		<defense name="healing" interval="3000" chance="35" min="300" max="800">
			<attribute key="areaEffect" value="blueshimmer"/>
		</defense>
		<defense name="speed" interval="4000" chance="80" speedchange="440" duration="6000">
			<attribute key="areaEffect" value="redshimmer"/>
		</defense>
	</defenses>
	<elements>
		<element firePercent="100"/>
		<element earthPercent="100"/>
		<element energyPercent="100"/>
		<element deathPercent="60"/>
		<element physicalPercent="40"/>
		<element icePercent="-25"/>
	</elements>
	<immunities>
		<immunity paralyze="1"/>
		<immunity invisible="1"/>
	</immunities>
	<summons maxSummons="6">
		<summon name="Demon" interval="4000" chance="33"/>
	</summons>
	<voices interval="5000" chance="30">
		<voice sentence="I AM MORGAROTH, LORD OF THE TRIANGLE... AND YOU ARE LOST!" yell="1"/>
		<voice sentence="MY SEED IS FEAR AND MY HARVEST ARE YOUR SOULS!" yell="1"/>
		<voice sentence="THE TRIANGLE OF TERROR WILL RISE!" yell="1"/>
		<voice sentence="ZATHROTH! LOOK AT THE DESTRUCTION I AM CAUSING IN YOUR NAME!" yell="1"/>
	</voices>
	<loot>
		<item id="2148" countmax="100" chance="100000"/><!-- gold coin -->
		<item id="2148" countmax="90" chance="50000"/><!-- gold coin -->
		<item id="2143" countmax="5" chance="10000"/><!-- white pearl -->
		<item id="2396" chance="19429"/><!-- ice rapier -->
		<item id="2462" chance="20000"/><!-- devil helmet -->
		<item id="2214" chance="16000"/><!-- ring of healing -->
		<item id="2003" chance="100000"><!-- grey backpack -->
		<item id="2522" chance="7000"><!-- great shield -->
		<item id="8886" chance="5000"><!-- molten plate -->
		<item id="8865" chance="7500"><!-- dark lord's cape -->
		<item id="5943" chance="5000"><!-- morgaroth's heart -->
			<inside>
				<item id="2495" chance="6000"/><!-- demon legs -->
				<item id="2387" chance="20000"/><!-- double axe -->
				<item id="2393" chance="60000"/><!-- giant sword -->
				<item id="2195" chance="16033"/><!-- boots of haste -->
				<item id="2421" chance="7000"/><!-- thunder hammer -->
				<item id="2522" chance="5600"/><!-- great shield -->
				<item id="2192" chance="24000"/><!-- crystal ball -->
			</inside>
		</item>
	</loot>
</monster>
 
Ferumbras:
XML:
		<item id="1987" chance="100000"><!-- bag -->
		<item id="7417" chance="7500"><!-- runed sword -->
		<item id="8926" chance="9000"><!-- demonwing axe -->
		<item id="7405" chance="6000"><!-- havoc blade -->
		<item id="8868" chance="3500"><!-- velvet mantle -->
		<item id="2539" chance="8000"><!-- phoenix shield -->

TO:
XML:
		<item id="7417" chance="7500"/><!-- runed sword -->
		<item id="8926" chance="9000"/><!-- demonwing axe -->
		<item id="7405" chance="6000"/><!-- havoc blade -->
		<item id="8868" chance="3500"/><!-- velvet mantle -->
		<item id="2539" chance="8000"/><!-- phoenix shield -->
		<item id="1987" chance="100000"><!-- bag -->


Morgaroth:
XML:
		<item id="2003" chance="100000"><!-- grey backpack -->
		<item id="2522" chance="7000"><!-- great shield -->
		<item id="8886" chance="5000"><!-- molten plate -->
		<item id="8865" chance="7500"><!-- dark lord's cape -->
		<item id="5943" chance="5000"><!-- morgaroth's heart -->

to:
XML:
		<item id="2522" chance="7000"/><!-- great shield -->
		<item id="8886" chance="5000"/><!-- molten plate -->
		<item id="8865" chance="7500"/><!-- dark lord's cape -->
		<item id="5943" chance="5000"/><!-- morgaroth's heart -->
		<item id="2003" chance="100000"><!-- grey backpack -->
 
I don't think you forgot it, I think you copied the "bag/container" line where no / is needed because it got sub tags.
 
Back
Top