Ir para conteúdo

[ Spell ]Lokao E Bruto


DevilMoon

Posts Recomendados

Ae Galera o Spell nao é eu que fiz mais editei a maioria dele entaum devidos aos creditos

 

Fulano que Fez os Scripts: 10%

Eu Lindao é Claro *.* (Brinks.)

 

Ok Chega de Papo Furado , Baichei o Mapa Death Vile nao sei Se Voces Conhecem , Editando o Mapa , Fazendo Spells eu achei uma Magia Chamada Super '-' Legal Procurei no Spells.xml e nao Achava , Adicionei , éra uma Porcaria , Apesar de ser legal um Poco , Porem dava Bug , Nao Tinha Exaust , os Efeitos , e Dano nao Tinha nada A Ver e Começei a Editar , Ficando assim!

 

Vamos ao Script agora?

 

Data>spells>attack

 

cria uma pasta.lua e bota isso dentro e renoma para rockpower.lua e coloque isso dentro

 

 

 

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 acombat9 = createCombatObject()
local acombat10 = createCombatObject()
local acombat11 = createCombatObject()
local acombat12 = createCombatObject()
local acombat13 = createCombatObject()
local acombat14 = createCombatObject()
local acombat15 = createCombatObject()
local acombat16 = createCombatObject()

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.3, 0, -0.4, 0)


local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)


local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat9, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat10, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat11 = createCombatObject()
setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat11, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat11, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat12 = createCombatObject()
setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat12, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat12, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat12, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat13 = createCombatObject()
setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat13, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat13, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat14 = createCombatObject()
setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat14, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat14, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat14, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat15 = createCombatObject()
setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat15, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat15, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat15, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

local combat16 = createCombatObject()
setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat16, COMBAT_PARAM_EFFECT, 44)
setCombatParam(combat16, COMBAT_PARAM_DISTANCEEFFECT, 11)
setCombatFormula(combat16, COMBAT_FORMULA_LEVELMAGIC, -0.3, 0, -0.4, 0)

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

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

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

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)
local area9 = createCombatArea(arr9)
local area10 = createCombatArea(arr10)
local area11 = createCombatArea(arr11)
local area12 = createCombatArea(arr12)
local area13 = createCombatArea(arr13)
local area14 = createCombatArea(arr14)
local area15 = createCombatArea(arr15)
local area16 = createCombatArea(arr16)
setCombatArea(acombat1, area1)
setCombatArea(acombat2, area2)
setCombatArea(acombat3, area3)
setCombatArea(acombat4, area4)
setCombatArea(acombat5, area5)
setCombatArea(acombat6, area6)
setCombatArea(acombat7, area7)
setCombatArea(acombat8, area8)
setCombatArea(acombat9, area9)
setCombatArea(acombat10, area10)
setCombatArea(acombat11, area11)
setCombatArea(acombat12, area12)
setCombatArea(acombat13, area13)
setCombatArea(acombat14, area14)
setCombatArea(acombat15, area15)
setCombatArea(acombat16, area16)

function onTargetTile(cid, pos)
doCombat(cid,combat1,positionToVariant(pos))
end

function onTargetTile2(cid, pos)
doCombat(cid,combat2,positionToVariant(pos))
end

function onTargetTile3(cid, pos)
doCombat(cid,combat3,positionToVariant(pos))
end

function onTargetTile4(cid, pos)
doCombat(cid,combat4,positionToVariant(pos))
end

function onTargetTile5(cid, pos)
doCombat(cid,combat5,positionToVariant(pos))
end

function onTargetTile6(cid, pos)
doCombat(cid,combat6,positionToVariant(pos))
end

function onTargetTile7(cid, pos)
doCombat(cid,combat7,positionToVariant(pos))
end

function onTargetTile8(cid, pos)
doCombat(cid,combat8,positionToVariant(pos))
end

function onTargetTile9(cid, pos)
doCombat(cid,combat9,positionToVariant(pos))
end

function onTargetTile10(cid, pos)
doCombat(cid,combat10,positionToVariant(pos))
end

function onTargetTile11(cid, pos)
doCombat(cid,combat11,positionToVariant(pos))
end

function onTargetTile12(cid, pos)
doCombat(cid,combat12,positionToVariant(pos))
end

function onTargetTile13(cid, pos)
doCombat(cid,combat13,positionToVariant(pos))
end

function onTargetTile14(cid, pos)
doCombat(cid,combat14,positionToVariant(pos))
end

