Ir para conteúdo

Mega Spells


cai01992

Posts Recomendados

Bom eu Peguei a Magia (Mega Exbersek) Feita por: Mitsocratso

Aqui no Forum Msm >> http://www.xtibia.com/forum/Mega-Exberserk-t104881.html

e Fiz algumas Modificações para Cada Classe!

 

Entre em \data\spells\scripts\custom Copie 1 Arquivo e Cole o Script abaixo:

(Salve como Mega Exori.lua)



 

MEGA EXORI:



local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_STONES)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 36)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

local condition = createConditionObject(CONDITION_PARALYZE)

setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)

--setConditionParam(condition, CONDITION_PARAM_SPEED, -500)

setConditionFormula(condition, -0.9, 0, -0.9, 0)

setCombatCondition(combat2, condition)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 34)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

arr1 = {

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

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

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

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

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

{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},

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

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

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

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

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

}

 

arr2 = {

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

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

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

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

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

{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},

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

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

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

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

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

}

 

arr3 = {

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

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

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

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

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

{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},

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

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

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

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

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

addEvent(onCastSpell3, 800, parameters)

 

end

 

megaexoriov6.jpg

 

Entre em \data\spells\scripts\custom Copie 1 Arquivo e Cole o Script abaixo:



(Salve como Mega Condition.lua)

 

MEGA CONDITION:



local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 49)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_YELLOWENERGY)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 34)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

arr1 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr2 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr3 = {

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

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

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

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

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

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

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

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

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

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

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

addEvent(onCastSpell3, 800, parameters)

 

end

 

megaconditionek3.jpg

 

Entre em \data\spells\scripts\custom Copie 1 Arquivo e Cole o Script abaixo:



(Salve como Mega Frozen.lua)

 

MEGA FROZEN:



local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

local condition = createConditionObject(CONDITION_PARALYZE)

setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)

--setConditionParam(condition, CONDITION_PARAM_SPEED, -500)

setConditionFormula(condition, -0.9, 0, -0.9, 0)

setCombatCondition(combat1, condition)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

arr1 = {

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

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

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

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

addEvent(onCastSpell3, 800, parameters)

 

end

 

megafrozenpj1.jpg

 

Entre em \data\spells\scripts\custom Copie 1 Arquivo e Cole o Script abaixo:



(Salve como Mega Vis Hur.lua)

 

MEGA VIS HUR:



local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_BIGCLOUDS)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

arr1 = {

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

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

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

addEvent(onCastSpell3, 800, parameters)

 

end

 

megavishurfa4.jpg

 

Entrem em \data\spells Abra o Spells.xml e Adicione as Seguintes Linhas:

<instant name="Mega Exori" words="mega exori" aggressive="1" direction="0" lvl="500" maglv="11" mana="1000" soul="0" exhaustion="4000" prem="1" enabled="1" script="custom/mega exori.lua">



<vocation name="Elite Knight" />

</instant>

 

<instant name="Mega condition" words="mega condition" aggressive="1" direction="0" lvl="500" maglv="27" mana="1250" soul="0" exhaustion="4000" prem="1" enabled="1" script="custom/mega condition.lua">

<vocation name="Royal Paladin" />

</instant>

 

<instant name="Mega Frozen" words="mega frozen" aggressive="1" direction="0" lvl="500" maglv="120" mana="1500" soul="0" exhaustion="4000" prem="1" enabled="1" script="custom/mega frozen.lua">

<vocation name="Elder Druid" />

</instant>

 

 

<instant name="Mega vis hur" words="mega vis hur" aggressive="1" direction="0" lvl="500" maglv="120" mana="1500" soul="0" exhaustion="4000" prem="1" enabled="1" script="custom/mega vis hur.lua">

<vocation name="Master Sorcerer" />

</instant>

 

OBS: Modifica do Jeito que Melhor se Adapta as Necessidades do Seu Servidor

Espero que tenham gostado :smile_positivo:

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

ow qual e a versao que pega pq eu testei no 8.4 funfo nao

 

É pro 8.4 msm vc não esqueceu de fazer nada ?

 

como colocar no spells.xml as magias? ou colocou nomes errados? da uma olhada ai!

 

qq coisa manda oq vc fez ae vejo se consigo arruma :smile_positivo:

 

Tem Mais uma coisinha no meu caso eu coloquei na pasta spells\script\custom se vc não colocou na pasta custom ao invez disso colocou na pasta scripts vc tem q alterar umas coisinhas no spells.xml pq está assim:

 

<instant name="Mega Exori" words="mega exori" aggressive="1" direction="0" lvl="500" maglv="11" mana="1000" soul="0" exhaustion="4000" prem="1" enabled="1" script="custom/mega exori.lua">

<vocation name="Elite Knight" />

</instant>

 

vc colocaria assim:

<instant name="Mega Exori" words="mega exori" aggressive="1" direction="0" lvl="500" maglv="11" mana="1000" soul="0" exhaustion="4000" prem="1" enabled="1" script="mega exori.lua">

<vocation name="Elite Knight" />

</instant>

 

OBS: pra usar as magias vc tem q ta lv 500 e ter promotion ~~ n sei se vc testou com o gm ou com player ;P

 

Espero ter Ajudado :laugh:

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

  • 4 weeks later...
  • 1 year later...
Bom eu Peguei a Magia (Mega Exbersek) Feita por: Mitsocratso

Aqui no Forum Msm >> http://www.xtibia.com/forum/Mega-Exberserk-t104881.html

e Fiz algumas Modificações para Cada Classe!

 

Entre em \data\spells\scripts\custom Copie 1 Arquivo e Cole o Script abaixo:

(Salve como Mega Exori.lua)

 

MEGA EXORI:

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_STONES)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 36)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

