• 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 Armor and Resistance Penetration?

I mean the values of a monsters armor and elemental resistances.

Okay I guess that you mean this.

You can check for example Skeleton in /data/monster/skeleton/skeleton.lua

You can see that this type of monster is undead as you can see the monster have:
HTML:
    <immunities>
        <immunity death="1"/>
        <immunity drown="1"/>
        <immunity lifedrain="1"/>
    </immunities>

Number 1 means true then, you can set more immunities, for example <immunity fire="1"/>
 
Defences are reducing damage or hindering at least, before the actual damage takes place.
Elements, can be positive or negative or neutral for the monster.
-20 = monster get's hit 20% more by that element. (negative 'buff')
20 = monster reduces damage by 20% (positive 'buff')
0 = neutral.

Anything put into immunities makes the monster immune to that damage.
Ironically at the same time, you could make a creatures elemental resistance to 100, and achieve the same effect.
Code:
<defenses armor="15" defense="15">

<element energyPercent="-10"/>
<element earthPercent="30"/>

<immunity paralyze="1"/>
<immunity invisible="1"/>
Below is an example 'Bog Raider', from 1.0.0
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Bog Raider" nameDescription="a bog raider" race="venom" experience="800" speed="240" manacost="0">
   <health now="1300" max="1300"/>
   <look type="299" corpse="8951"/>
   <targetchange interval="4000" chance="10"/>
   <flags>
     <flag summonable="0"/>
     <flag attackable="1"/>
     <flag hostile="1"/>
     <flag illusionable="0"/>
     <flag convinceable="0"/>
     <flag pushable="0"/>
     <flag canpushitems="1"/>
     <flag staticattack="60"/>
     <flag targetdistance="1"/>
     <flag runonhealth="0"/>
   </flags>
   <attacks>
     <attack name="melee" interval="2000" skill="59" attack="53" poison="80"/>
     <attack name="lifedrain" interval="2000" chance="10" min="-90" max="-140" range="7" target="1">
       <attribute key="areaEffect" value="redshimmer"/>
     </attack>
     <attack name="earth" interval="2000" chance="10" radius="3" target="0" min="-100" max="-175">
       <attribute key="areaEffect" value="bubbles"/>
     </attack>
     <attack name="earth" interval="2000" chance="15" min="-96" max="-110" range="7" target="1">
       <attribute key="shootEffect" value="smallearth"/>
     </attack>
     <attack name="speed" interval="2000" chance="15" range="7" target="1" speedchange="-600" duration="15000">
       <attribute key="areaEffect" value="smallplants"/>
     </attack>
   </attacks>
   <defenses armor="15" defense="15">
     <defense name="healing" interval="2000" chance="10" min="65" max="95">
       <attribute key="areaEffect" value="blueshimmer"/>
     </defense>
   </defenses>
   <elements>
     <element energyPercent="-10"/>
     <element earthPercent="30"/>
     <element icePercent="-5"/>
     <element physicalPercent="-20"/>
     <element holyPercent="-5"/>
     <element deathPercent="5"/>
     <element firePercent="85"/>
   </elements>
   <immunities>
     <immunity paralyze="1"/>
     <immunity invisible="1"/>
   </immunities>
   <voices interval="5000" chance="10">
     <voice sentence="Tchhh!"/>
     <voice sentence="Slurp!"/>
   </voices>
   <loot>
     <item id="2148" countmax="100" chance="50750" /><!-- gold coin -->
     <item id="2148" countmax="5" chance="50750" /><!-- gold coin -->
     <item id="10584" chance="9870" /><!-- boggy dreads -->
     <item id="7591" chance="2000" /><!-- great health potion -->
     <item id="8912" chance="1030" /><!-- springsprout rod -->
     <item id="8472" chance="2008" /><!-- great spirit potion -->
     <item id="2647" chance="2040" /><!-- plate legs -->
     <item id="8473" chance="740" /><!-- ultimate health potion -->
     <item id="8872" chance="590" /><!-- belted cape -->
     <item id="8891" chance="110"/><!--paladin armor-->
   </loot>
</monster>
 
Back
Top