Ir para conteúdo

[spell] Rage Of Nature


cassuci

Posts Recomendados

E ae galerinha, meu primeiro post de script aki no Xtibia, :party: :party: !!!

Neste tópico vou postar uma spell para druid, q une 3 elementos diferentes: Earth, Ice e Energy!!! :positive:

Mas vamos parar de enrolar e vamos ao script e à SS:

 

SS:

52e4ffac0297b1b4b57375a88cf2eb92.jpg

 

Script:

 

Vá na pasta data/spells/script/attack, copie e cole qualquer arquivo e renomei-o para "fury of nature"(sem aspas), abra-o e cole isso:

local combat1 = createCombatObject()

local combat2 = createCombatObject()

local combat3 = createCombatObject()

 

local combat1 = createCombatObject()

setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)

setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_BIGPLANTS)

setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -2, -4, -2, -3)

 

local combat2 = createCombatObject()

setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)

setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO)

setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -2, -4, -2, -3)

local condition2 = createConditionObject(CONDITION_PARALYZE)

setConditionParam(condition2, CONDITION_PARAM_TICKS, 20000)

--setConditionParam(condition2, CONDITION_PARAM_SPEED, -500)

setConditionFormula(condition2, -0.8, 0, -0.8, 0)

setCombatCondition(combat2, condition2)

 

local combat3 = createCombatObject()

setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)

setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)

setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -2, -4, -2, -3)

 

arr1 = {

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

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

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

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

addEvent(onCastSpell2, 2, parameters)

addEvent(onCastSpell3, 3, parameters)

 

end

 

A magia está quase pronta agora :smile_positivo: .

Agora vc precisa ir em data/spells e abrir o spells.xml.

Após aberto, cole isso em baixo da ultima spell de ataque :blush: !!!

<instant name="Fury of Nature" words="exevo ultra tera" lvl="150" mana="1200" prem="1" selftarget="1" exhaustion="1000" needlearn="0" script="attack/fury of nature.lua">

<vocation name="Druid" />

<vocation name="Elder Druid" />

</instant>

 

Para ativar a magia é apenas dizer "exevo ultra tera" com qualquer druid lv 150+, se quiser mudar lv da magia, mana usada ou etc, só pedir para mim, se vc n souber! :smile_positivo: :smile_positivo:

 

Vlw pessoal é isso ae!

Espero q gostem!

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

  • 2 weeks later...
×
×
  • Criar Novo...