Teste essa função:
healInSeconds(cid, heal, time, interval)
explicando >
heal = quanto vai healar
time = quanto tempo vai durar( em segundos )
interval = a cada quantos segundo irá healar.
function healInSeconds(cid, heal, time, interval) if getPlayerStorageValue(cid, 894371) >= os.time() then doPlayerSendCancel(cid, "Já está healando") return true end addEvent(doCreatureAddHealth, interval * 1000, cid, heal) setPlayerStorageValue(cid, 894371, time * 1000) return true end






info
Grupo: Campones
Registrado: 21/09/12
Posts: 18
Reputação: +4
Gostaria de uma magia que ficasse healando o life do player a cada 2 segundos 300 de life por durante um periodo de 3 minutos e aparecesse o efeito "+300" em verde.
Agradecido.