Recently i upgrade my server to 8.54, but now i have a problem with one spell, this spell doesn´t spend mana and neither has exhausted, and I don´t know why.
In Spells.xml
instant name="Frost Strike" words="exori frost" lvl="0" maglv="1" mana="100" aggressive="1" blockwalls="1" exhaustion="1500" prem="0" enabled="1" script="exori frost.lua">
exori frost.lua
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 1)
local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(condition, -0.8, 0, -0.8, 0)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
doCombat(cid, combat, var)
end
Sorry if my English is bad, I´m Spanish
Thank you in advance
In Spells.xml
instant name="Frost Strike" words="exori frost" lvl="0" maglv="1" mana="100" aggressive="1" blockwalls="1" exhaustion="1500" prem="0" enabled="1" script="exori frost.lua">
exori frost.lua
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 1)
local arr = {
{1, 1, 1},
{1, 2, 1},
{1, 1, 1}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 10000)
setConditionFormula(condition, -0.8, 0, -0.8, 0)
setCombatCondition(combat, condition)
function onCastSpell(cid, var)
doCombat(cid, combat, var)
end
Sorry if my English is bad, I´m Spanish
Thank you in advance