• 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 Monsters- Fast questions

Apoccalypse

New Member
Joined
Apr 15, 2017
Messages
114
Solutions
2
Reaction score
4
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Rotworm" nameDescription="a rotworm" race="blood" experience="45" speed="416" manacost="305">
<health now="65" max="65"/>
<look type="26" corpse="5967"/>
<targetchange interval="2000" chance="0"/>
<strategy attack="10" defense="0"/>
<flags>
<flag summonable="0"/>
<flag attackable="1"/>
<flag hostile="1"/>
<flag illusionable="0"/>
<flag convinceable="1"/>
<flag pushable="0"/>
<flag canpushitems="0"/>
<flag canpushcreatures="0"/>
<flag targetdistance="1"/>
<flag staticattack="60"/>
<flag runonhealth="0"/>
</flags>
<attacks>
<attack name="melee" interval="2000" skill="30" attack="20"/>
</attacks>
<defenses armor="8" defense="11"/>
<loot>
<item id="10609" chance="10525" /><!-- lump of dirt -->
<item id="2666" countmax="2" chance="20750" /><!-- meat -->
<item id="2148" countmax="17" chance="24350" /><!-- gold coin -->
<item id="2671" countmax="2" chance="20125" /><!-- ham -->
<item id="1987" chance="100000"><!-- bag -->
<inside>
<item id="3976" countmax="3" chance="2250" /><!-- worm -->
<item id="2376" chance="3625" /><!-- sword -->
<item id="2398" chance="4850" /><!-- mace -->
</inside>
</item>
</loot>
</monster>

Could anyone explain me what it is:
1.<strategy attack="10" defense="0"/>
2.<flag staticattack="60"/>
3.<flag runonhealth="0"/>
4. <attack name="melee" interval="2000" skill="30" attack="20"/> (skill="30" Is it look of the skill ? )

Thanks for help :)
 
Solution
1. is a deprecated function which probably never worked as intended
2. 100 = never moves around target, 1 = moves like a crazy motherfooocker, I recommend something between 85 and 95
3. runs on certain health - 0 = fights until death, 100 or any other number = runs at value health
4. melee is as the name says a melee attack with 30 skill and 20 attack - formula = skill * (attack * 0.05) + (attack * 0.5) = max hit
30 * (20 * 0.05) + (20 * 0.5) = 30 * 1 + 10 = 40 max hit
1. strategy attack is how the monster fight, full attack, balanced or full defence. For example 100 attack and 0 defence is full attack, etc...
2.<flag staticattack="60"/> -- This one i do not know.
3.<flag runonhealth="0"/> --This will make the monster run away when health is lower than this number....
4. <attack name="melee" interval="2000" skill="30" attack="20"/> (skill="30" Is it look of the skill ? )

Melee means the attack type.
Interval is the attack speed, in milliseconds, 2000 = 2 seconds between each attack.
Skill is the actual skill, like sword fighting.
The attack colum im not sure. :)
 
1. is a deprecated function which probably never worked as intended
2. 100 = never moves around target, 1 = moves like a crazy motherfooocker, I recommend something between 85 and 95
3. runs on certain health - 0 = fights until death, 100 or any other number = runs at value health
4. melee is as the name says a melee attack with 30 skill and 20 attack - formula = skill * (attack * 0.05) + (attack * 0.5) = max hit
30 * (20 * 0.05) + (20 * 0.5) = 30 * 1 + 10 = 40 max hit
 
Solution
Back
Top