Ir para conteúdo

[Spells] Exevo Mort Hut


Rafaeldavid

Posts Recomendados

Ola gente, acabei de fazer mais uma magia exevo mort hut

1º passo abra a pasta data/spells/spells.xml cole isso dentro dela

<instant name="morte" words="exevo mort hur" lvl="60" mana="100" direction="1" exhaustion="2000" needlearn="0" event="script" value="attack/mort hur.lua">

	<vocation name="druid"/>
	<vocation name="elder druid"/>
	<vocation name="sorcerer"/>
	<vocation name="master sorcerer"/>

</instant>

2º passo abra a pasta data/spells/script/attack e copie qualquer um e coloke o nome de mort hur cole isso dentro dele

---By: rafael---
local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)

setCombatParam(combat, COMBAT_PARAM_EFFECT, 17)

setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 2, 2, 1.2, 40)


local area = createCombatArea(AREA_BEAM5, AREADIAGONAL_BEAM5)

setCombatArea(combat, area)

function onCastSpell(cid, var)

return doCombat(cid, combat, var)

end

:XTibia_smile:

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

  • 1 month later...

Hmm Legal, mas é muito igual pra um tópico novo não acha?

 

Para fazer uma magia nova, tente fazer com vários elementos, que realmente intriguem o player.

 

Ate+

 

Exemplo:

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat10 = createCombatObject()
setCombatParam(combat10, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat10, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat10, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat11 = createCombatObject()
setCombatParam(combat11, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)
setCombatFormula(combat11, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat12 = createCombatObject()
setCombatParam(combat12, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat12, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat13 = createCombatObject()
setCombatParam(combat13, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat13, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatFormula(combat13, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat14 = createCombatObject()
setCombatParam(combat14, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat14, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatFormula(combat14, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat15 = createCombatObject()
setCombatParam(combat15, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat15, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat15, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat16 = createCombatObject()
setCombatParam(combat16, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat16, COMBAT_PARAM_EFFECT, CONST_ME_EXPLOSIONAREA)
setCombatFormula(combat16, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat17 = createCombatObject()
setCombatParam(combat17, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat17, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT)
setCombatFormula(combat17, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat18 = createCombatObject()
setCombatParam(combat18, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat18, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatFormula(combat18, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat19 = createCombatObject()
setCombatParam(combat19, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat19, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE)
setCombatFormula(combat19, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
local combat20 = createCombatObject()
setCombatParam(combat20, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat20, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatFormula(combat20, COMBAT_FORMULA_LEVELMAGIC, -3.0, -100, -20, -10)
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, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 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, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{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)
local area17 = createCombatArea(arr17)
local area18 = createCombatArea(arr18)
local area19 = createCombatArea(arr19)
local area20 = createCombatArea(arr20)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)
setCombatArea(combat9, area9)
setCombatArea(combat10, area10)
setCombatArea(combat11, area11)
setCombatArea(combat12, area12)
setCombatArea(combat13, area13)
setCombatArea(combat14, area14)
setCombatArea(combat15, area15)
setCombatArea(combat16, area16)
setCombatArea(combat17, area17)
setCombatArea(combat18, area18)
setCombatArea(combat19, area19)
setCombatArea(combat20, area20)
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
local function onCastSpell9(parameters)
doCombat(parameters.cid, parameters.combat9, parameters.var)
end
local function onCastSpell10(parameters)
doCombat(parameters.cid, parameters.combat10, parameters.var)
end
local function onCastSpell11(parameters)
doCombat(parameters.cid, parameters.combat11, parameters.var)
end
local function onCastSpell12(parameters)
doCombat(parameters.cid, parameters.combat12, parameters.var)
end
local function onCastSpell13(parameters)
doCombat(parameters.cid, parameters.combat13, parameters.var)
end
local function onCastSpell14(parameters)
doCombat(parameters.cid, parameters.combat14, parameters.var)
end
local function onCastSpell15(parameters)
doCombat(parameters.cid, parameters.combat15, parameters.var)
end
local function onCastSpell16(parameters)
doCombat(parameters.cid, parameters.combat16, parameters.var)
end
local function onCastSpell17(parameters)
doCombat(parameters.cid, parameters.combat17, parameters.var)
end
local function onCastSpell18(parameters)
doCombat(parameters.cid, parameters.combat18, parameters.var)
end
local function onCastSpell19(parameters)
doCombat(parameters.cid, parameters.combat19, parameters.var)
end
local function onCastSpell20(parameters)
doCombat(parameters.cid, parameters.combat20, parameters.var)
end
function onCastSpell(cid, var)
doSendAnimatedText(getPlayerPosition(cid), "Just GOD", TEXTCOLOR_GREEN)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8, combat9 = combat9, combat10 = combat10, combat11 = combat11, combat12 = combat12, combat13 = combat13, combat14 = combat14, combat15 = combat15, combat16 = combat16, combat17 = combat17, combat18 = combat18, combat19 = combat19, combat20 = combat20 }
addEvent(onCastSpell1, 0, parameters)
addEvent(onCastSpell2, 100, parameters)
addEvent(onCastSpell3, 200, parameters)
addEvent(onCastSpell4, 300, parameters)
addEvent(onCastSpell5, 400, parameters)
addEvent(onCastSpell6, 300, parameters)
addEvent(onCastSpell7, 400, parameters)
addEvent(onCastSpell8, 500, parameters)
addEvent(onCastSpell9, 600, parameters)
addEvent(onCastSpell10, 700, parameters)
addEvent(onCastSpell11, 600, parameters)
addEvent(onCastSpell12, 700, parameters)
addEvent(onCastSpell13, 800, parameters)
addEvent(onCastSpell14, 900, parameters)
addEvent(onCastSpell15, 1000, parameters)
addEvent(onCastSpell16, 900, parameters)
addEvent(onCastSpell17, 1000, parameters)
addEvent(onCastSpell18, 1100, parameters)
addEvent(onCastSpell19, 1200, parameters)
addEvent(onCastSpell20, 1300, parameters)
end

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

×
×
  • Criar Novo...