Ir para conteúdo

Power Of Ice


Rennan159

Posts Recomendados

Eae Pessoas.

 

 

Bom hoje eu tava aqui vendo os topico no xtibia e vi muitas magias legais, e entao pensei em cria uma legal tambem. Claro ela não é lá aquelas coisas, mais ela chega ate a ser legal xD

 

Bom Vamos la.

 

Primeiramente vamos em Data/Spells/Attack Copiamos qualquer arquivo.lua e apagamos tudo oque tem la dentro e adicionamos o seguinte script:

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 43)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 43)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 43)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 43)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 43)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 41)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 41)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, 41)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, 41)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, 41)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

local combat11 = createCombatObject()
setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat11, COMBAT_PARAM_EFFECT, 52)
setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -13, 1.5, -13, 10)

arr1 = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 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, 2, 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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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},
}

arr10 = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 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, 2, 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, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
}

arr11 = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 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)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
local area11 = createCombatArea(arr11)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)
setCombatArea(combat11, area11)

local function onCastSpell1(parameters)
doCombat(parameters.cid, combat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, combat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, combat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, combat6, parameters.var)
end
local function onCastSpell7(parameters)
doCombat(parameters.cid, combat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, combat8, parameters.var)
end

local function onCastSpell9(parameters)
doCombat(parameters.cid, combat9, parameters.var)
end

local function onCastSpell10(parameters)
doCombat(parameters.cid, combat10, parameters.var)
end

local function onCastSpell11(parameters)
doCombat(parameters.cid, combat11, parameters.var)
end

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 500, parameters)
addEvent(onCastSpell2, 900, parameters)
addEvent(onCastSpell3, 1200, parameters)
addEvent(onCastSpell4, 1500, parameters)
addEvent(onCastSpell5, 1800, parameters)
addEvent(onCastSpell6, 2100, parameters)
addEvent(onCastSpell7, 2400, parameters)
addEvent(onCastSpell8, 2700, parameters)
addEvent(onCastSpell9, 3000, parameters)
addEvent(onCastSpell10, 3300, parameters)
addEvent(onCastSpell11, 3600, parameters)

return TRUE
end

 

Salve e feche. Não se esqueça de renomear o arquivo para "Power Of Ice"

 

Feito isso vamos em Data/Spells/Spells.XML e Adicionamos a Seguinte Tag:

 

<instant name="Power Of Ice" words="Power Of Ice" lvl="900" mana="1900" prem="1" needlearn="1" blockwalls="1" exhaustion="2000" event="script" value="attack/Power Of Ice.lua">
<vocation name="Druid"/>
<vocation name="Elder Druid"/>
</instant>

 

Salve e feche :)

 

Abaixo vao algumas ScreenShots pois nao consegui filma a magia (como é de lei) xP:

91442163.jpg

98530953.jpg

96964938.jpg

17605358.jpg

37891706.jpg

 

Espero que vcs tenham gostado e PorFavor comente abaixo oque acharam Pois suas criticas e elogios é oque me ajuda a melhorar cada vez mais :)

 

 

Créditos - CurseOfNightmare

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
×
×
  • Criar Novo...