.Qual servidor ou website você utiliza como base?
OTX 2 8.60
Boa tarde, quando um jogador utiliza essa spell de paralyze em outro jogador, o mesmo fica travado infinitamente sem conseguir fazer nada e eu também não consigo kickar o player, alguém consegue me ajudar?
local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5)
setConditionParam(condition, CONDITION_PARAM_SPEED, -5000)
function onCastSpell(cid, var)
local target = getCreatureTarget(cid)
local targetpos = getCreaturePosition(target)
local efepos = {x=targetpos.x, y=targetpos.y, z=targetpos.z}
local time = 5 -- tempo paralyzado
if isPlayer(cid) and exhaustion.check(cid, 12000) == TRUE then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 12000) .. " segundos para usar novamente.")
return FALSE
end
local function No_Move_Target()
if isCreature(target) then
doCreatureSetNoMove(target, 1)
end
return TRUE
end
exhaustion.set(cid, 12000, 8)
doCreatureSetNoMove(target, 0)
doAddCondition(target, condition)
doSendMagicEffect(efepos, 430)
addEvent(No_Move_Target, time*1000)
return TRUE
end
@Vodkart