Teste assim:
local tempo = 30 -- tempo em segundos
function onStepIn(cid, item, pos)
if isPlayer(cid) == 1 then
-- Passou Player
mayNotMove(cid, true)
addEvent(Liberar, tempo * 1000, cid)
doSendMagicEffect(pos, 0)
elseif isCreature(cid) == 1 then
-- Passou Bicho
mayNotMove(cid, true)
addEvent(Liberar, tempo * 1000, cid)
doSendMagicEffect(pos, 3)
end
doPlayerAddHealth(cid, -30)
mayNotMove(cid, true)
addEvent(Liberar, tempo * 1000, cid)
doTransformItem(item.uid,4209)
doDecayItem(item.uid)
return 1
end
function Liberar(cid)
mayNotMove(cid, false)
end
Não sei se usa "cid" mesmo para monster, mas teste aí.
Atenciosamente,
Adriano Swatt'