• Congratulations to the OTLand January Mapping Competition Winner! The grand prize of Otland Premium goes to Andréew.
  • Sign up for February Mapping Competition! The prize includes Otland Premium time.
  • 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
110
Best answers
0
Reaction score
2
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>
 

margoh

{{ user.title }}
Joined
Apr 1, 2013
Messages
706
Best answers
11
Reaction score
236
Probably because fire fields, etc. has flag: block path finding set in dat file.
 

M0ustafa

Î Àm ŁĕğẹňĎ
Premium User
Support Team
Joined
Mar 4, 2017
Messages
1,304
Best answers
153
Reaction score
477
Location
Egypt
That is how it is supposed to work, it won't move through fields as long as you didn't attack it.
 

Wirox

Active Member
Joined
Sep 3, 2016
Messages
105
Best answers
1
Reaction score
39
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.
 
OP
IgoR lYCAN

IgoR lYCAN

New Member
Joined
Dec 1, 2018
Messages
110
Best answers
0
Reaction score
2
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 =)
 

Nemphis

Intermediate OT User
Joined
Jun 22, 2009
Messages
384
Best answers
0
Reaction score
142
Location
Sweden
5 topics basically at the same time. What do you know about OTs? Any scripting? Mapping? Or only ideas?
 
OP
IgoR lYCAN

IgoR lYCAN

New Member
Joined
Dec 1, 2018
Messages
110
Best answers
0
Reaction score
2
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.
 

Hyresu

Professional Dumb
Premium User
Joined
Apr 7, 2012
Messages
52
Best answers
7
Reaction score
16
Location
Chile
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
 
OP
IgoR lYCAN

IgoR lYCAN

New Member
Joined
Dec 1, 2018
Messages
110
Best answers
0
Reaction score
2
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
 

Nemphis

Intermediate OT User
Joined
Jun 22, 2009
Messages
384
Best answers
0
Reaction score
142
Location
Sweden
I dont understand the problem here. What do you want it to do even?
 
OP
IgoR lYCAN

IgoR lYCAN

New Member
Joined
Dec 1, 2018
Messages
110
Best answers
0
Reaction score
2
I dont understand the problem here. What do you want it to do even?
The monsters which have this flag :

<flag canwalkonenergy="1" />

should pass trough the wall, without going around, like the video shows
 

Ochman

Premium User
Premium User
Joined
Feb 27, 2016
Messages
282
Best answers
3
Reaction score
172
What's the TFS you're using?
 

Nemphis

Intermediate OT User
Joined
Jun 22, 2009
Messages
384
Best answers
0
Reaction score
142
Location
Sweden
The demon has the same behaviour with fire fields?
 
Top