edoreld

Untitled

Mar 26th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1.  
  2. -- Misc Functions
  3.  
  4. function clearScreen()
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. end
  8.  
  9.  
  10. while true do
  11. clearScreen()
  12. print("Welcome to World Destroyer (v1.1)")
  13. print("==============================")
  14. print("Please make your choice:")
  15. print("1. Kill everyone on the server")
  16. print("2. Initialize Twilight World destroying protocols")
  17. print("0. Exit")
  18. write("Command> ")
  19. local choice = read()
  20.  
  21. if (choice == '1') then
  22. print("Loading Missiles...")
  23. os.sleep(1)
  24. print("Finding targets...")
  25. os.sleep(1)
  26. print("Fatal Error. ")
  27. os.sleep(2)
  28. elseif (choice == '2') then
  29. print("Initializing...")
  30. redstone.setOutput("back",true)
  31. os.sleep(3)
  32. print("The Twilight World resetting protocols have been initialized successfully")
  33. os.sleep(1)
  34. elseif (choice == '0') then
  35. clearScreen()
  36. break
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment