-- 'nofall' by rock5 -- Version 1 local originalFallBytes local nofalladdress = addresses.swimAddress - 0x589 local numbytes = 12 local function getOldBytes() if originalFallBytes ~= nil then return originalFallBytes end local tmp = {} for i = 1,numbytes do tmp[i] = memoryReadUByte(getProc(),nofalladdress+(i-1)) end if tmp[1] == 0x90 then print("Bot restarted with 'nofall' on. Will not be able to turn off 'nofall'.") return false else originalFallBytes = tmp return originalFallBytes end end function nofall() local bytes = getOldBytes() if bytes == false then return end memoryWriteString(getProc(), nofalladdress, string.rep(string.char(0x90),#originalFallBytes)); end function nofalloff() local bytes = getOldBytes() if bytes == false then return end memoryWriteString(getProc(), nofalladdress, string.char(unpack(bytes))); end function nofallsuicide() -- Turn on 'nofall' nofall() -- Teleport up relative to current position teleport(nil,nil,30,false) -- Wait till death repeat yrest(800) player:update() until not player.Alive -- Restore 'nofall' state. nofalloff() end