Advertisement
Quazaka

Bannable Offense

Jun 19th, 2013
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.26 KB | None | 0 0
  1. -- Change "top" to whatever side the monitor is on.
  2. local m = peripheral.wrap("top")
  3.  
  4. local BackgroundColor = colors.black
  5. -- Startup stuff
  6. m.setCursorBlink(false)
  7. m.setBackgroundColor(BackgroundColor)
  8. m.clear()
  9.  
  10. -- Simple function to write text at a position, with a color
  11. local function Write(str, color, x, y, bgcolor)
  12.         m.setTextColor(color)
  13.         if bgcolor ~= nil then        
  14.                 m.setBackgroundColor(bgcolor)
  15.         end
  16.        
  17.         m.setCursorPos(x,y)
  18.         m.write(str)
  19.        
  20.         if bgcolor ~= nil then
  21.                 m.setBackgroundColor(BackgroundColor)
  22.         end    
  23. end
  24.  
  25. local flashRules = true
  26. local function PrintWelcome()
  27.         -- Clear out the previous monitor text. We'll be writing to it instantly, so there's no tearing effects.
  28.         m.clear()
  29.        
  30.         Write("Bannable Offense", colors.lime, 9, 2)
  31.         Write("Bypassing Protections", colors.white, 2, 4)
  32.         Write("Hacking (xray, fly, etc)", colors.white, 2, 6)
  33.         Write("Purposely Lagging the server", colors.white, 2, 8)
  34.         Write("Spamming", colors.white, 2, 10)
  35.        
  36. end
  37.  
  38. while true do
  39.         PrintWelcome()
  40.         sleep(0.5) -- 0.5 to update the "flashing" text often enough to be able to read it.
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement