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

Healing spells are not removing the paralyze

raphastel

New Member
Joined
Nov 27, 2014
Messages
3
Reaction score
0
Hi guys, I am having trouble with my otserver 10.10, when I get paralyzed from player or monster and I use any healer spell (like exura, exura vita) it doesn't remove the paralyze. The only way to remove the paralyze is use any haste spell (like utani hur, utani gran hur). I've tried to replace the spell.xml and ultimate healing.lua and didn't have sucess. Can anyone help me please?
--------------------------------------------------------------------------
ultimate healing.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, 3, 3, 7, 9)

function onCastSpell(cid, var)
return doCombat

(cid, combat, var)
end
----------------------------------------------------------------------------
spell.xml
Code:
</instant>
    <instant name="Ultimate Healing" words="exura vita" lvl="30" mana="160" aggressive="0" selftarget="1" exhaustion="1300" groups="2,1000" icon="3" needlearn="0" event="script" value="healing/ultimate healing.lua">
        <vocation id="1"/>
        <vocation id="2"/>
        <vocation id="5"/>
        <vocation id="6"/>
    </instant>

If I stop and use Exure for example, it's remove the paralyze, but if I am walking it doesn't remove... anyone know why?
 
Last edited by a moderator:
That might be implemented in the Tibia core, from my experience this behavior is intended to increase the difficulty of escaping paralysis. If not, it would require some in depth analysis of the source code.

You could download the source and study it, but it might require some time.

Ignazio
 
Try with this:
Folder: Data/Spells/Healing

Example: Light Healing
PHP:
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

If it doenst add this on healing spells.
PHP:
function onCastSpell(cid, var)
if getCreatureCondition(cid,CONDITION_PARALYZE) then
doRemoveCondition(cid, CONDITION_PARALYZE)
end
return doCombat(cid, combat, var)
end
 
thank you so much dude, you helped me alot!!! TY TY

this is my light healing.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)
if getCreatureCondition(cid,CONDITION_PARALYZE) then
doRemoveCondition(cid, CONDITION_PARALYZE)
end
return doCombat(cid, combat, var)
end
 
Back
Top