Ir para conteúdo

Urricane


Foxkbt

Posts Recomendados

essa magia eu fiz com a intenção de simular que o kina rodou a espada a seu redor dando dano "como o exori"

depois de usar ela uma certa quantidade de veses...

ela ira almentar o dano e ira rodar mais veses!

 

nivel 2 , usar a magia 1000 veses

nivel 3, usar a magia +5000 veses

nivel 4, usar a magia +10000 veses

 

quando usa essa magia, o kina n pode se mover ate acabar, caso n goste disso, tire todas as linhas que tiver isso > addEvent(onFinishSpell1

 

va em spell/scripts

copie qualquer arquivo e renomeie ele para urricane.lua

delete tudo que estiver dentro do arquivo e cole isso!

 

local combat1 = createCombatObject()
setCombatParam(combat1, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 0)

function onGetFormulaValues(cid, level, skill, attack, factor)
local power = getPlayerStorageValue(cid, 33324)
local skillTotal, levelTotal = skill + attack ,power * (level/5)
return -(skillTotal * 1.0 + levelTotal), -(skillTotal * 2.0 + levelTotal)
end

setCombatCallback(combat1, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

local combat2 = createCombatObject()
setCombatParam(combat2, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat2, COMBAT_PARAM_EFFECT, 0)


function onGetFormulaValues(cid, level, skill, attack, factor)
local power = getPlayerStorageValue(cid, 33324)
local skillTotal, levelTotal = skill + attack ,power * (level/5)
return -(skillTotal * 1.0 + levelTotal), -(skillTotal * 2.0 + levelTotal)
end


setCombatCallback(combat2, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

local combat3 = createCombatObject()
setCombatParam(combat3, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat3, COMBAT_PARAM_EFFECT, 0)

function onGetFormulaValues(cid, level, skill, attack, factor)
local power = getPlayerStorageValue(cid, 33324)
local skillTotal, levelTotal = skill + attack ,power * (level/5)
return -(skillTotal * 1.0 + levelTotal), -(skillTotal * 2.0 + levelTotal)
end

setCombatCallback(combat3, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

local combat4 = createCombatObject()
setCombatParam(combat4, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat4, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat4, COMBAT_PARAM_EFFECT, 0)


function onGetFormulaValues(cid, level, skill, attack, factor)
local power = getPlayerStorageValue(cid, 33324)
local skillTotal, levelTotal = skill + attack ,power * (level/5)
return -(skillTotal * 1.0 + levelTotal), -(skillTotal * 2.0 + levelTotal)
end

setCombatCallback(combat4, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

local combat5 = createCombatObject()
setCombatParam(combat5, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat5, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat5, COMBAT_PARAM_EFFECT, 0)

function onGetFormulaValues(cid, level, skill, attack, factor)
local power = getPlayerStorageValue(cid, 33324)
local skillTotal, levelTotal = skill + attack ,power * (level/5)
return -(skillTotal * 1.0 + levelTotal), -(skillTotal * 2.0 + levelTotal)
end
setCombatCallback(combat5, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

local combat6 = createCombatObject()
setCombatParam(combat6, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat6, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat6, COMBAT_PARAM_EFFECT, 0)

function onGetFormulaValues(cid, level, skill, attack, factor)
local power = getPlayerStorageValue(cid, 33324)
local skillTotal, levelTotal = skill + attack ,power * (level/5)
return -(skillTotal * 1.0 + levelTotal), -(skillTotal * 2.0 + levelTotal)
end

setCombatCallback(combat6, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

local combat7 = createCombatObject()
setCombatParam(combat7, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat7, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat7, COMBAT_PARAM_EFFECT, 0)

function onGetFormulaValues(cid, level, skill, attack, factor)
local power = getPlayerStorageValue(cid, 33324)
local skillTotal, levelTotal = skill + attack ,power * (level/5)
return -(skillTotal * 1.0 + levelTotal), -(skillTotal * 2.0 + levelTotal)
end
setCombatCallback(combat7, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")

local combat8 = createCombatObject()
setCombatParam(combat8, COMBAT_PARAM_BLOCKSHIELD, 1)
setCombatParam(combat8, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat8, COMBAT_PARAM_EFFECT, 0)

function onGetFormulaValues(cid, level, skill, attack, factor)
local power = getPlayerStorageValue(cid, 33324)
local skillTotal, levelTotal = skill + attack ,power * (level/5)
return -(skillTotal * 1.0 + levelTotal), -(skillTotal * 2.0 + levelTotal)
end

setCombatCallback(combat8, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")


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, 1, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 2, 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},
}

arr2 = {
{0, 0, 0, 0, 0, 0, 0, 0,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 0, 0, 0, 0},
{0, 0, 0, 0, 1, 2, 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},
}

arr8 = {
{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, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 2, 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 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)
setCombatArea(combat1, area1)
setCombatArea(combat2, area2)
setCombatArea(combat3, area3)
setCombatArea(combat4, area4)
setCombatArea(combat5, area5)
setCombatArea(combat6, area6)
setCombatArea(combat7, area7)
setCombatArea(combat8, area8)

local function onCastSpell1(parameters)
return isPlayer(parameters.cid) == TRUE and doCombat(parameters.cid, parameters.combat1, parameters.var) and doCreatureSetNoMove(parameters.cid, true)
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 onFinishSpell1(parameters)
return isPlayer(parameters.cid) == TRUE and doCreatureSetNoMove(parameters.cid, false)
end

function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3, combat4 = combat4, combat5 = combat5, combat6 = combat6, combat7 = combat7, combat8 = combat8}
if getPlayerStorageValue(cid, 3332) < 1000 then
setPlayerStorageValue(cid, 33324, 1)
setPlayerStorageValue(cid,3332, (getPlayerStorageValue(cid, 3332)+1))
addEvent(onCastSpell1, 50, parameters)
addEvent(onCastSpell2, 100, parameters)
addEvent(onCastSpell3, 150, parameters)
addEvent(onCastSpell4, 200, parameters)
addEvent(onCastSpell5, 250, parameters)
addEvent(onCastSpell6, 300, parameters)
addEvent(onCastSpell7, 350, parameters)
addEvent(onCastSpell8, 400, parameters)
addEvent(onFinishSpell1, 400, parameters)
elseif getPlayerStorageValue(cid, 3332) >= 1000 and getPlayerLevel(cid) >= 140 and getPlayerMana(cid) >= 500 then
setPlayerStorageValue(cid, 33324, 2)
setPlayerStorageValue(cid,3332, (getPlayerStorageValue(cid, 3332)+1))
doCreatureAddMana(cid, -150)
addEvent(onCastSpell1, 50, parameters)
addEvent(onCastSpell2, 100, parameters)
addEvent(onCastSpell3, 150, parameters)
addEvent(onCastSpell4, 200, parameters)
addEvent(onCastSpell5, 250, parameters)
addEvent(onCastSpell6, 300, parameters)
addEvent(onCastSpell7, 350, parameters)
addEvent(onCastSpell8, 400, parameters)
addEvent(onCastSpell1, 450, parameters)
addEvent(onCastSpell2, 500, parameters)
addEvent(onCastSpell3, 550, parameters)
addEvent(onCastSpell4, 600, parameters)
addEvent(onCastSpell5, 650, parameters)
addEvent(onCastSpell6, 700, parameters)
addEvent(onCastSpell7, 750, parameters)
addEvent(onCastSpell8, 800, parameters)
addEvent(onFinishSpell1, 800, parameters)
elseif getPlayerStorageValue(cid, 3332) >= 6000 and getPlayerLevel(cid) >= 180 and getPlayerMana(cid) >= 650 then
setPlayerStorageValue(cid, 33324, 3)
doCreatureAddMana(cid, -300)
setPlayerStorageValue(cid,3332, (getPlayerStorageValue(cid, 3332)+1))
addEvent(onCastSpell1, 50, parameters)
addEvent(onCastSpell2, 100, parameters)
addEvent(onCastSpell3, 150, parameters)
addEvent(onCastSpell4, 200, parameters)
addEvent(onCastSpell5, 250, parameters)
addEvent(onCastSpell6, 300, parameters)
addEvent(onCastSpell7, 350, parameters)
addEvent(onCastSpell8, 400, parameters)
addEvent(onCastSpell1, 450, parameters)
addEvent(onCastSpell2, 500, parameters)
addEvent(onCastSpell3, 550, parameters)
addEvent(onCastSpell4, 600, parameters)
addEvent(onCastSpell5, 650, parameters)
addEvent(onCastSpell6, 700, parameters)
addEvent(onCastSpell7, 750, parameters)
addEvent(onCastSpell8, 800, parameters)
addEvent(onCastSpell1, 850, parameters)
addEvent(onCastSpell2, 900, parameters)
addEvent(onCastSpell3, 950, parameters)
addEvent(onCastSpell4, 1000, parameters)
addEvent(onCastSpell5, 1050, parameters)
addEvent(onCastSpell6, 1100, parameters)
addEvent(onCastSpell7, 1150, parameters)
addEvent(onCastSpell8, 1200, parameters)
addEvent(onFinishSpell1, 1200, parameters)
elseif getPlayerStorageValue(cid, 3332) >= 16000 and getPlayerLevel(cid) >= 200 and getPlayerMana(cid) >= 800 then
setPlayerStorageValue(cid, 33324, 4)
doCreatureAddMana(cid, -550)
addEvent(onCastSpell1, 50, parameters)
addEvent(onCastSpell2, 100, parameters)
addEvent(onCastSpell3, 150, parameters)
addEvent(onCastSpell4, 200, parameters)
addEvent(onCastSpell5, 250, parameters)
addEvent(onCastSpell6, 300, parameters)
addEvent(onCastSpell7, 350, parameters)
addEvent(onCastSpell8, 400, parameters)
addEvent(onCastSpell1, 450, parameters)
addEvent(onCastSpell2, 500, parameters)
addEvent(onCastSpell3, 550, parameters)
addEvent(onCastSpell4, 600, parameters)
addEvent(onCastSpell5, 650, parameters)
addEvent(onCastSpell6, 700, parameters)
addEvent(onCastSpell7, 750, parameters)
addEvent(onCastSpell8, 800, parameters)
addEvent(onCastSpell1, 850, parameters)
addEvent(onCastSpell2, 900, parameters)
addEvent(onCastSpell3, 950, parameters)
addEvent(onCastSpell4, 1000, parameters)
addEvent(onCastSpell5, 1050, parameters)
addEvent(onCastSpell6, 1100, parameters)
addEvent(onCastSpell7, 1150, parameters)
addEvent(onCastSpell8, 1200, parameters)
addEvent(onCastSpell1, 1250, parameters)
addEvent(onCastSpell2, 1300, parameters)
addEvent(onCastSpell3, 1350, parameters)
addEvent(onCastSpell4, 1400, parameters)
addEvent(onCastSpell5, 1450, parameters)
addEvent(onCastSpell6, 1500, parameters)
addEvent(onCastSpell7, 1550, parameters)
addEvent(onCastSpell8, 1600, parameters)
addEvent(onFinishSpell1, 1600, parameters)
else
return false
end

return true
end

 

add isso no spell.xml

	<instant name="Urricane" words="exori zeta" lvl="115" mana="265" needweapon="1" prem="1" exhaustion="2000" needlearn="0" event="script" value="urricane.lua">
	<vocation id="8"/>
</instant>

 

aconcelho a não mexer no dano pois no nivel 4 fica ladrão

^^

gosto? rep++

ou intão de uma olhada no meu server

 

essa magia e muitas outras que fiz estão disponiveis no meu server

deem uma olhada no video do jogo

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

Nem tinha a spell la no video, depois vo testar essa magia.

 

------------------------------------------------------------------------------------------------------------------------------------

- Att. Saymon

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...

nivel 2 , usar a magia 1000 veses

nivel 3, usar a magia +5000 veses

nivel 4, usar a magia +10000 veses

como diminuo ou aumento o numero de vezes para subir de nivel?

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...