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
XML:<event type="follow" name="follow" event="buffer"> <![CDATA[ return not getCreatureNoMove(cid) ]]> </event>
LUA:registerCreatureEvent(cid, "follow")