Hm, tenta assim:
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -5000)
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
local targetpos = getCreaturePosition(target)
local efepos = {x=targetpos.x+1, y=targetpos.y+1, z=targetpos.z}
local time = 5 -- tempo paralyzado
if isPlayer(cid) then
if exhaustion.check(cid, 20000) == true then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 20000) .. " segundos para usar novamente.")
return FALSE
end
end
local function No_Move_Target()
doCreatureSetNoMove(target, 0)
end
if isPlayer(cid) then
exhaustion.set(cid, 20000, 8)
end
doCreatureSetNoMove(target, 1)
doAddCondition(target, condition)
doSendMagicEffect(efepos, 152)
addEvent(No_Move_Target, time*1000)
return true
end





info
Grupo: Marquês
Registrado: 05/12/11
Posts: 1.2k
Reputação: +173
Gênero: Masculino
gente tipow um bixo do meu server usa spell e parace o nome da spell aonde ela ta e o erro :player not found gostaria de arrumar ela
script \/
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionParam(condition, CONDITION_PARAM_SPEED, -5000)
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
local targetpos = getCreaturePosition(target)
local efepos = {x=targetpos.x+1, y=targetpos.y+1, z=targetpos.z}
local time = 5 -- tempo paralyzado
if exhaustion.check(cid, 20000) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 20000) .. " segundos para usar novamente.")
return FALSE
end
local function No_Move_Target()
doCreatureSetNoMove(target, 0)
end
exhaustion.set(cid, 20000, 8)
doCreatureSetNoMove(target, 1)
doAddCondition(target, condition)
doSendMagicEffect(efepos, 152)
addEvent(No_Move_Target, time*1000)
return TRUE
end
é isso galera