Ir para conteúdo

Ajuda Com Spell


LucasCastro

Posts Recomendados

Aeew Galeraa!

 

Tenhu Uma magia Aq Que ta dando um ERRO

 

Se puderem arrumar:

 

ERRO:

 

[Error - Spell Interface ]

data/spells/script/support/magianova.lua

Description:

<luaSetCombatArea> Area not found

 

8 ERROS DESSE /\

 

MAGIA:

 

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE,COMBAT_PHISYCALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 0)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE,COMBAT_DEATHDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 26)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE,COMBAT_HOLYDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 49)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE,COMBAT_DROWNDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 53)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE,COMBAT_ICEDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 42)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE,COMBAT_DROWNDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 1)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE,COMBAT_HOLYDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 39)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE,COMBAT_ENERGYDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 40)

setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local arr1 = {

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

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

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

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

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

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

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

}

 

local arr2 = {

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

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

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

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

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

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

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

}

 

local arr3 = {

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

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

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

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

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

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

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

}

 

local arr4 = {

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

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

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

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

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

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

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

}

 

local arr5 = {

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

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

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

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

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

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

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

}

 

local arr6 = {

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

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

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

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

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

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

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

}

 

local arr7 = {

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

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

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

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

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

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

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

}

 

local arr8 = {

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

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

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

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

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

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

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

}

 

setCombatArea(combat1, arr1)

setCombatArea(combat2, arr2)

setCombatArea(combat3, arr3)

setCombatArea(combat4, arr4)

setCombatArea(combat5, arr5)

setCombatArea(combat6, arr6)

setCombatArea(combat7, arr7)

setCombatArea(combat8, arr8)

 

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

 

local function onCastSpell6(parameters)

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

end

 

local function onCastSpell7(parameters)

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

end

 

local function onCastSpell8(parameters)

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

end

 

function onCastSpell(cid, var)

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

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 101, parameters)

addEvent(onCastSpell3, 102, parameters)

addEvent(onCastSpell4, 103, parameters)

addEvent(onCastSpell5, 200, parameters)

addEvent(onCastSpell6, 201, parameters)

addEvent(onCastSpell7, 202, parameters)

addEvent(onCastSpell8, 203, parameters)

 

return TRUE

end

Link para o comentário
Compartilhar em outros sites

local acombat1 = createCombatObject()

local acombat2 = createCombatObject()

local acombat3 = createCombatObject()

local acombat4 = createCombatObject()

local acombat5 = createCombatObject()

local acombat6 = createCombatObject()

local acombat7 = createCombatObject()

local acombat8 = createCombatObject()

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE,COMBAT_PHISYCALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 0)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE,COMBAT_DEATHDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 26)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE,COMBAT_HOLYDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 49)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE,COMBAT_DROWNDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 53)

setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE,COMBAT_ICEDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 42)

setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE,COMBAT_DROWNDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 1)

setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE,COMBAT_HOLYDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 39)

setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE,COMBAT_ENERGYDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 40)

setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -5, -5.0, -5, -10.5)

 

local arr1 = {

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

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

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

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

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

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

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

}

 

local arr2 = {

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

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

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

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

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

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

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

}

 

local arr3 = {

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

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

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

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

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

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

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

}

 

local arr4 = {

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

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

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

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

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

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

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

}

 

local arr5 = {

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

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

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

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

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

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

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

}

 

local arr6 = {

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

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

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

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

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

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

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

}

 

local arr7 = {

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

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

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

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

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

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

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

}

 

local arr8 = {

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

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

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

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

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

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

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

local area6 = createCombatArea(arr6)

local area7 = createCombatArea(arr7)

local area8 = createCombatArea(arr8)

setCombatArea(acombat1, area1)

setCombatArea(acombat2, area2)

setCombatArea(acombat3, area3)

setCombatArea(acombat4, area4)

setCombatArea(acombat5, area5)

setCombatArea(acombat6, area6)

setCombatArea(acombat7, area7)

setCombatArea(acombat8, area8)

 

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

 

local function onCastSpell6(parameters)

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

end

 

local function onCastSpell7(parameters)

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

end

 

local function onCastSpell8(parameters)

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

end

 

function onCastSpell(cid, var)

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

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 101, parameters)

addEvent(onCastSpell3, 102, parameters)

addEvent(onCastSpell4, 103, parameters)

addEvent(onCastSpell5, 200, parameters)

addEvent(onCastSpell6, 201, parameters)

addEvent(onCastSpell7, 202, parameters)

addEvent(onCastSpell8, 203, parameters)

 

return TRUE

end

Nao testei

 

 

FALOW FUIIIIIIIIIIS

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...