function onTargetTile15(cid, pos)
doCombat(cid,combat15,positionToVariant(pos))
end

function onTargetTile16(cid, pos)
doCombat(cid,combat16,positionToVariant(pos))
end
setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

setCombatCallback(acombat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")


setCombatCallback(acombat3, CALLBACK_PARAM_TARGETTILE, "onTargetTile3")


setCombatCallback(acombat4, CALLBACK_PARAM_TARGETTILE, "onTargetTile4")


setCombatCallback(acombat5, CALLBACK_PARAM_TARGETTILE, "onTargetTile5")


setCombatCallback(acombat6, CALLBACK_PARAM_TARGETTILE, "onTargetTile6")


setCombatCallback(acombat7, CALLBACK_PARAM_TARGETTILE, "onTargetTile7")


setCombatCallback(acombat8, CALLBACK_PARAM_TARGETTILE, "onTargetTile8")


setCombatCallback(acombat9, CALLBACK_PARAM_TARGETTILE, "onTargetTile9")


setCombatCallback(acombat10, CALLBACK_PARAM_TARGETTILE, "onTargetTile10")


setCombatCallback(acombat11, CALLBACK_PARAM_TARGETTILE, "onTargetTile11")


setCombatCallback(acombat12, CALLBACK_PARAM_TARGETTILE, "onTargetTile12")


setCombatCallback(acombat13, CALLBACK_PARAM_TARGETTILE, "onTargetTile13")


setCombatCallback(acombat14, CALLBACK_PARAM_TARGETTILE, "onTargetTile14")


setCombatCallback(acombat15, CALLBACK_PARAM_TARGETTILE, "onTargetTile15")


setCombatCallback(acombat16, CALLBACK_PARAM_TARGETTILE, "onTargetTile16")


local function onCastSpell1(parameters)
doCombat(parameters.cid, acombat1, parameters.var)
end

local function onCastSpell2(parameters)
doCombat(parameters.cid, acombat2, parameters.var)
end

local function onCastSpell3(parameters)
doCombat(parameters.cid, acombat3, parameters.var)
end

local function onCastSpell4(parameters)
doCombat(parameters.cid, acombat4, parameters.var)
end

local function onCastSpell5(parameters)
doCombat(parameters.cid, acombat5, parameters.var)
end

local function onCastSpell6(parameters)
doCombat(parameters.cid, acombat6, parameters.var)
end

local function onCastSpell7(parameters)
doCombat(parameters.cid, acombat7, parameters.var)
end

local function onCastSpell8(parameters)
doCombat(parameters.cid, acombat8, parameters.var)
end

local function onCastSpell9(parameters)
doCombat(parameters.cid, acombat9, parameters.var)
end

local function onCastSpell10(parameters)
doCombat(parameters.cid, acombat10, parameters.var)
end

local function onCastSpell11(parameters)
doCombat(parameters.cid, acombat11, parameters.var)
end

local function onCastSpell12(parameters)
doCombat(parameters.cid, acombat12, parameters.var)
end

local function onCastSpell13(parameters)
doCombat(parameters.cid, acombat13, parameters.var)
end

local function onCastSpell14(parameters)
doCombat(parameters.cid, acombat14, parameters.var)
end

local function onCastSpell15(parameters)
doCombat(parameters.cid, acombat15, parameters.var)
end

local function onCastSpell16(parameters)
doCombat(parameters.cid, acombat16, parameters.var)
end




function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell2, 200, parameters)
addEvent(onCastSpell3, 300, parameters)
addEvent(onCastSpell4, 400, parameters)
addEvent(onCastSpell5, 500, parameters)
addEvent(onCastSpell6, 600, parameters)
addEvent(onCastSpell7, 700, parameters)
addEvent(onCastSpell8, 800, parameters)
addEvent(onCastSpell9, 900, parameters)
addEvent(onCastSpell10, 1000, parameters)
addEvent(onCastSpell11, 1100, parameters)
addEvent(onCastSpell12, 1200, parameters)
addEvent(onCastSpell13, 1300, parameters)
addEvent(onCastSpell14, 1400, parameters)
addEvent(onCastSpell15, 1500, parameters)
addEvent(onCastSpell16, 1600, parameters)

return TRUE
end

 

 

 

E Depois vá em Data>Spells.xml e Bote a Tag que Voce Quer , as Vocations e Etc...!!

 

Espero que Gostem Foi feita com Carinho :p

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

  • Administrador

Legal gostei da magia :D

