Ir para conteúdo

[Encerrado] Modifica spell ajuda


davidopina

Posts Recomendados

pessoal queria editar essa spell mais n sei oq essas coisas significa se alguem puder ajuda agradeço quero muito criar uma magia e modifica o dano e mudar as sprites

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 201)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 38)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -5.9, 0, -6.0, 0)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 201)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 38)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -5.9, 0, -7.0, 0)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 201)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 38)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -6.9, 0, -6.0, 0)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 201)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 38)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -5.7, 0, -5.0, 0)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 201)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 38)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.0, 0)

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, 0, parameters)    
addEvent(onCastSpell2, 300, parameters)       
addEvent(onCastSpell3, 600, parameters)     
addEvent(onCastSpell4, 900, parameters)     
addEvent(onCastSpell5, 1200, parameters)   


end
 

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

19 horas atrás, davidopina disse:

pessoal queria editar essa spell mais n sei oq essas coisas significa se alguem puder ajuda agradeço quero muito criar uma magia e modifica o dano e mudar as sprites

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 201)

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 38)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -5.9, 0, -6.0, 0)

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 201)

setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 38)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -5.9, 0, -7.0, 0)

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 201)

setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 38)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -6.9, 0, -6.0, 0)

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 201)

setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 38)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -5.7, 0, -5.0, 0)

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 201)

setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 38)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -6.3, 0, -5.0, 0)

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, 0, parameters)    

addEvent(onCastSpell2, 300, parameters)       

addEvent(onCastSpell3, 600, parameters)     

addEvent(onCastSpell4, 900, parameters)     

addEvent(onCastSpell5, 1200, parameters)   

 

end

 

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 201) = Efeito do client.

 

 

 

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 38) = Missiel do client

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -5.9, 0, -6.0, 0) = Dano ,quando maior mais dano -100.0 ... 

Link para o comentário
Compartilhar em outros sites

4 horas atrás, Crypter disse:

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 201) = Efeito do client.

 

 

 

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 38) = Missiel do client

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -5.9, 0, -6.0, 0) = Dano ,quando maior mais dano -100.0 ... 

vlw man

Link para o comentário
Compartilhar em outros sites

  • 8 months later...
Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...