Ir para conteúdo

Como Criar Magia


LiloBambam

Posts Recomendados

Bom começando vou falar que meu ot server é [8.54]alissow 3.7 patch 1...

Bom...Vou ensinar como fazer uma magia!

 

-1ºcoisa e ir em data/spell/script,copie um documento e cole no mesmo lugar,entao renomeie para ultimate divine attack entao cole isso :

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.3, 0)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.3, 0)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.3, 0)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.3, 0)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.3, 0)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.3, 0)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.3, 0)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.3, 0)

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.3, 0)

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_HOLYAREA)

setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -2.8, 0, -2.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, 1, 3, 1, 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, 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 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},

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

}

 

arr10 = {

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

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

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

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

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

{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},

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

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

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

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

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

}

 

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

 

 

-2ºva em data/spells/spells.xml,abra o e cole isso:

 

<instant name="ultimate divine attack" words="exevo mas divine" lvl="45" mana="90" exhaustion="1500" script="ultimate divine attack.lua">

<vocation name="Paladin" />

<vocation name="Royal Paladin" />

</instant>

 

Ps: a Magia e de paladin c quiser pode mudar a vocation e tbm

 

se quiser pode mudar o lvl a mana e o exhaustion...eu gosto assim ^^

 

 

Se quiserem podem me add no msn: bambam_d_h@hotmail.com!

 

vlw

 

Alissow so seu fãaaaaaaaa me add :)

Link para o comentário
Compartilhar em outros sites

  • 1 year later...
  • 3 months later...
  • 3 weeks later...
×
×
  • Criar Novo...