xXm0dzXx

P

Nov 4th, 2012
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. local x,y = term.getSize()
  2.  
  3. local function cPrint(text)
  4. x2,y2 = term.getCursorPos()
  5. term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
  6. write(text.. "\n")
  7. end
  8.  
  9. term.clear()
  10. term.setCursorPos(1,3)
  11. cPrint("Adminium")
  12. cPrint("The browser thats impossible to break.")
  13. print()
  14. cPrint("Loading Adminium Impossible Antivirus vXv1509.50 Ultimate Pro Edition - Now with color support!")
  15. term.clear()
  16. term.setCursorPos(1,1)
  17. print("rdnt://home")
  18. for i=1,x do
  19. term.setCursorPos(i,2)
  20. write("-")
  21. end
  22.  
  23. term.setCursorPos(1,4)
  24. cPrint("Welcome to")
  25. cPrint("Adminium")
  26. term.setCursorPos(1,6)
  27. print("rdnt://home - Home")
  28. print("rdnt://info - Help")
  29. print("rdnt://settings - Settings")
  30. print("rdnt://antivirus - Antivirus")
  31. print("\nPress any key to begin browsing.")
  32. repeat
  33. local event, key = os.pullEvent("key")
  34. until key ~= 1
  35.  
  36. term.setCursorPos(1,1)
  37. term.clearLine()
  38. write("rdnt://")
  39. read()
  40. term.setCursorPos(1,5)
  41. cPrint("+----------Anti-Virus-----------+")
  42. cPrint("| Warning! Warining! Warining! |")
  43. cPrint("| This site tried to call these |")
  44. cPrint("| malicious variables: |")
  45. cPrint("| term.clear() - Graphical virus|")
  46. cPrint("| print() - Graphical virus |")
  47. cPrint("| write() - Graphical virus |")
  48. cPrint("| term.write() - Graphical virus|")
  49. cPrint("+----------Anti-Virus-----------+")
  50. cPrint("Aborting...")
  51. sleep(5)
  52. error()
Advertisement
Add Comment
Please, Sign In to add comment