Ir para conteúdo

Ajuda Aee Sistema M1 Do Dash


vitoorcoorrea

Posts Recomendados

Po to com o sistema de moves do dash

eu queria add novas magias nele

 

tipo : quero add essa spell

 

local acombat1 = createCombatObject()

local acombat4 = createCombatObject()

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 56)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 56)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

 

arr1 = {

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

}

 

arr4 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

local area1 = createCombatArea(arr1)

local area4 = createCombatArea(arr4)

setCombatArea(acombat1, area1)

setCombatArea(acombat4, area4)

 

function onTargetTile(cid, pos)

doCombat(cid,combat1,positionToVariant(pos))

end

 

function onTargetTile2(cid, pos)

doCombat(cid,combat4,positionToVariant(pos))

end

 

setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

 

setCombatCallback(acombat4, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")

 

local function onCastSpell1(parameters)

doCombat(parameters.cid, acombat1, parameters.var)

end

 

local function onCastSpell4(parameters)

doCombat(parameters.cid, acombat4, parameters.var)

end

 

function onCastSpell(cid, var)

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

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell4, 400, parameters)

 

end

 

 

quero add magias assim no sistema mas nao consiguo ajuda aee do rep + em qualquer post seu.

Link para o comentário
Compartilhar em outros sites

  • 3 weeks later...
  • Quem Está Navegando   0 membros estão online

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