TibiaGameHost
Hello!
I own the system Cast system, this function will be putting it down, it Prevents the player from using any kind of healing magic, magic can be used. But does not work
Script CastSystem
Script ultimate healing.lua (exura vita).
i add in all spells
For the player who is not seeing another drop spells.
I need someone for me fix the script castsystem to let loose the magic cure. If I delete this script the cast works, however, the player can attack the other with spells.
- - - Updated - - -
bump
Script CastSystem
Code:
function onStatsChange(cid, attacker, type, combat, value)
if not isCreature(cid) then
return true
end
if getPlayerStorageValue(cid, 12269) >= 1 and isMonster(attacker) or isPlayer(attacker) then
return false
end
return true
end
Script ultimate healing.lua (exura vita).
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)
function onGetFormulaValues(cid, level, maglevel)
local min = ((level/5)+(maglevel*6.79)+42)
local max = ((level/5)+(maglevel*12.89)+90)
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 12269) >= 1 then
return false
end
return doCombat(cid, combat, var)
end
i add in all spells
Code:
if getPlayerStorageValue(cid, 12269) >= 1 then
return false
end
I need someone for me fix the script castsystem to let loose the magic cure. If I delete this script the cast works, however, the player can attack the other with spells.
- - - Updated - - -
bump