• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

[NEED] Paralyze Spell

norrow

Member
Joined
Dec 16, 2012
Messages
129
Reaction score
7
Location
Poland
Hello, I need the paralyzing spell on the entire screen, such that you can not move for 3 sec but you can use spell,
Please help

- - - Updated - - -

Refersh!
 
LUA:
function unparalyze(cid)
    return isPlayer(cid) and doCreatureSetNoMove(cid, false)
end


function onCastSpell(cid, var)
    local pid = getCreatureTarget(cid)
    if not isPlayer(pid) then
        return false, doPlayerSendCancel(cid, 'You may only use this on human targets.')
    end
    return doCreatureSetNoMove(pid, true), addEvent(unparalyze, 3000, pid)
end
 
LUA:
function unparalyze(cid)
    return isPlayer(cid) and doCreatureSetNoMove(cid, false)
end


function onCastSpell(cid, var)
    local pid = getCreatureTarget(cid)
    if not isPlayer(pid) then
        return false, doPlayerSendCancel(cid, 'You may only use this on human targets.')
    end
    return doCreatureSetNoMove(pid, true), addEvent(unparalyze, 3000, pid)
end

With "doCreatureSetNoMove" player can still set follow on someone and move this way (I suppose it's a bug).
 
Back
Top