Essas magias foram feitas por mim (Vysland), portanto se for postar em algum lugar coloquem créditos!
1º Magia: Flame Hell
Primeiro crie/copie&cole um arquivo em spells/scripts chamado Flame Hell, se estiver escrito algo apague tudo e cole isso...
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 36)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.0, -150, -1.6, -150)
arr = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 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},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{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, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Agora vá em spells/scripts.xml e coloque:
<instant name="Flame Hell" words="flame hell" lvl="40" maglv="60" mana="1200" soul="0"exhaustion="1" prem="1" enabled="1" script="flame hell.lua"><vocation id="1"/><vocation
id="5"/></instant>
2º Magia: Blizzard
Primeiro crie/copie&cole um arquivo em spells/scripts chamado Blizzard, se estiver escrito algo apague tudo e cole isso...
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 52)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.0, -150, -1.6, -150)
arr = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 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},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{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, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Agora vá em spells/scripts.xml e coloque:
<instant name="Blizzard" words="blizzard" lvl="40" maglv="60" mana="1200" soul="0"exhaustion="1" prem="1" enabled="1" script="blizzard.lua"><vocation id="2"/><vocation
id="6"/></instant>
3º Magia: Earthquake
Primeiro crie/copie&cole um arquivo em spells/scripts chamado Earthquake, se estiver escrito algo apague tudo e cole isso...
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_POISONDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 26)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.0, -150, -1.6, -150)
arr = {
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 1, 1, 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},
{1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1},
{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, 1, 1, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Agora vá em spells/scripts.xml e coloque:
<instant name="EarthQuake" words="earthquake" lvl="40" maglv="60" mana="1200"soul="0"exhaustion="1" prem="1" enabled="1" script="earthquake.lua"><vocation id="2"/><vocation
id="6"/></instant>
4º Magia: I Love u
Para que esta magia?
R: Para zuar com seus amigos ou mostar-se apaixonado por alguem ;D
Primeiro crie/copie&cole um arquivo em spells/scripts chamado Love, se estiver escrito algo apague tudo e cole isso...
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 35)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -2.0, -150, -1.6, -150)
arr = {
{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, 3, 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},
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Agora vá em spells/scripts.xml e coloque:
<instant name="Love" words="i love u" lvl="40" maglv="60" mana="100" soul="0"exhaustion="1" prem="1" enabled="1" script="love.lua"><vocation id="1"/><vocation
id="2"/><vocation id="3"/><vocation id="4"/><vocation id="5"/><vocation id="6"/><vocation
id="7"/><vocation id="8"/></instant>
5º Magia: Holy Wave
Primeiro crie/copie&cole um arquivo em spells/scripts chamado holy wave, se estiver escrito algo apague tudo e cole isso...
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 39)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.7, 0)
local arr = {
{1, 1, 1},
{1, 1, 1},
{1, 1, 1},
{0, 1, 0},
{0, 3, 0},
}
local arrDiag = {
{1, 1, 1, 0, 0},
{1, 1, 0, 0, 0},
{1, 0, 1, 0, 0},
{0, 0, 0, 1, 0},
{0, 0, 0, 0, 3},
}
local area = createCombatArea(arr, arrDiag)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Agora vá em spells/scripts.xml e coloque:
<instant name="Holy Wave" words="exevo san hur" aggressive="1" direction="1" lvl="40"maglv="15" mana="120" soul="0" exhaustion="1" prem="0" enabled="1" script="holy
wave.lua"><vocation id="3"/><vocation id="7"/></instant>
6º Magia: Exori Ice
Primeiro crie/copie&cole um arquivo em spells/scripts chamado exori ice, se estiver escrito algo apague tudo e cole isso...
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_EFFECT, 41)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.7, -36, -1.5, 0)
local arr = {
{0, 0, 0, 0, 0},
{0, 1, 1, 1, 0},
{0, 1, 2, 1, 0},
{0, 1, 1, 1, 0},
{0, 0, 0, 0, 0}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Agora vá em spells/scripts.xml e coloque:
<instant name="Exori Ice" words="exori ice" lvl="60" maglv="5" mana="400" soul="0" exhaustion="1" prem="1" enabled="1" script="exori ice.lua"><vocation id="4"/><vocation id="8"/></instant>
7º Magia: Bolt Wave
Primeiro crie/copie&cole um arquivo em spells/scripts chamado Bolt Wave, se estiver escrito algo apague tudo e cole isso...
local acombat = createCombatObject()
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_BOLT)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -4.0, -250, -4.0, 250)
local arr = {
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 3, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0}
}
local area = createCombatArea(arr)
setCombatArea(acombat, area)
function onTargetTile(cid, pos)
doCombat(cid,combat,positionToVariant(pos))
end
setCombatCallback(acombat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
function onCastSpell(cid, var)
return doCombat(cid, acombat, var)
end
Agora vá em spells/scripts.xml e coloque:
<instant name="Bolt wave" words="exevo vis bolt" aggressive="0" direction="1" lvl="50" maglv="10" mana="150" soul="0" exhaustion="1" prem="1" enabled="1" script="bolt wave.lua"><vocation id="3"/><vocation id="7"/></instant>
Qualque bug ou dúvida me informe!
Se entrou no tópico e pegou as magias comentem o que achou delas! :weight_lift:
Logo Estarei fazendo outras Melhores... :smile_positivo:
:XTibia_smile:
Tópico Atualizado: 02/03/2008 Domingo.