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

Exhaustion on healing and offensive spells

Ravas

New Member
Joined
May 15, 2008
Messages
30
Reaction score
0
Hello!

I'm using TFS 0.4 and I've noticed that exhaustion for offensive and healing spells is the same type of exhaustion. I mean that I can't use for example "exura" after I cast "exori vis". Any ideas how can I set to so healing and offensive spells does not influence on each others exhaustion?
 
Um... for what version of tibia? Anything past what... 8.0 should have 2 separate exhausts for offensive and defensive spells unless you are using a modified 0.4 and someone changed it o_O
 
I honestly have no idea how it could not be working, in fact its actually really annoying just to remove it intentionally lol. Can you post your spells.xml and an example of your exura and exori vis lua script?
 
spells.xml(partialy; its too long to post everything):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<spells>
    <!-- INFO
        Function: "icon" and "groups"
        Are not supported for it not compiled on spells.cpp
     -->

    <!-- Attack Runes -->
    <rune name="Poison Field" id="2285" allowfaruse="1" charges="3" lvl="14" maglv="0" exhaustion="2000" groups="1,2000" icon="26" blocktype="solid" event="script" value="attack/poison field.lua"/>
    <rune name="Poison Bomb" id="2286" allowfaruse="1" charges="2" lvl="25" maglv="3" exhaustion="2000" groups="1,2000" icon="91" blocktype="solid" event="script" value="attack/poison bomb.lua"/>
    <rune name="Poison Wall" id="2289" allowfaruse="1" charges="3" lvl="29" maglv="5" exhaustion="2000" groups="1,2000" icon="26" blocktype="solid" event="script" value="attack/poison wall.lua"/>
    <rune name="Fire Field" id="2301" allowfaruse="1" charges="3" lvl="15" maglv="1" exhaustion="2000" groups="1,2000" icon="25" blocktype="solid" event="script" value="attack/fire field.lua"/>
    <rune name="Firebomb" id="2305" allowfaruse="1" charges="2" lvl="27" maglv="5" exhaustion="2000" groups="1,2000" icon="17" blocktype="solid" event="script" value="attack/fire bomb.lua"/>
 ...

    <rune name="Holy Missile" id="2295" allowfaruse="1" charges="5" lvl="27" maglv="3" exhaustion="2000" groups="1,2000" icon="130" needtarget="1" blocktype="solid" event="script" value="attack/holy missile.lua">
        <vocation name="Paladin"/>
        <vocation id="7" showInDescription="0"/>
    </rune>

    <!-- Healing Runes -->
    <rune name="Antidote Rune" id="2266" allowfaruse="1" charges="1" lvl="15" maglv="0" exhaustion="2000" groups="2,1000" icon="31" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/antidote rune.lua"/>
    <rune name="Intense Healing Rune" id="2265" allowfaruse="1" charges="1" lvl="15" maglv="1" exhaustion="2000" groups="2,1000" icon="3" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/intense healing rune.lua"/>
    <rune name="Ultimate Healing Rune" id="2273" allowfaruse="1" charges="1" lvl="24" maglv="3" exhaustion="2000" groups="2,1000" icon="5" aggressive="0" needtarget="1" blocktype="solid" event="script" value="healing/ultimate healing rune.lua"/>

    <!-- Summon Runes -->
    <rune name="Convince Creature" id="2290" allowfaruse="1" charges="1" lvl="16" maglv="5" exhaustion="2000" groups="3,2000" icon="12" needtarget="1" blocktype="solid" event="function" value="convince"/>
    <rune name="Animate Dead" id="2316" allowfaruse="1" charges="1" lvl="27" maglv="3" exhaustion="2000" groups="3,2000" icon="83" blocktype="solid" event="script" value="support/animate dead rune.lua"/>

    <!-- Support Runes -->
    <rune name="Desintegrate" id="2310" allowfaruse="0" charges="3" lvl="21" maglv="3" exhaustion="2000" groups="3,2000" icon="78" range="1" event="script" value="support/desintegrate rune.lua"/>
    <rune name="Destroy Field" id="2261" allowfaruse="1" charges="3" lvl="17" maglv="3" exhaustion="2000" groups="3,2000" icon="30" aggressive="0" range="5" event="script" value="support/destroy field rune.lua"/>
    <rune name="Chameleon" id="2291" allowfaruse="1" charges="1" lvl="27" maglv="3" exhaustion="2000" groups="3,2000" icon="14" aggressive="0" selftarget="1" blocktype="solid" event="function" value="chameleon"/>
    <rune name="Magic Wall" id="2293" allowfaruse="1" charges="3" lvl="32" maglv="9" exhaustion="2000" groups="3,2000" icon="86" blocktype="all" event="script" value="support/magic wall rune.lua"/>
    <rune name="Wild Growth" id="2269" allowfaruse="1" charges="2" lvl="27" maglv="8" exhaustion="2000" groups="3,2000" icon="94" blocktype="all" event="script" value="support/wild growth rune.lua">
        <vocation name="Druid"/>
        <vocation id="6" showInDescription="0"/>
    </rune>
    <rune name="Paralyze" id="2278" allowfaruse="1" charges="1" lvl="54" maglv="18" exhaustion="2000" groups="1,2000" icon="54" mana="1400" needtarget="1" blocktype="solid" event="script" value="support/paralyze rune.lua">
        <vocation name="Druid"/>
        <vocation id="6" showInDescription="0"/>
    </rune>

    <!-- Attack Spells -->
    <instant name="Death Strike" words="exori mort" lvl="16" mana="20" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,2000" icon="87" needlearn="0" event="script" value="attack/death strike.lua">
        <vocation id="1;5"/>
    </instant>
    <instant name="Flame Strike" words="exori flam" lvl="14" mana="20" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,2000" icon="89" needlearn="0" event="script" value="attack/flame strike.lua">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </instant>
    <instant name="Strong Flame Strike" words="exori gran flam" lvl="70" mana="60" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,2000" icon="150" needlearn="0" event="script" value="attack/strong flame strike.lua">
        <vocation id="1;5"/>
    </instant>
    <instant name="Ultimate Flame Strike" words="exori max flam" lvl="90" mana="100" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="4,2000" icon="154" needlearn="0" event="script" value="attack/ultimate flame strike.lua">
        <vocation id="1;5"/>
    </instant>
    <instant name="Energy Strike" words="exori vis" lvl="12" mana="20" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,2000" icon="88" needlearn="0" event="script" value="attack/energy strike.lua">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </instant>
    <instant name="Strong Energy Strike" words="exori gran vis" lvl="80" mana="60" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="1,2000" icon="151" needlearn="0" event="script" value="attack/strong energy strike.lua">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
    </instant>
    <instant name="Ultimate Energy Strike" words="exori max vis" lvl="100" mana="100" prem="1" range="3" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" groups="4,2000" icon="155" needlearn="0" event="script" value="attack/ultimate energy strike.lua">
        <vocation id="1;5"/>
    </instant>
    <instant name="Whirlwind Throw" words="exori hur" lvl="28" mana="40" prem="1" range="5" needtarget="1" blockwalls="1" needweapon="1" exhaustion="2000" groups="1,2000" icon="107" needlearn="0" event="script" value="attack/whirlwind throw.lua">
        <vocation id="4;8"/>
    </instant>
    <instant name="Fire Wave" words="exevo flam hur" lvl="18" mana="25" direction="1" exhaustion="2000" groups="1,2000" icon="19" needlearn="0" event="script" value="attack/fire wave.lua">
        <vocation id="1;5"/>
    </instant>
    <instant name="Ethereal Spear" words="exori con" lvl="23" mana="25" prem="1" range="7" needtarget="1" exhaustion="2000" groups="1,2000" icon="111" blockwalls="1" needlearn="0" event="script" value="attack/ethereal spear.lua">
        <vocation id="3;7"/>
    </instant>
    <instant name="Strong Ethereal Spear" words="exori gran con" lvl="90" mana="55" prem="1" range="7" needtarget="1" exhaustion="2000" groups="1,2000" icon="57" blockwalls="1" needlearn="0" event="script" value="attack/strong ethereal spear.lua">
        <vocation id="3;7"/>
    </instant>
    <instant name="Energy Beam" words="exevo vis lux" lvl="23" mana="40" direction="1" exhaustion="2000" groups="1,2000" icon="22" needlearn="0" event="script" value="attack/energy beam.lua">
        <vocation id="1;5"/>
    </instant>
    <instant name="Great Energy Beam" words="exevo gran vis lux" lvl="29" mana="110" direction="1" exhaustion="2000" groups="1,2000" icon="23" needlearn="0" event="script" value="attack/great energy beam.lua">
        <vocation id="1;5"/>
    </instant>
    <instant name="Groundshaker" words="exori mas" lvl="33" mana="160" prem="1" needweapon="1" exhaustion="2000" groups="1,2000" icon="106" needlearn="0" event="script" value="attack/groundshaker.lua">
        <vocation id="4;8"/>
    </instant>
    <instant name="Berserk" words="exori" lvl="35" mana="115" prem="1" needweapon="1" exhaustion="2000" groups="1,2000" icon="80" needlearn="0" event="script" value="attack/berserk.lua">
        <vocation id="4;8"/>
    </instant>
    <instant name="Annihilation" words="exori gran ico" lvl="110" mana="300" prem="1" needweapon="1" exhaustion="2000" groups="4,2000" icon="62" needlearn="0" needtarget="1" event="script" value="attack/annihilation.lua">
        <vocation id="4;8"/>
    </instant>
.....
<!-- Healing Spells -->
    <instant name="Light Healing" words="exura" lvl="9" mana="20" aggressive="0" selftarget="1" exhaustion="2000" groups="2,2000" icon="1" needlearn="0" event="script" value="healing/light healing.lua">
        <vocation id="1;5"/>
        <vocation id="2;6"/>
        <vocation id="3;7"/>
    </instant>

exura.lua:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.5, 2)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end

exori vis.lua:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1, -10, -1, -20, 5, 5, 1.4, 2.1)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Yea that is weird since exura is not set to aggressive and exori vis is, and they are also in different groups. I haven't messed with the newer tibia versions that have groups but maybe @Flatlander knows why this is, hes always using the latest client version.
 
Back
Top Bottom