:thumbsupsmiley:

ta ae a SS:

screenshot005if.jpg

 

 

-----EDIT-----

cara so uma coisa ela nao gasta mana ._.

mesmo na tag no spells.xml falando pra gasta um certo tando de mana n gasta O_O

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

Esses tipos de comentários são considerados flood, são inúteis e dispensáveis.

Se tiver uma crítica, não exite em fazê-la. Se tiver um elogio, faça-o, mas não das formas citadas acima.

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...

Olha, mt boa a magia, gostei ^^'

 

Enquanto ao erro ae amigo, isso tambem pode tirar o exausthed da magia, tente usar ela assim:

 

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 acombat9 = createCombatObject()

local acombat10 = createCombatObject()

local acombat11 = createCombatObject()

local acombat12 = createCombatObject()

local acombat13 = createCombatObject()

local acombat14 = createCombatObject()

local acombat15 = createCombatObject()

local acombat16 = createCombatObject()

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat2, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat3, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat4, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat5, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat5, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat6 = createCombatObject()

setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat6, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat6, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat7 = createCombatObject()

setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat7, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat7, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat8 = createCombatObject()

setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat8, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat8, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat9 = createCombatObject()

setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat9, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat9, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat10 = createCombatObject()

setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat10, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat10, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat11 = createCombatObject()

setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat11, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat11, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat12 = createCombatObject()

setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat12, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat12, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat13 = createCombatObject()

setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat13, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat13, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat14 = createCombatObject()

setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat14, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat14, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat15 = createCombatObject()

setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat15, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat15, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

local combat16 = createCombatObject()

setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat16, COMBAT_PARAM_EFFECT, 44)

setCombatParam(combat16, COMBAT_PARAM_DISTANCEEFFECT, 11)

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

 

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

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

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

}

 

arr15 = {

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

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

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

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

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

}

 

arr16 = {

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

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

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

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

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

}

 

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)

local area9 = createCombatArea(arr9)

local area10 = createCombatArea(arr10)

local area11 = createCombatArea(arr11)

local area12 = createCombatArea(arr12)

local area13 = createCombatArea(arr13)

local area14 = createCombatArea(arr14)

local area15 = createCombatArea(arr15)

local area16 = createCombatArea(arr16)

setCombatArea(acombat1, area1)

setCombatArea(acombat2, area2)

setCombatArea(acombat3, area3)

setCombatArea(acombat4, area4)

setCombatArea(acombat5, area5)

setCombatArea(acombat6, area6)

setCombatArea(acombat7, area7)

setCombatArea(acombat8, area8)

setCombatArea(acombat9, area9)

setCombatArea(acombat10, area10)

setCombatArea(acombat11, area11)

setCombatArea(acombat12, area12)

setCombatArea(acombat13, area13)

setCombatArea(acombat14, area14)

setCombatArea(acombat15, area15)

setCombatArea(acombat16, area16)

 

function onTargetTile(cid, pos)

doCombat(cid,combat1,positionToVariant(pos))

end

 

function onTargetTile2(cid, pos)

doCombat(cid,combat2,positionToVariant(pos))

end

 

function onTargetTile3(cid, pos)

doCombat(cid,combat3,positionToVariant(pos))

end

 

function onTargetTile4(cid, pos)

doCombat(cid,combat4,positionToVariant(pos))

end

 

function onTargetTile5(cid, pos)

doCombat(cid,combat5,positionToVariant(pos))

end

 

function onTargetTile6(cid, pos)

doCombat(cid,combat6,positionToVariant(pos))

end

 

function onTargetTile7(cid, pos)

doCombat(cid,combat7,positionToVariant(pos))

end

 

function onTargetTile8(cid, pos)

doCombat(cid,combat8,positionToVariant(pos))

end

 

function onTargetTile9(cid, pos)

doCombat(cid,combat9,positionToVariant(pos))

end

 

function onTargetTile10(cid, pos)

doCombat(cid,combat10,positionToVariant(pos))

end

 

function onTargetTile11(cid, pos)

doCombat(cid,combat11,positionToVariant(pos))

end

 

function onTargetTile12(cid, pos)

doCombat(cid,combat12,positionToVariant(pos))

end

 

function onTargetTile13(cid, pos)

doCombat(cid,combat13,positionToVariant(pos))

end

 

function onTargetTile14(cid, pos)

doCombat(cid,combat14,positionToVariant(pos))

end

 

function onTargetTile15(cid, pos)

