ajuda aqui
na verdade o meu pedido é que alguem conserte o script do exori flux pra mim
o meu ot é 8.5
ela ta sem exaste e sem gasta mana ajuda!!!!
script
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.4, -40, -1.0, 0)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 0.4, -40, -1.0, 0)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0.4, -40, -2.0, 0)
local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.5, -40, -1.0, 0)
local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -0.4, -50, -2.0, 0)
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat1, parameters.var)
end
local function onCastSpell2(parameters)
doCombat(parameters.cid, parameters.combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, parameters.combat3, parameters.var)
end
local function onCastSpell4(parameters)
doCombat(parameters.cid, parameters.combat4, parameters.var)
end
local function onCastSpell5(parameters)
doCombat(parameters.cid, parameters.combat5, parameters.var)
end
function onCastSpell(cid, var)
doSendAnimatedText(getPlayerPosition(cid), "Dead!", TEXTCOLOR_BLUE)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 500, parameters)
addEvent(onCastSpell3, 1000, parameters)
addEvent(onCastSpell4, 1500, parameters)
addEvent(onCastSpell5, 2000, parameters)
end
Tag do spells.xml
<instant name="Exori Flux" words="exori flux" lvl="70" mana="400" prem="0" range="7" needtarget="1" exhaustion="2000" blockwalls="1" needlearn="0" script="exori flux.lua">
<vocation name="Royal Paladin"/>
<vocation name="Paladin"/>
</instant>