Ir para conteúdo

Exevo Master Frigo.


Skaziot

Posts Recomendados

Eae xtibianos e xtibianas!!

 

Spell criada 100% por mim "SkaziOT".

 

Screenshot:

screenshot004q.png

 

 

Va na pasta do seu ot data/spells/scripts.

Crie um arquivo .lua chamado "ice storm" e cole isso dentro:

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 41)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 41)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 41)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 41)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 43)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 42)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 43)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 42)

setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, 43)

setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, 42)

setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -0.8, 0, -1.3, 0)

 

 

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, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},

{0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0},

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

{0, 0, 0, 0, 0, 3, 0, 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)

local area7 = createCombatArea(arr7)

local area8 = createCombatArea(arr8)

local area9 = createCombatArea(arr9)

local area10 = createCombatArea(arr10)

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)

 

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

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var}

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

addEvent(onCastSpell3, 300, parameters)

addEvent(onCastSpell4, 400, parameters)

addEvent(onCastSpell5, 500, parameters)

addEvent(onCastSpell6, 600, parameters)

addEvent(onCastSpell7, 700, parameters)

addEvent(onCastSpell8, 800, parameters)

addEvent(onCastSpell9, 900, parameters)

addEvent(onCastSpell10, 1000, parameters)

 

return TRUE

end

 

Depois disso va na pasta do seu ot data/spells/spells.xml

E cole dentro isso:

 

<instant name="ice storm" words="Exevo master frigo" lvl="100" mana="1500" exhaustion="2000" needlearn="0" event="script" value="ice storm.lua">

<vocation name="Druid"/>

<vocation name="Sorcerer" />

</instant>

 

 

Vlw

Editado por SkaziOT
Link para o comentário
Compartilhar em outros sites

É uma magia interessante, gostei de como você se utilizou da construção de efeitos e áreas. Mas, se você conseguir aprender a sintaxe do comando For, pode reduzir o tamanho do código em 50%.

 

Obrigado por compartilhar conteúdo com a comunidade.

 

Abraços.

Editado por Oneshot
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...