• 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>
 
Code:
https://otland.net/threads/monsters-fields-and-walk-steps.252746/#post-2452287

It may help you to review this topic, and edit the sources.
 
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>
Demon walk on field when dont have any path to reach you.
This is the point, Demon avoid all "obstacle" to reach you.

To explain:
If you setup:
<flag canwalkonenergy="1" />
Demon will walk around to find way to you in first try to avoid all obstacles, anyway if there will be no path toy you (Blocked by energy) he will enter on it and move over it.
If you setup:
<flag canwalkonenergy="0" />
Demon will walk around to find way to you in first try to avoid all obstacles, and if you block him by energy walls he will NOT ENTER on it.

You need source edit, to declare new "pathfinding"
 
Last edited:
Demon walk on field when dont have any path to reach you.
This is the point, Demon avoid all "obstacle" to reach you.

To explain:
If you setup:
<flag canwalkonenergy="1" />
Demon will walk around to find way to you in first try to avoid all obstacles, anyway if there will be no path toy you (Blocked by energy) he will enter on it and move over it.
If you setup:
<flag canwalkonenergy="0" />
Demon will walk around to find way to you in first try to avoid all obstacles, and if you block him by energy walls he will NOT ENTER on it.

You need source edit, to declare new "pathfinding"
Code:
https://otland.net/threads/monsters-fields-and-walk-steps.252746/#post-2452287

It may help you to review this topic, and edit the sources.

I will take a look
Post automatically merged:

Demon walk on field when dont have any path to reach you.
This is the point, Demon avoid all "obstacle" to reach you.

To explain:
If you setup:
<flag canwalkonenergy="1" />
Demon will walk around to find way to you in first try to avoid all obstacles, anyway if there will be no path toy you (Blocked by energy) he will enter on it and move over it.
If you setup:
<flag canwalkonenergy="0" />
Demon will walk around to find way to you in first try to avoid all obstacles, and if you block him by energy walls he will NOT ENTER on it.

You need source edit, to declare new "pathfinding"
"You need source edit, to declare new "pathfinding" "

Yes.. I actually notice it xDD
thanks 4 remember me xDDD
Post automatically merged:

Code:
https://otland.net/threads/monsters-fields-and-walk-steps.252746/#post-2452287

It may help you to review this topic, and edit the sources.

I dont understand progamming very well, my src had too much changes from that, tried to made these changes, but the src doenst work with them;

:/
 
Last edited:
Ok, I have tested one thing. If monster is trapped or in some kind of building and there is a field on the doors spot, monster will walk on it. Otherwise it will try to find other way around. The safest one.
 
Ok, I have tested one thing. If monster is trapped or in some kind of building and there is a field on the doors spot, monster will walk on it. Otherwise it will try to find other way around. The safest one.
Yes. If there is no free spot to attack the player, he pass trough the field, but he should ignore the field, and pass trought it.
 
If you want to ignore it completly, then give him immunity. But it will give him immunity to all spells using that dmg type.
 
If you want to ignore it completly, then give him immunity. But it will give him immunity to all spells using that dmg type.
That's the problem.. I cant give him the imunite, since a demon, should receive damage from energy spells, and pass trough energy walls, without trying to go around the energy wall
^.-
 

Could you please stop spamming with "up" all your threads daily? They are already up and it won't make solutions appear magically faster.

You can read more about OTLand rules here -

 
Back
Top