Ir para conteúdo

[Spell] Life Fusion


alldakie

Posts Recomendados

Olá Xtibianos,

Hoje vim trazer uma magia...

 

Como deve ficar após a configuração...

exorigrantera.jpg

 

Em (.../data/spells/scripts) você cria um arquivo chamado de "Life Fusion.lua", e adiciona o seguinte código:

local combat1 = createCombatObject() 
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 54) 
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.5, -30, -0.6, 0) 
local combat2 = createCombatObject() 
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 54) 
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -0.5, -30, -0.6, 0) 
local combat3 = createCombatObject() 
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 54) 
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0.5, -30, -0.6, 0) 
local combat4 = createCombatObject() 
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 50) 
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.5, -30, -0.6, 0) 
setCombatParam(combat4, COMBAT_PARAM_CREATEITEM, 1499) 
local combat5 = createCombatObject() 
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 50) 
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -0.5, -30, -0.6, 0) 
setCombatParam(combat5, COMBAT_PARAM_CREATEITEM, 1499) 
local combat6 = createCombatObject() 
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) 
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 50) 
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -0.5, -30, -0.6, 0) 
setCombatParam(combat6, COMBAT_PARAM_CREATEITEM, 1499) 
local condition = createConditionObject(CONDITION_POISON) 
setConditionParam(condition, CONDITION_PARAM_DELAYED, TRUE) 
setConditionParam(condition, CONDITION_PARAM_MINVALUE, 200) 
setConditionParam(condition, CONDITION_PARAM_MAXVALUE, 350) 
setConditionParam(condition, CONDITION_PARAM_STARTVALUE, 10) 
setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 1000) 
setConditionParam(condition, CONDITION_PARAM_FORCEUPDATE, TRUE) 
setCombatCondition(combat1, condition) 
setCombatCondition(combat2, condition) 
setCombatCondition(combat3, condition) 
arr1 = { 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, 
{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, 
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0}, 
{0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0}, 
{0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0}, 
{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, 
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} 
} 
arr2 = { 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, 
{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, 
{0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0}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0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, 
{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, 
{0, 0, 0, 1, 0, 2, 0, 1, 0, 0, 0}, 
{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, 
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} 
} 
arr6 = { 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, 
{0, 0, 0, 0, 1, 3, 1, 0, 0, 0, 0}, 
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} 
} 
local area1 = createCombatArea(arr1) 
local area2 = createCombatArea(arr2) 
local area3 = createCombatArea(arr3) 
local area4 = createCombatArea(arr4) 
local area5 = createCombatArea(arr5) 
local area6 = createCombatArea(arr6) 
setCombatArea(combat1, area1) 
setCombatArea(combat2, area2) 
setCombatArea(combat3, area3) 
setCombatArea(combat4, area4) 
setCombatArea(combat5, area5) 
setCombatArea(combat6, area6) 
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  
function onCastSpell(cid, var)  
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6 }  
addEvent(onCastSpell1, 300, parameters)  
addEvent(onCastSpell2, 600, parameters)  
addEvent(onCastSpell3, 900, parameters)  
addEvent(onCastSpell4, 600, parameters)  
addEvent(onCastSpell5, 900, parameters) 
addEvent(onCastSpell6, 1200, parameters) 
end 

 

Depois adicione em (.../data/spells/spells.xml) o seguinte codigo:

<instant name="Life Fusion" words="exori gran tera" lvl="55" mana="250" prem="0" range="5" needtarget="1" blockwalls="0" exhaustion="2000" needlearn="0" script="life fusion.lua">

Creditos: orzeleagle

 

 

Gostou, +REP

Link para o comentário
Compartilhar em outros sites

  • 2 months later...
×
×
  • Criar Novo...