Ir para conteúdo

Extreme Magic


Rennan159

Posts Recomendados

Titulo - Extreme Magic

Otserv testado - Snowz Tyranic 8.60 versão 3.1

Tipo De Script - Spell

 

 

Fala Galera Blza ? :)

 

Bom Hoje eu estava sem fazer nada (para variar) vizualizando o meu ultimo post peguei o meu script e começei a fazer spells de brincadeira, até que fiz uma que eu gostei xD e resolvi compartilhar com vcs para ver se vcs gostaram tambem, essa spell Funciona assim : Ela irá solta 4 danos de Fire Formando um "X" no chão (sim homenagem ao Xtibia talvez), e logo após isso Soltará varios danos seguidos :) formando assim a "Extreme Magic" Bom Chega de papo e vamos ao que enteressa

 

Primeira mente vamos em Data/Spells/Attack Copiamos qualquer arquivo.lua Abra-o e Apague Tudo que Há la dentro Enseguida Adicione o Seguinte Script :

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 15)
setCombatParam(combat1, COMBAT_PARAM_CREATEITEM, 1492)
setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -1.3, 1.5, -1.3, 10)

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 15)
setCombatParam(combat2, COMBAT_PARAM_CREATEITEM, 1492)
setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1.3, 1.5, -1.3, 10)

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 15)
setCombatParam(combat3, COMBAT_PARAM_CREATEITEM, 1492)
setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -1.3, 1.5, -1.3, 10)

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 15)
setCombatParam(combat4, COMBAT_PARAM_CREATEITEM, 1492)
setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -1.3, 1.5, -1.3, 10)

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 50)
setCombatFormula(combat5, COMBAT_FORMULA_LEVELMAGIC, -1.3, 1.5, -1.3, 10)

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 25)
setCombatFormula(combat6, COMBAT_FORMULA_LEVELMAGIC, -1.3, 1.5, -1.3, 10)

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat7, COMBAT_FORMULA_LEVELMAGIC, -1.3, 1.5, -1.3, 10)

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, 26)
setCombatFormula(combat8, COMBAT_FORMULA_LEVELMAGIC, -1.3, 1.5, -1.3, 10)

local combat9 = createCombatObject()
setCombatParam(combat9, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat9, COMBAT_PARAM_EFFECT, 17)
setCombatFormula(combat9, COMBAT_FORMULA_LEVELMAGIC, -1.3, 1.5, -1.3, 10)

arr1 = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0},
{0, 0, 0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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, 1, 1, 1, 0, 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)
local area4 = createCombatArea(arr4)
local area5 = createCombatArea(arr5)
local area6 = createCombatArea(arr6)
local area7 = createCombatArea(arr7)
local area8 = createCombatArea(arr8)
local area9 = createCombatArea(arr9)
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)

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

local function onCastSpell2(parameters)
doCombat(parameters.cid, combat2, parameters.var)
end
local function onCastSpell3(parameters)
doCombat(parameters.cid, combat3, parameters.var)
end

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

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

local function onCastSpell6(parameters)
doCombat(parameters.cid, combat6, parameters.var)
end
local function onCastSpell7(parameters)
doCombat(parameters.cid, combat7, parameters.var)
end

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

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

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
addEvent(onCastSpell1, 500, parameters)
addEvent(onCastSpell2, 900, parameters)
addEvent(onCastSpell3, 1200, parameters)
addEvent(onCastSpell4, 1500, parameters)
addEvent(onCastSpell5, 1800, parameters)
addEvent(onCastSpell6, 2100, parameters)
addEvent(onCastSpell7, 2400, parameters)
addEvent(onCastSpell8, 2700, parameters)
addEvent(onCastSpell9, 3000, parameters)

return TRUE
end

 

Salve e feche, Renomeie o Arquivo para "X Magic"

 

Enseguida Vamos la em Data/Spells/Spells.XML e adicionamos a seguinte tag:

 

   <instant name="Extreme Magic" words="Extreme Magic" lvl="500" mana="300" prem="1" selftarget="1" exhaustion="2000" needlearn="1" script="attack/X magic.lua">
	<vocation name="Paladin"/>  
	<vocation name="Royal Paladin" />
        </instant> 

 

OBS : Essas Vocations eu so fiz para test da magic fique avontade para mudar danos e a vocaçao que irá invocala

 

 

Abaixo como de Costume Postarei um Video da spell para melhor Visualização da mesma:

 

 

Bom é isso ae galera espero que vcs tenham gostado, e desculpe se ela saiu meia "Porca" é que eu tava meio sem ideia e eu fiz essa spell e achei que fico legal e como eu disse acima achei que seria legal trazer ao Xtibia

 

 

Bom é isso ai, Obrigado Duvidas, Sugestões e Criticas Porfavor postem abaixo xD

 

Créditos - CurseOfNightmare

Link para o comentário
Compartilhar em outros sites

unica coisa que não curti foi os foguinhos ficarem ali no chão o resto ta foda '-'

e spells tem que ter paciência pra cria vei pqp,por isso nem curto mto meche com spells acho chato uhsIUSHuisHSUIhusuiS

abraços

Link para o comentário
Compartilhar em outros sites

  • 1 year later...
×
×
  • Criar Novo...