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

TFS 1.X+ Run monster RUN

Crystals

Member
Joined
Sep 28, 2024
Messages
58
Reaction score
10
Hi,

I don't know how to make a monster run away from the player through fire/poison/energy if there is no other way.

It's not about being resistant. When it gets hit by a fire bomb, it runs further, but if there is fire in front of it, it won't run. If it gets hit by a fire bomb, it stands still and doesn't move

TFS 1.4.2


LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Rabbit Speed" nameDescription="a rabbit normal" race="blood" experience="0" speed="500" manacost="220">
    <health now="15" max="15"/>
    <look type="978" corpse="6017"/>
    <targetchange interval="5000" chance="0"/>
    <flags>
        <flag summonable="1" />
        <flag attackable="1" />
        <flag hostile="1" />
        <flag illusionable="1" />
        <flag convinceable="0" />
        <flag pushable="1" />
        <flag canpushitems="0" />
        <flag canpushcreatures="0" />
        <flag targetdistance="8" />
        <flag staticattack="90" />
        <flag runonhealth="150" />
        <flag canwalkonenergy="1" />
        <flag canwalkonfire="1" /> 
        <flag canwalkonpoison="1" />
    </flags>
    <defenses armor="5" defense="5"/>
    <immunities>
        <immunity invisible="1" />
    </immunities>
    <loot>
        <item id="2684" countmax="2" chance="10000"/><!-- carrot -->
        <item id="2666" countmax="2" chance="85620"/><!-- meat -->
    </loot>
</monster>
 

Doesnt work :/



[Warning - Monsters::loadMonster] Unknown flag attribute: avoidfire. data/monster/glires/rabbit easy.xml
[Warning - Monsters::loadMonster] Unknown flag attribute: avoidpoison. data/monster/glires/rabbit easy.xml
[Warning - Monsters::loadMonster] Unknown flag attribute: avoidenergy. data/monster/glires/rabbit easy.xml


I would like it to escape through the fire when it is hit, for example, by a fire bomb (since it is already burning) and for me it stands still
 
Last edited:
I can't promise much because I'm still learning, but tonight when I have more time, I'll set up a test server (1.4.2) and try to find a solution for you—unless someone else finds one first.
 
Hi,

I don't know how to make a monster run away from the player through fire/poison/energy if there is no other way.

It's not about being resistant. When it gets hit by a fire bomb, it runs further, but if there is fire in front of it, it won't run. If it gets hit by a fire bomb, it stands still and doesn't move

TFS 1.4.2


LUA:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Rabbit Speed" nameDescription="a rabbit normal" race="blood" experience="0" speed="500" manacost="220">
    <health now="15" max="15"/>
    <look type="978" corpse="6017"/>
    <targetchange interval="5000" chance="0"/>
    <flags>
        <flag summonable="1" />
        <flag attackable="1" />
        <flag hostile="1" />
        <flag illusionable="1" />
        <flag convinceable="0" />
        <flag pushable="1" />
        <flag canpushitems="0" />
        <flag canpushcreatures="0" />
        <flag targetdistance="8" />
        <flag staticattack="90" />
        <flag runonhealth="150" />
        <flag canwalkonenergy="1" />
        <flag canwalkonfire="1" />
        <flag canwalkonpoison="1" />
    </flags>
    <defenses armor="5" defense="5"/>
    <immunities>
        <immunity invisible="1" />
    </immunities>
    <loot>
        <item id="2684" countmax="2" chance="10000"/><!-- carrot -->
        <item id="2666" countmax="2" chance="85620"/><!-- meat -->
    </loot>
</monster>
Did yiu try the canwalkonfire for firebomb? I think if its 0 it will do what you need
 
Back
Top