Ir para conteúdo

Omega San


Tapetao

Posts Recomendados

Aew Gente, tava sem faze nada então decidi cria uma spell só pra brinca. :blush:

 

Vá na pasta do seu ot, data -> spells -> scripts

Copie e cole qualker arquivo e dps renomei-o para omega san

 

dps disso, abre ele e apague td oq tiver dentro e coloke

 

 

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC , -3.0, -1, -2.5, -10)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC , -2.7, -2, -2.3, -10)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC , -2.4, -3, -2.1, -10)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC , -2.1, -4, -1.9, -10)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC , -1.6, -5, -1.7, -10)

 

arr1 = {

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

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

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

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

}

 

arr4 = {

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

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

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

}

 

arr5 = {

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

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

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

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

{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)

 

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat4, area4)

setCombatArea(combat5, area5)

 

 

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

 

 

 

function onCastSpell(cid, var)

local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5 }

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 300, parameters)

addEvent(onCastSpell3, 500, parameters)

addEvent(onCastSpell4, 700, parameters)

addEvent(onCastSpell5, 900, parameters)

 

 

end

 

 

Salve e dps fexe o arquivo, agora volte para a pasta spells e vai em spells.xml, e coloque:

 

<instant name="Omega San" words="omega san" aggressive="1" direction="0" lvl="40" maglv="70" mana="1400" soul="0" exhaustion="1" prem="0" enabled="1" script="omega san.lua"><vocation id="3"/><vocation id="7"/></instant>

Salve e fexe

 

 

Pronto Man, ja ta feita sua spell :party: , ela foi feita para pally e royal pally

 

Comentem Plx ! Flws :thumbsupsmiley2:

 

--Tapetao--

Link para o comentário
Compartilhar em outros sites

Fiquei curioso.

 

Poste uma SS!

 

;D

 

nussa, malz ae man, eskeci completamente =p

 

a magia eh dividida em 5 partes, + eu vo bota as SS

 

1ª Parte

 

2ª Parte

 

3ª Parte

 

4ª Parte

 

5ª Parte

 

As SS nao ficaram mto boas, mas da pra te uma ideia d como eh a magia.

 

Flws !

 

--Tapetao--

Link para o comentário
Compartilhar em outros sites

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