local condition = createConditionObject(CONDITION_PARALYZE)

setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)

--setConditionParam(condition, CONDITION_PARAM_SPEED, -500)

setConditionFormula(condition, -0.9, 0, -0.9, 0)

setCombatCondition(combat2, condition)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 34)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

arr1 = {

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

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

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

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

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

{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},

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

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

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

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

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

}

 

arr2 = {

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

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

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

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

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

{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},

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

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

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

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

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

}

 

arr3 = {

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

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

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

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

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

{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},

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

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

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

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

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

addEvent(onCastSpell3, 800, parameters)

 

end

 

 

megaexoriov6.jpg

 

Entre em \data\spells\scripts\custom Copie 1 Arquivo e Cole o Script abaixo:

(Salve como Mega Condition.lua)

 

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 49)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_YELLOWENERGY)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 34)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.0, -300, -2.5, -310)

 

arr1 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr2 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr3 = {

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

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

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

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

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

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

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

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

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

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

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

addEvent(onCastSpell3, 800, parameters)

 

end[/left]

 

 

megaconditionek3.jpg

 

Entre em \data\spells\scripts\custom Copie 1 Arquivo e Cole o Script abaixo:

(Salve como Mega Frozen.lua)

 

MEGA FROZEN:

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_GIANTICE)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

local condition = createConditionObject(CONDITION_PARALYZE)

setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)

--setConditionParam(condition, CONDITION_PARAM_SPEED, -500)

setConditionFormula(condition, -0.9, 0, -0.9, 0)

setCombatCondition(combat1, condition)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

arr1 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr2 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr3 = {

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

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

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

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

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

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

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

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

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

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

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

addEvent(onCastSpell3, 800, parameters)

 

end

 

megafrozenpj1.jpg

 

Entre em \data\spells\scripts\custom Copie 1 Arquivo e Cole o Script abaixo:

(Salve como Mega Vis Hur.lua)

 

MEGA VIS HUR:

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_BIGCLOUDS)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_FIREAREA)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.5, -350, -2.7, -360)

 

arr1 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr2 = {

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

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

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

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

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

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

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

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

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

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

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

}

 

arr3 = {

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

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

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

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

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

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

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

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

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

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

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

addEvent(onCastSpell3, 800, parameters)

 

end

 

megavishurfa4.jpg</div>

 

Entrem em \data\spells Abra o Spells.xml e Adicione as Seguintes Linhas:

<instant name="Mega Exori" words="mega exori" aggressive="1" direction="0" lvl="500" maglv="11" mana="1000" soul="0" exhaustion="4000" prem="1" enabled="1" script="custom/mega exori.lua">

<vocation name="Elite Knight" />

</instant>

 

<instant name="Mega condition" words="mega condition" aggressive="1" direction="0" lvl="500" maglv="27" mana="1250" soul="0" exhaustion="4000" prem="1" enabled="1" script="custom/mega condition.lua">

<vocation name="Royal Paladin" />

</instant>

 

<instant name="Mega Frozen" words="mega frozen" aggressive="1" direction="0" lvl="500" maglv="120" mana="1500" soul="0" exhaustion="4000" prem="1" enabled="1" script="custom/mega frozen.lua">

<vocation name="Elder Druid" />

</instant>

 

 

<instant name="Mega vis hur" words="mega vis hur" aggressive="1" direction="0" lvl="500" maglv="120" mana="1500" soul="0" exhaustion="4000" prem="1" enabled="1" script="custom/mega vis hur.lua">

<vocation name="Master Sorcerer" />

</instant>

 

OBS: Modifica do Jeito que Melhor se Adapta as Necessidades do Seu Servidor

Espero que tenham gostado :smile_positivo:

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...