Advertisement
Guest User

AI.lua

a guest
Oct 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.47 KB | None | 0 0
  1. --Screen
  2. term.clear()
  3.  
  4. term.setCursorPos(1,1)
  5. term.setTextColor( colors.green )
  6. print("-----------------------------------------")
  7. term.setCursorPos(1,5)
  8. print("-----------------------------------------")
  9. term.setTextColor( colors.white )
  10.  
  11. term.setCursorPos(1,6)
  12. term.setTextColor( colors.red )
  13. write("<Admin>")
  14. term.setTextColor( colors.white )
  15.  
  16. local input = read()
  17.  
  18. if input == "hello" then
  19.  term.setCursorPos(1,2)
  20.  print("Hello User, what can i do for you?")
  21.  sleep(1.5)
  22.  shell.run("AI")
  23. elseif input == "terminate" then
  24.  term.setCursorPos(1,2)
  25.  term.setTextColor( colors.red )
  26.  print("Terminated")
  27.  term.setTextColor( colors.white )
  28. elseif input == "music" then
  29.  term.setCursprPos(1,2)
  30.  shell.run("dj")
  31.  print("Player music, if has conection with")
  32.  write("a discdrive and a music disk inside it")
  33. elseif input == "reboot" then
  34.  shell.run("reboot")
  35. elseif input == "what is the meaning with life" then
  36.  term.setCursorPos(1,2)
  37.  write("My life or yours ?")
  38.  term.setTextColor( colors.purple )
  39.  print("  you / my")
  40.   local input = read()
  41.   if input == "you" then
  42.    term.setCursorPos(1,2)
  43.    print("To serv you, good sir       ")
  44.   elseif input == "my" then
  45.    term.setCursorPos(1,2)
  46.    write("42")
  47.    sleep(0.3)
  48.    term.setTextColor( colors.red )
  49.    write("  Can not complie")
  50.    term.setTextColor( colors.white )
  51.    print(" you / my")
  52.   else
  53.   end
  54. else
  55.  term.setCursorPos(1,2)
  56.  print("I diden't understand")
  57.  sleep(0.5)
  58.  shell.run("AI")
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement