Pelo que eu entendi, seria isso.
local effect = {23,45,32,64} -- sequencia de effect!
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
if target > 0 then
doTeleportThing(cid, getCreaturePosition(target))
doCreatureSetNoMove(cid, true)
doCreatureSetNoMove(target, true)
local tempo = 0
local quant = #effect
local cont = 1
local tempoDelay = 500 -- tempo delay para cada efeito.
while (tempo < tempoDelay*quant) do
addEvent(sendEffectHit, tempoDelay, cid, target, cont)
cont = cont+1
tempoDelay = tempoDelay + tempoDelay
end
return true
else
doPlayerSendCancel(cid,"Você precisa de um target para usar.")
end
return false
end
function sendEffectHit(cid, target, cont)
if isPlayer(cid) then
doSendMagicEffect(getCreaturePosition(cid), effect[cont])
local hit = hitTarget(cid)
if isPlayer(target) or isCreature(target) then
if getCreatureHealth(target) >= hit then
doCreatureAddHealth(cid, -hit)
doSendAnimatedText(getCreaturePosition(target), hit, COLOR_RED)
else
doCreatureAddHealth(cid, getCreatureHealth(target))
doSendAnimatedText(getCreaturePosition(target), getCreatureHealth(target), COLOR_RED)
end
end
if cont == #effect then
if isPlayer(target) or isCreature(target) then
local pos = getClosestFreeTile(target, getCreaturePosition(cid), true, false)
doTeleportThing(target, pos)
end
removeNoMove(cid, target)
end
end
end
function removeNoMove(cid, target)
if isPlayer(cid) then
doCreatureSetNoMove(cid, false)
end
if isPlayer(target) or isCreature(target) then
doCreatureSetNoMove(target, false)
end
return true
end
function hitTarget(cid)
local level = getPlayerLevel(cid)
local magic = getPlayerMagLevel(cid)
return level*0.5+magic+(math.random(10,30))
end







info
Grupo: Campones
Registrado: 29/09/12
Posts: 32
Reputação: -1
Char no Tibia: [ADM] JuAn
e um script que eu procurei muito mais não achei nenhum igual no video mostra como é o script e tipo 1 spell mais e muito dificil de ser feito veja o video:
a spell que eu quero e a que aparece apartir do 01:04 aquela que aparece o lee fazendo monte de efeito se alguem conseguir darei +REP (plz jhon '-')
Editado Setembro 30 por JuAnXtIbIa