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

C++ [TFS 1.3] Monster vs Monster problem

Karain

Jack of all trades
Joined
Jul 9, 2009
Messages
338
Solutions
3
Reaction score
147
Location
Egypt
Hello, i'm facing an intricate problem in TFS 1.3, I have a screen that will turn some monsters against each other like a hunter-prey relationship. so far everything works fine, they target each other, they attack each other, they even use spell against each other but they take 0 damage.

See the screenshot below for a proof (dragon using fireball spell on wolf, wolf doesn't give a shit)

i am not sure if this is some hidden lua script or a core C++ code within the server itself, can someone help me find a way to enable monsters to damage each other, please?

Thanks.
 

Attachments

Why does your demon have the yellow skull? Is any of these monsters your summon and you are GM/GOD that has flag not allowing you to attack players / monsters?
 
Why does your demon have the yellow skull? Is any of these monsters your summon and you are GM/GOD that has flag not allowing you to attack players / monsters?

The skull is related to a monster rarity system, they do not interfere with anything other than their hp and loot quality.

if i log in as a normal character, those 2 would kill me in no time. they work fine against players.

if i have a monster as a summon, they will hurt other monsters (under my orders), but monster vs monster isn't working for some unknown reason. i suspect something C++ related.
 
the .xml files of demon, wolves and all others are bog standard from GIT

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<monster script="default.lua"  name="Demon" nameDescription="a demon" race="fire" experience="6000" speed="280">
    <health now="8200" max="8200" />
    <look type="35" corpse="5995" />
    <targetchange interval="4000" chance="20" />
    <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="70" />
        <flag runonhealth="0" />
    </flags>
    <attacks>
        <attack name="melee" interval="2000" min="0" max="-520" />
        <attack name="manadrain" interval="2000" chance="10" range="7" min="0" max="-120" />
        <attack name="fire" interval="2000" chance="20" range="7" radius="7" target="1" min="-150" max="-250">
            <attribute key="shootEffect" value="fire" />
            <attribute key="areaEffect" value="firearea" />
        </attack>
        <attack name="firefield" interval="2000" chance="10" range="7" radius="1" target="1">
            <attribute key="shootEffect" value="fire" />
        </attack>
        <attack name="lifedrain" interval="2000" chance="10" length="8" spread="0" min="-300" max="-490">
            <attribute key="areaEffect" value="purpleenergy" />
        </attack>
        <attack name="energy" interval="2000" chance="10" range="1" min="-210" max="-300">
            <attribute key="shootEffect" value="energy" />
        </attack>
        <attack name="speed" interval="2000" chance="15" radius="1" target="1" speedchange="-700" duration="30000">
            <attribute key="areaEffect" value="redshimmer" />
        </attack>
    </attacks>
    <defenses armor="55" defense="55">
        <defense name="healing" interval="2000" chance="15" min="180" max="250">
            <attribute key="areaEffect" value="blueshimmer" />
        </defense>
        <defense name="speed" interval="2000" chance="15" speedchange="320" duration="5000">
            <attribute key="areaEffect" value="redshimmer" />
        </defense>
    </defenses>
    <elements>
        <element physicalPercent="30" />
        <element deathPercent="30" />
        <element energyPercent="50" />
        <element earthPercent="40" />
        <element icePercent="-10" />
        <element holyPercent="-10" />
    </elements>
    <immunities>
        <immunity fire="1" />
        <immunity drown="1" />
        <immunity lifedrain="1" />
        <immunity paralyze="1" />
        <immunity invisible="1" />
    </immunities>
    <summons maxSummons="1">
        <summon name="fire elemental" interval="2000" chance="10" />
    </summons>
    <voices interval="5000" chance="10">
        <voice sentence="Your soul will be mine!" />
        <voice sentence="MUHAHAHAHA!" />
        <voice sentence="CHAMEK ATH UTHUL ARAK!" />
        <voice sentence="I SMELL FEEEEAAAAAR!" />
        <voice sentence="Your resistance is futile!" />
    </voices>
    <loot>
        <item name="purple tome" chance="1190" />
        <item name="gold coin" countmax="100" chance="60000" />
        <item name="gold coin" countmax="99" chance="60000" />
        <item name="small emerald" chance="10000" />
        <item name="talon" chance="3571" />
        <item name="platinum coin" countmax="6" chance="100000" />
        <item name="might ring" chance="170" />
        <item name="stealth ring" chance="1333" />
        <item name="platinum amulet" chance="813" />
        <item name="orb" chance="2854" />
        <item name="gold ring" chance="1010" />
        <item name="ring of healing" chance="473" />
        <item name="double axe" chance="14285" />
        <item name="giant sword" chance="2000" />
        <item name="ice rapier" chance="666" />
        <item name="golden sickle" chance="1428" />
        <item name="fire axe" chance="3703" />
        <item name="devil helmet" chance="1204" />
        <item name="golden legs" chance="413" />
        <item name="magic plate armor" chance="70" />
        <item name="mastermind shield" chance="389" />
        <item name="demon shield" chance="649" />
        <item name="fire mushroom" countmax="6" chance="20740" />
        <item name="demon horn" chance="467" />
        <item name="assassin star" countmax="5" chance="5263" />
        <item name="demonrage sword" chance="80" />
        <item id="7393" chance="100" /><!-- demon trophy -->
        <item name="great mana potion" countmax="3" chance="14285" />
        <item name="ultimate health potion" countmax="3" chance="20000" />
    </loot>
</monster>
 
Back
Top