Ir para conteúdo

Druid Chemical Domination


namelock

Posts Recomendados

Sabe aquela spell que eu fiz para sorcerers ( http://www.xtibia.com/forum/index.php?showtopic=80999 )?

 

Pois é, eu fiz a versão pra druid!

 

 

Vamos lá.

 

 

Primeiramente, vá até a pasta data, depois na pasta spells e depois na pasta scripts. Copie e cole qualquer arquivo, renomeie-o para exevo pox frigo hur, abra-o e apague todo o seu conteúdo. Em seguida, coloque isso no arquivo:

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_EFFECT, 46)

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

min = -(level * 22) / 5

max = -(level * 38.5) / 5

 

return min, max

end

 

setCombatCallback(combat1, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_EFFECT, 43)

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

min = -(level * 22) / 5

max = -(level * 38.5) / 5

 

return min, max

end

 

setCombatCallback(combat2, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_EFFECT, 46)

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

min = -(level * 22) / 5

max = -(level * 38.5) / 5

 

return min, max

end

 

setCombatCallback(combat3, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local combat4 = createCombatObject()

setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)

setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

min = -(level * 22) / 5

max = -(level * 38.5) / 5

 

return min, max

end

 

setCombatCallback(combat4, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local combat5 = createCombatObject()

setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_PLANTATTACK)

setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)

function onGetFormulaValues(cid, level, maglevel)

min = -(level * 22) / 5

max = -(level * 38.5) / 5

 

return min, max

end

 

setCombatCallback(combat5, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

 

local arr1 = {

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

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

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

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

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

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

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

}

 

 

local arr2 = {

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

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

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

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

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

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

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

}

 

 

local arr3 = {

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

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

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

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

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

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

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

}

 

 

local arr4 = {

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

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

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

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

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

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

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

}

 

 

local arr5 = {

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

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

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

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

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

 

setCombatArea(combat1, area1)

setCombatArea(combat2, area2)

setCombatArea(combat3, area3)

setCombatArea(combat4, area4)

setCombatArea(combat5, area5)

 

 

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

addEvent(onCastSpell2, 300, parameters)

addEvent(onCastSpell3, 600, parameters)

addEvent(onCastSpell4, 1000, parameters)

addEvent(onCastSpell5, 1000, parameters)

 

end

 

Feito isso, volte par a pasta spells e abra o arquivo spells.rar, procure por instant spells, vá até o fim dessa seção e coloque isso:

 

<instant name="Chemical Domination Druid" words="exevo pox frigo hur" selftarget="1" aggressive="0" lvl="100" maglv="40" mana="1000" soul="0" exhaustion="1" prem="1" enabled="1" script="exevo pox frigo hur.lua"><vocation id="2"/><vocation id="6"/></instant>

 

Aqui vão as screem shots (a spell é progressiva):

 

ssdruid1zg9.jpg

 

ssdruid2al8.jpg

 

ssdruid3lr0.jpg

 

E não esqueçam, eu que fiz a spell, entãose forem postar noutro fórum, os cráditos são 90% meus por eu ter feito a spell!

 

Comntem aew.

 

E tbm comentem a versão pra sorcerer dessa magia:

 

http://www.xtibia.com/forum/index.php?showtopic=80999

 

Abraços, fui!

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

  • 1 month later...
×
×
  • Criar Novo...