Ir para conteúdo

Featured Replies

Postado

Como posso por exaust de 2 minutos nessa spell ?

 

local config = {
pos = {x=42, y=234, z=7}, -- posição da aegis dimension
tempo
= 15, -- tempo pra voltar
effect1
= 66, -- efeito ao ser teleportado
effect2
= 10 -- efeito ao voltar
}








function onCastSpell(cid, var)
if isPlayer(getCreatureTarget(cid)) then
target = getCreatureTarget(cid)
addEvent(doTeleportThing, 1000*config.tempo, target, getThingPos(target), true)
addEvent(doSendMagicEffect, 1000*config.tempo, getThingPos(target), config.effect2)
doSendMagicEffect(getThingPos(target), config.effect1)
doTeleportThing(target, config.pos)
if isCreature(cid) then
doPlayerSendTextMessage(target, 27, "You were teleported by ".. getCreatureName(cid) ..".")
end
if isPlayer(cid) and isCreature(target) then
doPlayerSendTextMessage(cid, 27, "You teleported ".. getCreatureName(target) .."!")
end
for i = 1,config.tempo  do
addEvent(function()
if isCreature(target) then
doPlayerSendTextMessage(target,25,"You'll be back in " .. config.tempo -i +1 .. " second(s)")
end
end, 1000*i)
end
else
doPlayerSendCancel(cid, "You can only use this spell in players")
end
return true
end

 

 

  • Respostas 5
  • Visualizações 344
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Tenta mudar a tag da spell no xml.

Exemplo exhaustion do exori con do paladin :

<instant name="Ethereal Spear" words="exori con" lvl="23" mana="50" prem="1" range="5" needtarget="1" exhaustion="1000" blockwalls="1" needlearn="0" event="script" value="attack/ethereal spear.lua">
        <vocation id="3"/>
        <vocation id="7"/>
    </instant>

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo