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

Solved monster not sending blue shimmer effect when they becoes invisible or meanwhike they are invisible

johnsamir

Advanced OT User
Joined
Oct 13, 2009
Messages
994
Solutions
6
Reaction score
168
Location
Nowhere
Hi i use tfs 1.4-1.5 protocol 8.6
i noticed that monsters like stalkersd oes not send blueshimmer effect when they becomes invisible or meanwhile they are invisible
when monsters becomes invisible uses too blueshimmer effect aalso meanwhile they are invisible they use that effect sometimes, that's makes possible for player to detect where the invisible monster is
this is not working in my server don't know the reason
i have an stalker here as example it has blueshimmer effect declared but the monster is becoming invisible without using the effect please help
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Stalker" nameDescription="a stalker" race="blood" experience="90" speed="260" raceId="72">
    <health now="120" max="120" />
    <look type="128" head="97" body="116" legs="95" feet="95" corpse="6080" />
    <targetchange interval="4000" chance="10" />
    <targetstrategy nearest="70" weakest="10" mostdamage="10" random="10" />
<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" min="0" max="-70" />
        <attack name="lifedrain" interval="1000" chance="15" range="1" min="-20" max="-30">
            <attribute key="areaEffect" value="redshimmer" />
        </attack>
    </attacks>
    <defenses armor="14" defense="14">
        <defense name="invisible" interval="2000" chance="30" duration="15000">
            <attribute key="areaEffect" value="blueshimmer" />
        </defense>
    </defenses>
    <elements>
        <element deathPercent="5" />
        <element physicalPercent="-20" />
        <element holyPercent="-5" />
    </elements>
    <immunities>
        <immunity invisible="1" />
        <immunity lifedrain="1" />
    </immunities>
    <loot>
        <item id="2148" name="gold coin" chance="13123" countmax="8" />
        <item id="2410" name="throwing knife" chance="11116" countmax="2" />
        <item id="2260" name="blank rune" chance="8811" />
        <item id="2511" name="brass shield" chance="5617" />
        <item id="2478" name="brass legs" chance="3531" />
        <item id="12430" name="miraculum" chance="1543" />
        <item id="2425" name="obsidian lance" chance="1198" />
        <item id="2412" name="katana" chance="519" />
    </loot>
</monster>
Post automatically merged:

solved with a workaround i created an invisible spell for monsters
Lua:
    <instant name="invisible_stalker" words="###80" direction="1" aggressive="0" blockwalls="1" needtarget="0" needlearn="1" script="monster/invisible_stalker.lua" />
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
--combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_INVISIBLE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 200000)
addCombatCondition(combat, condition)

function onCastSpell(creature, variant)
    return combat:execute(creature, variant)
end


add this in all monsters that becomes invisible
Code:
<defense name="invisible_stalker" interval="2000" chance="30" duration="15000">
            </defense>
    </defenses>
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Lizard Snakecharmer" nameDescription="a lizard snakecharmer" race="blood" experience="210" speed="184" raceId="115">
    <health now="325" max="325" />
    <look type="115" corpse="6041" />
    <targetchange interval="4000" chance="10" />
    <targetstrategy nearest="70" weakest="10" mostdamage="10" random="10" />
