é pra mandar de 1 em 1 segundo? se for...
function unparalyze(cid) return isPlayer(cid) and doCreatureSetNoMove(cid, false) end function magicEfe(cid, times) if times > 0 and isPlayer(cid) then doSendMagicEffect(getCreaturePosition(cid), 189) addEvent(magicEfe, 1000, cid, times-1) end end function onCastSpell(cid, var) local target = getCreatureTarget(cid) if not isCreature(target) then doPlayerSendCancel(cid, 'You may only use this on human targets.') return false end doCreatureSetNoMove(target, true) addEvent(unparalyze, 5000, target) doSendMagicEffect(getCreaturePosition(target), 189) addEvent(magicEfe, 1000, target, 5) return true endps: não testei, vê como ta





info
Grupo: Conde
Registrado: 18/07/08
Posts: 545
Reputação: +21
Char no Tibia: Nem eu sei
estou criando uma magia que funciona da seguinte forma.
Você usa magia no jogador e ele fica 'imobilizado' por certo tempo, e eu queria que nesse tempo que o jogador fica 'imovel', ficasse saindo um effect dele, mas nao estou conseguindo colocar.
Eu queria que o tempo todo que o jogador fica imovel (5 segundos), ficasse saindo um efeito nele (effect 189).
script: