local function notMove(target, postarget)
if isPlayer(target) then
mayNotMove(target, false)
doSendMagicEffect(postarget, 50)
doPlayerSendTextMessage(target, 27, "Voce saiu do 'paralizamento'")
return true
end
end
function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 33333344) < os.time() then
local pos = getPlayerPosition(cid)
local target = getCreatureTarget(cid)
local postarget = getPlayerPosition(target)
if target > 0 then
local tempo = 10 --seg
local exaust = 15 --seg
setPlayerStorageValue(cid, 33333344, os.time () + exaust)
mayNotMove(target, true)
doSendMagicEffect(pos, 50)
doSendMagicEffect(postarget, 50)
addEvent(notMove, tempo*1000,target, postarget)
else
doPlayerSendTextMessage(cid, 27, "cade o target")
return FALSE
end
else
doPlayerSendCancel(cid, " aguarde"..getPlayerStorageValue(cid, 33333344) - os.time ().." segundos ")
return FALSE
end
return true
end







info
Grupo: Infante
Registrado: 27/01/13
Posts: 1.7k
Reputação: +104
Gênero: Masculino
Gostaria de uma spell,que deixe o player sem se mover,por x tempo,mas sem se mover mesmo '-'