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

Need Help! Training Monks TFS 1.4.2

SparvenBara

Member
Joined
Jul 28, 2023
Messages
36
Reaction score
16
Location
Sweden
Hi. Im trying to fix monks for my OTs, i dont know what im doing wrong.

The monks are standing still, they do attack and dont do dmg, but i cant target them/attack them. Why?
- and i dont seem to get any shielding-skilling from being hit.

1692403785446.png

This is my script:

XML:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Training Monk" nameDescription="a training monk" race="undead" experience="0" speed="0" manacost="0">
    <health now="250000" max="250000"/>
    <look type="57" corpse="6080"/>
    <targetchange interval="5000" chance="20"/>
    <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="0"/>
        <flag canpushcreatures="1"/>
        <flag targetdistance="1"/>
        <flag staticattack="90"/>
        <flag runonhealth="100"/>
        <flag hidehealth="1"/>
    </flags>
    <attacks>
        <attack name="melee" interval="1500" skill="1" attack="1"/>
    </attacks>
    <defenses armor="20" defense="22">
        <defense name="healing" interval="2000" chance="50" min="65000" max="100000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
    <immunities>
        <immunity manadrain="1"/>
        <immunity paralyze="1"/>
        <immunity drunk="1"/>
        <immunity outfit="1"/>
        <immunity invisible="1"/>
    </immunities>
</monster>



Hope someone can help!
 
Last edited:
Solution
Check ;)

Code:
<monster name="Trainer" file="monsters/trainer.xml" />

Lua:
<?xml version="1.0" encoding="ISO-8859-1"?>
<monster name="Trainer" nameDescription="a trainer" race="blood" experience="0" speed="0" manacost="0">
    <health now="1000000" max="1000000"/>
    <look typeex="5787" />
    <targetchange interval="0" chance="0"/>
    <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="0" />
        <flag targetdistance="1" />
        <flag staticattack="90" />
        <flag...
Check ;)

Code:
<monster name="Trainer" file="monsters/trainer.xml" />

Lua:
<?xml version="1.0" encoding="ISO-8859-1"?>
<monster name="Trainer" nameDescription="a trainer" race="blood" experience="0" speed="0" manacost="0">
    <health now="1000000" max="1000000"/>
    <look typeex="5787" />
    <targetchange interval="0" chance="0"/>
    <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="0" />
        <flag targetdistance="1" />
        <flag staticattack="90" />
        <flag runonhealth="0" />
        <flag canwalkonenergy="0" />
        <flag canwalkonfire="0" />
        <flag canwalkonpoison="0" />
    </flags>
    <attacks>
        <attack name="melee" interval="2000" skill="0" attack="0"/>
    </attacks>
    <defenses armor="10" defense="5">
        <defense name="healing" interval="10000" chance="100" min="1000000" max="1000000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
</monster>
 
Last edited:
Solution
Check ;)

Code:
<monster name="Trainer" file="monsters/trainer.xml" />

Lua:
<?xml version="1.0" encoding="ISO-8859-1"?>
<monster name="Trainer" nameDescription="a trainer" race="blood" experience="0" speed="0" manacost="0">
    <health now="1000000" max="1000000"/>
    <look typeex="5787" />
    <targetchange interval="0" chance="0"/>
    <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="0" />
        <flag targetdistance="1" />
        <flag staticattack="90" />
        <flag runonhealth="0" />
        <flag canwalkonenergy="0" />
        <flag canwalkonfire="0" />
        <flag canwalkonpoison="0" />
    </flags>
    <attacks>
        <attack name="melee" interval="2000" skill="0" attack="0"/>
    </attacks>
    <defenses armor="10" defense="5">
        <defense name="healing" interval="10000" chance="100" min="1000000" max="1000000">
            <attribute key="areaEffect" value="blueshimmer"/>
        </defense>
    </defenses>
</monster>
Wohoo! it works perfect! thank you so much!

REP++

1692405417636.png
 
Back
Top