Opa,Esse è meu Primeiro Tutorial E Espero que Gostem
Então Mão Na Massa
Primeiro Vocês Vão em Data/Spells/Scripts Copie E cole Qualquer Arquivo Lua E Renomeie para love.lua abra apague tudo e cole isso:
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat,COMBAT_PARAM_EFFECT, CONST_ME_HEARTS)
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, 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},
{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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 1, 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
Feche E Salve
Agora Você Copia e cola qualquer arquivo e renomeie para exori mas.lua
Abra o Arquivo apague tudo que esta la dentro e cole isso :
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 34)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.6, -35, -1.3, 0)
local arr = {
{0, 0, 1, 1, 1, 0, 0},
{0, 1, 1, 1, 1, 1, 0},
{1, 1, 1, 1, 1, 1, 1},
{1, 1, 1, 3, 1, 1, 1},
{1, 1, 1, 1, 1, 1, 1},
{0, 1, 1, 1, 1, 1, 0},
{0, 0, 1, 1, 1, 0, 0}
}
local area = createCombatArea(arr)
setCombatArea(combat, area)
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
Feche E Salve
Agora Você Copia e cola qualquer arquivo e renomeie para whirlwind.lua
Abra o Arquivo apague tudo que esta la dentro e cole isso :
local combatDist = createCombatObject()setCombatParam(combatDist, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combatDist, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WHIRLWINDSWORD )
setCombatFormula(combatDist, COMBAT_FORMULA_SKILL, -0.1, 0, -0.5, 0)
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
if(target ~= 0) then
return doCombat(cid, combatDist, numberToVariant(target))
end
return doCombat(cid, combat, var)
end
Feche E Salve
Agora Você Copia e cola qualquer arquivo e renomeie para exevo gran mas mort.lua
Abra o Arquivo apague tudo que esta la dentro e cole isso :
local combat = createCombatObject()setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat,COMBAT_PARAM_EFFECT, 17)
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, 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},
{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, 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, 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 va em Data/Spells/spells.XML e cole Abaixo de
<!-- instant spells --> cole isso:
<instant name="Whirlwind Throw" words="exori hur" lvl="15" maglv="5" manapercent="40" soul="0" exhaustion="1" prem="1" enabled="1" script="whirlwind.lua"><vocation id="4"/><vocation id="8"/></instant><instant name="Groundshaker" words="exori mas" lvl="33" maglv="5" manapercent="160" soul="0" exhaustion="1" prem="1" enabled="1" script="exori mas.lua"><vocation id="4"/><vocation id="8"/></instant>
<instant name="Coracao" words="Te amo" lvl="55" maglv="40" mana="600" soul="0" exhaustion="0" prem="1" enabled="1" script="love.lua"><vocation id="1"/><vocation id="5"/><vocation id="2"/><vocation id="6"/></instant>
<instant name="Ultimate Death" words="exevo gran mas mort" lvl="55" maglv="40" mana="600" soul="0" exhaustion="0" prem="1" enabled="1" script="exevo gran mas mort.lua"><vocation id="1"/><vocation id="5"/></instant>
Pronto Terminei
Espero tem ajudado