doCombat(cid,combat15,positionToVariant(pos))

end

 

function onTargetTile16(cid, pos)

doCombat(cid,combat16,positionToVariant(pos))

end

setCombatCallback(acombat1, CALLBACK_PARAM_TARGETTILE, "onTargetTile")

 

setCombatCallback(acombat2, CALLBACK_PARAM_TARGETTILE, "onTargetTile2")

 

 

setCombatCallback(acombat3, CALLBACK_PARAM_TARGETTILE, "onTargetTile3")

 

 

setCombatCallback(acombat4, CALLBACK_PARAM_TARGETTILE, "onTargetTile4")

 

 

setCombatCallback(acombat5, CALLBACK_PARAM_TARGETTILE, "onTargetTile5")

 

 

setCombatCallback(acombat6, CALLBACK_PARAM_TARGETTILE, "onTargetTile6")

 

 

setCombatCallback(acombat7, CALLBACK_PARAM_TARGETTILE, "onTargetTile7")

 

 

setCombatCallback(acombat8, CALLBACK_PARAM_TARGETTILE, "onTargetTile8")

 

 

setCombatCallback(acombat9, CALLBACK_PARAM_TARGETTILE, "onTargetTile9")

 

 

setCombatCallback(acombat10, CALLBACK_PARAM_TARGETTILE, "onTargetTile10")

 

 

setCombatCallback(acombat11, CALLBACK_PARAM_TARGETTILE, "onTargetTile11")

 

 

setCombatCallback(acombat12, CALLBACK_PARAM_TARGETTILE, "onTargetTile12")

 

 

setCombatCallback(acombat13, CALLBACK_PARAM_TARGETTILE, "onTargetTile13")

 

 

setCombatCallback(acombat14, CALLBACK_PARAM_TARGETTILE, "onTargetTile14")

 

 

setCombatCallback(acombat15, CALLBACK_PARAM_TARGETTILE, "onTargetTile15")

 

 

setCombatCallback(acombat16, CALLBACK_PARAM_TARGETTILE, "onTargetTile16")

 

 

local function onCastSpell1(parameters)

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

end

 

local function onCastSpell2(parameters)

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

end

 

local function onCastSpell3(parameters)

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

end

 

local function onCastSpell4(parameters)

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

end

 

local function onCastSpell5(parameters)

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

end

 

local function onCastSpell6(parameters)

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

end

 

local function onCastSpell7(parameters)

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

end

 

local function onCastSpell8(parameters)

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

end

 

local function onCastSpell9(parameters)

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

end

 

local function onCastSpell10(parameters)

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

end

 

local function onCastSpell11(parameters)

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

end

 

local function onCastSpell12(parameters)

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

end

 

local function onCastSpell13(parameters)

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

end

 

local function onCastSpell14(parameters)

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

end

 

local function onCastSpell15(parameters)

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

end

 

local function onCastSpell16(parameters)

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

end

 

 

 

 

function onCastSpell(cid, var)

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

addEvent(onCastSpell1, 100, parameters)

addEvent(onCastSpell2, 200, parameters)

addEvent(onCastSpell3, 300, parameters)

addEvent(onCastSpell4, 400, parameters)

addEvent(onCastSpell5, 500, parameters)

addEvent(onCastSpell6, 600, parameters)

addEvent(onCastSpell7, 700, parameters)

addEvent(onCastSpell8, 800, parameters)

addEvent(onCastSpell9, 900, parameters)

addEvent(onCastSpell10, 1000, parameters)

addEvent(onCastSpell11, 1100, parameters)

addEvent(onCastSpell12, 1200, parameters)

addEvent(onCastSpell13, 1300, parameters)

addEvent(onCastSpell14, 1400, parameters)

addEvent(onCastSpell15, 1500, parameters)

addEvent(onCastSpell16, 1600, parameters)

 

return TRUE

end

 

Creio que funcionará! ^^' (para bugs como esse, adicione return TRUE antes do ULTIMO end do arquivo

 

Cya! ADM MaX - Dragon's Empire.

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

  • 1 month later...
  • 1 month later...

Legal gostei da magia :D

:thumbsupsmiley:

ta ae a SS:

screenshot005if.jpg

 

 

-----EDIT-----

cara so uma coisa ela nao gasta mana ._.

mesmo na tag no spells.xml falando pra gasta um certo tando de mana n gasta O_O

 

porque você deu a magia com o seu "ADM" e "ADM" não gasta MANA ;D

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

×
×
  • Criar Novo...