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

Dakotah

New Member
Joined
Feb 4, 2018
Messages
14
Reaction score
0
I am using TFS 0.4 Rev 3777 and I am having an issue that I am very uncertain about. For example, if I were surrounded by monsters and killed them all, the other monsters on screen will not come to melee me because the corpse of the dead monsters are blocking their path and they will not walk over them. I have searched the forums and found people with similar issues and even the same but didn't find a solution. Has anyone experience with this issue? And if so, how did you fix it?
 
Or change "flags" in every monster? I dont remember which one but there is one to allows walking through corpses.
 
Remove corpses from the game then problem solved... Its easy too you can do it in the sources with an if statement ;)
 
I tested with rootworms trying different corpse IDs and nothing changed. Even tried it with a bag as the corpse and they still would not walk over it. One thing I did notice is that after about a minute passes they will finally walk over the corpse or whatever ID I have set as the corpse.
 
maybe post the script of the monster here.
This is happening with every monster. I'm convinced it may not be in the monster file but rather somewhere else.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Rotworm" nameDescription="a rotworm" race="blood" experience="40" speed="176" manacost="305">
    <health now="65" max="65"/>
    <look type="26" corpse="5967"/>
    <targetchange interval="2000" chance="0"/>
    <strategy attack="100" 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="90"/>
        <flag runonhealth="0"/>
    </flags>
    <attacks>
        <attack name="melee" interval="2000" skill="10" attack="12"/>
    </attacks>
    <defenses armor="8" defense="11"/>
    <loot>
        <item id="2148" countmax="20" chance="100000"/><!-- gold coin -->
        <item id="3976" countmax="5" chance="50000"/><!-- worm -->
        <item id="2148" countmax="14" chance="100000"/><!-- gold coin -->
        <item id="2480" chance="1500"/><!-- legion helmet -->
        <item id="2530" chance="2857"/><!-- copper shield -->
        <item id="1987" chance="100000"><!-- bag -->
            <inside>
                <item id="2666" countmax="2" chance="20000"/><!-- meat -->
                <item id="2671" countmax="2" chance="20000"/><!-- ham -->
                <item id="2398" chance="3333"/><!-- mace -->
                <item id="2376" chance="10000"/><!-- sword -->
                <item id="2412" chance="1000"/><!-- katana -->
            </inside>
        </item>
    </loot>
</monster>
 
Back
Top Bottom