da REP+ ae se ajudarem,pois se te ajudei me ajuda também =)
1º-Crie um arquivo .lua na pasta spells/scripts é obvio chamado exori gran flux e coloque isso dentro...
local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat9, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat10, COMBAT_PARAM_BLOCKARMOR, TRUE)
setCombatParam(combat10, COMBAT_PARAM_DISTANCEEFFECT, 36)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
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
local function onCastSpell6(parameters)
doCombat(parameters.cid, parameters.combat6, parameters.var)
end
local function onCastSpell7(parameters)
doCombat(parameters.cid, parameters.combat7, parameters.var)
end
local function onCastSpell8(parameters)
doCombat(parameters.cid, parameters.combat8, parameters.var)
end
local function onCastSpell9(parameters)
doCombat(parameters.cid, parameters.combat9, parameters.var)
end
local function onCastSpell10(parameters)
doCombat(parameters.cid, parameters.combat10, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10 }
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 500, parameters)
addEvent(onCastSpell3, 1000, parameters)
addEvent(onCastSpell4, 1500, parameters)
addEvent(onCastSpell5, 2000, parameters)
addEvent(onCastSpell6, 2500, parameters)
addEvent(onCastSpell7, 3000, parameters)
addEvent(onCastSpell8, 3500, parameters)
addEvent(onCastSpell9, 4000, parameters)
addEvent(onCastSpell10, 4500, parameters)
return TRUE
end
2º-coloque isso em spells.xml
<instant name="Exori Gran Flux" words="exori gran flux" lvl="250" mana="500" prem="1" range="7" needtarget="1" exhaustion="3000" needlearn="0" reagentId="7368" reagentTransform="0" blockwalls="1" script="exori gran flux.lua">
<vocation name="Royal Paladin" />
<vocation name="Slayer Paladin" />
</instant>
Legenda:
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
é o efeito que vai dar no player atacado (tá gelo você pode mudar exemplo explosao azul nº 30 ficaria assim:
setCombatParam(combat1, COMBAT_PARAM_TYPE, 30)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 36)
isso é o efeito do efeito à distância (exemplo;uma flecha voando)ai é o do exori frigo
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
isso é a força do ataque e o Magic Level ganho por cada pronuncia
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -15, -15, -10, 15)
Vermelho:a força do ataque...se for almentar teste com um char que tenho o level requirido nao com o god
Roxo:o Magic Level ganho (não almente pois é paladin)--EM VÁRIAS MAGIAS É FEITA DESSA FORMA,ENTÃO SE FOR FAZER UMA MAGIA PARA TODAS VOCAÇÕES NAO ALMENTE MUITO O MAGIC LEVEL--
By:Vinicius
ae falera da REP++ ae porque é uma magia boa essa ae =)