Ir para conteúdo

Exori Stinger (by Mimow)


Mimow

Posts Recomendados

Exori Stinger (By Mimow)

Para Knights

 

Na pasta (data/spells/scripts) copie e cole qualquer magia que estiver la e edite para:

 

--Exori Stinger By Mimow (Xtibia)

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 7)

setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 15, 0, 1.7, 0)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 8)

setCombatFormula(combat2, COMBAT_FORMULA_SKILL, 10, 0, 1.7, 0)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 9)

setCombatFormula(combat3, COMBAT_FORMULA_SKILL, 15, 0, 1.7, 0)

 

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

}

 

local area1 = createCombatArea(arr1)

local area2 = createCombatArea(arr2)

local area3 = createCombatArea(arr3)

 

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

 

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

 

function onCastSpell(cid, var)

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

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

addEvent(onCastSpell3, 300, parameters)

end

 

Na pasta (Data/spells) abra o arquivo spells.xml e adicione:

 

<instant name="Exori Stinger" words="exori stinger" selftarget="0" aggressive="0" lvl="90" maglv="6" mana="160" soul="0" exhaustion="1" prem="0" enabled="1" script="Exori Stinger.lua"><vocation id="4"/><vocation id="8"/></instant>

 

Testado em 2 server's 8.1!

 

exori_stinger205.png

 

Créditos: By Mimow

 

Quem tiver uma fórmula melhor para esta magia poste aqui que eu edito!

 

COMENTEM!!!

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

  • 3 weeks later...

Provavelmente voce esta usando ela pra mage e o dano esta baixo mesmo com os valores altos nao é?

É porque voce ta usando o COMBAT_FORMULA_SKILL, ele se baseia pelo skill

setCombatFormula(combat1, COMBAT_FORMULA_SKILL, 15, 0, 1.7, 0)

Use setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, 15, 0, 1.7, 0), ele se baseia pelo ml

E é claro, diminui os valores caso use o COMBAT_FORMULA_LEVELMAGIC

 

 

 

BLoody kisses

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

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