Aqui a spell.
local tempo = 5 -- quanto tempo vai durar
local id = 3697 -- id do item que vai transformar
function onCastSpell(cid, var)
if getPlayerStorageValue(cid, id) < os.time() then
local target = getCreatureTarget(cid)
doSetItemOutfit(target, id, tempo*1000)
doCreatureSetNoMove(target, true)
addEvent(function()
if not isCreature(target) then
return true
end
doCreatureSetNoMove(target, false)
end, tempo*1000)
end
end



info
Grupo: Visconde
Registrado: 02/10/13
Posts: 320
Reputação: +22
Gênero: Masculino
A magia iria funcionar da seguinte forma, o monstro estaria atacando um player e quando ele soltar a magia, esse player iria se transformar em uma estatua e a magia Irá travar o jogador por 5 segundos, o jogador poderá se curar, atacar, mas se mover será impossivel.