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

Monsters Doenst Pass on field?

IgoR lYCAN

New Member
Joined
Dec 1, 2018
Messages
169
Reaction score
4
The problem is simple:
When there is no space that the monster can walk, he pass trough the field, but when there is a space, the monster prefer to walkaround not passing the field;

A video Explaining:




XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Demon" nameDescription="a demon" race="fire" experience="11800" speed="310" manacost="0">
    <health now="16800" max="16800"/>
    <look type="35" corpse="5995"/>
    <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="1"/>
        <flag staticattack="40"/>
        <flag runonhealth="0"/>
        <flag canwalkonenergy="1" />
        <flag canwalkonfire="1" />
        <flag canwalkonpoison="1" />
    </flags>
    <attacks>
        <attack name="melee" interval="2000" skill="70" attack="160"/>
        <attack name="manadrain" interval="3000" chance="13" range="7" min="-80" max="-300"/>
        <attack name="fire" interval="2000" chance="30" range="7" radius="7" target="1" min="-560" max="-750">
            <attribute key="shootEffect" value="fire"/>
            <attribute key="areaEffect" value="firearea"/>
        </attack>
        <attack name="energy" interval="3000" chance="15" length="8" spread="0" min="-320" max="-560">
            <attribute key="areaEffect" value="energy"/>
        </attack>
    </attacks>
    <defenses armor="50" defense="55">
        <defense name="healing" interval="1000" chance="15" min="90" max="200">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
        <defense name="speed" interval="1000" chance="15" speedchange="200" duration="20000">
            <attribute key="areaEffect" value="redshimmer"/>
        </defense>
    </defenses>
    <elements>
        <element physicalPercent="15" />
        <element deathPercent="25" />
        <element energyPercent="20" />
        <element icePercent="-15" />
    </elements>
    <immunities>
        <immunity fire="1" />
        <immunity paralyze="1" />
        <immunity invisible="1" />
    </immunities>
    <voices interval="5000" chance="10">
        <voice sentence="MUHAHAHAHA!" yell="1"/>
        <voice sentence="I SMELL FEEEEEAAAR!" yell="1"/>
        <voice sentence="CHAMEK ATH UTHUL ARAK!" yell="1"/>
        <voice sentence="Your resistance is futile!"/>
        <voice sentence="Your soul will be mine!" yell="0"/>
    </voices>
    <loot>

        <item id="2148" countmax="90" chance="28000"/><!-- gold coin -->
        <item id="2520" chance="750"/><!-- demon shield -->
        <item id="2432" chance="6000"/><!-- fire axe -->
        <item id="2393" chance="1650"/><!-- giant sword -->
        <item id="2179" chance="700"/><!-- golden ring -->
                <item id="2472" chance="150"/><!-- magic plate armor -->
                <item id="2514" chance="550"/><!-- mastermind shield -->
                <item id="2152" countmax="13" chance="23750"/><!-- platinum coin -->
                <item id="2164" chance="2800"/><!-- might ring -->
                <item id="7382" chance="950"/><!-- demonrage sword -->
                <item id="2470" chance="450"/><!-- golden legs -->
                <item id="7393" chance="50"/><!-- demon trophy -->
    </loot>
</monster>
 
That is how it is supposed to work, it won't move through fields as long as you didn't attack it.
 
That is how it is supposed to work, it won't move through fields as long as you didn't attack it.
No, it's not supposed to work like that. In RL Tibia demon walks through all three types of fields, so it just chooses whatever path is the shortest, even if you're not attacking it.
 
Probably because fire fields, etc. has flag: block path finding set in dat file.
Where should I take a look at?
Post automatically merged:

That is how it is supposed to work, it won't move through fields as long as you didn't attack it.

Demons should pass on firefields;
energy fields;
poison fields;

without getting stuck or movingaround them
Post automatically merged:

No, it's not supposed to work like that. In RL Tibia demon walks through all three types of fields, so it just chooses whatever path is the shortest, even if you're not attacking it.
Yes, Exactly he explained =)
 
5 topics basically at the same time. What do you know about OTs? Any scripting? Mapping? Or only ideas?

A little bit of everything, but mostly mapping.
I wanst never good as a developer, I was always a great player, maybe you heard about me, the character : Lyh, I was the top of Tibia.
 
If the monster has the flag
XML:
     <flag canwalkonenergy="1" />
It will go through even if you don't hit it
However, because the demon isn't inmune to energy damage, it will try to avoid the fields
 
If the monster has the flag
XML:
     <flag canwalkonenergy="1" />
It will go through even if you don't hit it
However, because the demon isn't inmune to energy damage, it will try to avoid the fields
Well.. It already have this flag ^.- thats the problem
 
Back
Top