<flags>
        <flag summonable="0" />
        <flag attackable="1" />
        <flag hostile="1" />
        <flag illusionable="1" />
        <flag convinceable="0" />
        <flag pushable="1" />
        <flag canpushitems="1" />
        <flag canpushcreatures="0" />
        <flag targetdistance="4" />
        <flag staticattack="80" />
        <flag runonhealth="0" />
        <flag canwalkonenergy="0" />
        <flag canwalkonfire="0" />
    </flags>
    <attacks>
        <attack name="melee" interval="2000" min="0" max="-30" />
        <attack name="poisoncondition" interval="2000" chance="15" range="7" min="-100" max="-200">
            <attribute key="shootEffect" value="poison" />
        </attack>
        <attack name="earth" interval="2000" chance="15" range="7" radius="1" target="1" min="-50" max="-110">
            <attribute key="shootEffect" value="poison" />
            <attribute key="areaEffect" value="greenbubble" />
        </attack>
    </attacks>
    <defenses armor="22" defense="22">
        <defense name="healing" interval="2000" chance="50" min="50" max="100">
            <attribute key="areaEffect" value="blueshimmer" />
        </defense>
        <defense name="invisible" interval="2000" chance="20" duration="3000">
            <attribute key="areaEffect" value="blueshimmer" />
        </defense>
        <defense name="invisible_stalker" interval="2000" chance="30" duration="15000">
            </defense>
    </defenses>
    <elements>
        <element energyPercent="20" />
        <element icePercent="20" />
        <element physicalPercent="-10" />
        <element firePercent="-10" />
    </elements>
    <immunities>
        <immunity invisible="1" />
        <immunity earth="1" />
    </immunities>
    <summons maxSummons="6">
        <summon name="cobra" interval="2000" chance="20" />
    </summons>
    <voices interval="5000" chance="10">
        <voice sentence="I ssssmell warm blood!" />
        <voice sentence="Shhhhhhhh" />
    </voices>
    <loot>
        <item name="gold coin" countmax="55" chance="83740" />
        <item id="3077" chance="45000" /><!-- dead snake -->
        <item name="cape" chance="8640" />
        <item name="life crystal" chance="1430" />
        <item name="lizard leather" chance="1320" />
        <item name="lizard scale" chance="1000" />
        <item name="terra rod" chance="980" />
        <item name="mana potion" chance="700" />
        <item name="small amethyst" chance="370" />
        <item name="life ring" chance="190" />
        <item name="snakebite rod" chance="120" />
        <item name="charmer's tiara" chance="100" />
        <item name="yellow gem" chance="30" />
    </loot>
</monster>
Code:
<?xml version="1.0" encoding="UTF-8"?>
<monster name="Stalker" nameDescription="a stalker" race="blood" experience="90" speed="260" raceId="72">
    <health now="120" max="120" />
    <look type="128" head="97" body="116" legs="95" feet="95" corpse="6080" />
    <targetchange interval="4000" chance="10" />
    <targetstrategy nearest="70" weakest="10" mostdamage="10" random="10" />
<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" min="0" max="-70" />
        <attack name="lifedrain" interval="1000" chance="15" range="1" min="-20" max="-30">
            <attribute key="areaEffect" value="redshimmer" />
        </attack>
    </attacks>
    <defenses armor="14" defense="14">
        <defense name="invisible" interval="2000" chance="30" duration="15000">
            <attribute key="areaEffect" value="blueshimmer" />
        </defense>
        <defense name="invisible_stalker" interval="2000" chance="30" duration="15000">
            </defense>
    <!-- <defense name="invisible_stalker" interval="2000" chance="30" duration="15000"> -->
            <!-- </defense> -->
    </defenses>
    <elements>
        <element deathPercent="5" />
        <element physicalPercent="-20" />
        <element holyPercent="-5" />
    </elements>
    <immunities>
        <immunity invisible="1" />
        <immunity lifedrain="1" />
    </immunities>
    <loot>
        <item id="2148" name="gold coin" chance="13123" countmax="8" />
        <item id="2410" name="throwing knife" chance="11116" countmax="2" />
        <item id="2260" name="blank rune" chance="8811" />
        <item id="2511" name="brass shield" chance="5617" />
        <item id="2478" name="brass legs" chance="3531" />
        <item id="12430" name="miraculum" chance="1543" />
        <item id="2425" name="obsidian lance" chance="1198" />
        <item id="2412" name="katana" chance="519" />
    </loot>
</monster>
 
Last edited:
If I'm not mistaken, the blueshimer only appears if the creature is healing itself while it is invisible
It does never appears that why I had to do that
edit manage to solve this via souce and now it works as intenteded i removed things that were not supposed to be removed
 
Last edited:
Back
Top