Guest User

tester

a guest
May 4th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.54 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print("Hello there, What would you like?")
  4. print(" ")
  5. print("Coffee,Dark Coffee,Cold Coffee,Mushroom Stew, Pumpkin Pie,Bread,Cookie,Apple,Baked Potato,Cake")
  6. print(" ")
  7.  
  8. input = read()
  9.  
  10. a = "Coffee"
  11. b = "Dark Coffee"
  12. c = "Cold Coffee"
  13. d = "Mushroom Stew"
  14. e = "Bread"
  15. f = "Cookie"
  16. g = "Apple"
  17. h = "Baked Potato"
  18. i = "Cake"
  19. j = "Pumpkin Pie"
  20.  
  21. input = read()
  22.  
  23. if input == a then
  24.   print("Alright, making your Coffee! Please wait!")
  25.   rs.setBundledOutput("bottom",colours.green)
  26.   sleep(2.0)
  27.   rs.setBundledOutput("bottom",0)
  28.   sleep(2.0)
  29.   shell.run("startup")
  30.  
  31. elseif input == b then
  32.  print("Alright, making your Dark Coffee! Please wait!")
  33.  rs.setBundledOutput("left",colours.brown)
  34.   sleep(2.0)
  35.   rs.setBundledOutput("left",0)
  36.   sleep(2.0)
  37.   shell.run("startup")
  38.  
  39. elseif input == c then
  40.  print("Alright, making your Cold Coffee! Please wait!")
  41.  rs.setBundledOutput("left",colours.blue)
  42.   sleep(2.0)
  43.   rs.setBundledOutput("left",0)
  44.   sleep(2.0)
  45.   shell.run("startup")
  46.  
  47. elseif input == d then
  48.  print("Alright, making your Mushroom Stew! Please wait! ")
  49.  rs.setBundledOutput("left", colours.yellow)
  50.   sleep(2.0)
  51.   rs.setBundledOutput("left",0)
  52.   sleep(2.0)
  53.   shell.run("startup")
  54.  
  55. elseif input == e then
  56.  print("Alright, getting your bread ready! Please wait! ")
  57.  rs.setBundledOutput("left",colours.orange)
  58.   sleep(2.0)
  59.   rs.setBundledOutput("left",0)
  60.   sleep(2.0)
  61.   shell.run("startup")
  62.  
  63. elseif input == f then
  64.  print("Alright, making your Cookie! :3 Please wait!")
  65.  rs.setBundledOutput("left",colours.lightGray)
  66.   sleep(2.0)
  67.   rs.setBundledOutput("left",0)
  68.   sleep(2.0)
  69.   shell.run("startup")
  70.  
  71. elseif input == g then
  72.  print("Alright, getting your apple! Please wait!")
  73.  rs.setBundledOutput("left",colours.white)
  74.   sleep(2.0)
  75.   rs.setBundledOutput("left",0)
  76.   sleep(2.0)
  77.   shell.run("startup")
  78.  
  79. elseif input == h then
  80.  print("Alright, making your Baked Potato! Please wait!")
  81.  rs.setBundledOutput("left",colours.red)
  82.   sleep(2.0)
  83.   rs.setBundledOutput("left",0)
  84.   sleep(2.0)
  85.   shell.run("startup")
  86.  
  87. elseif input == i then
  88.  print("Alright, making your Cake! Please wait!")
  89.  rs.setBundledOutput("left",colours.purple)
  90.   sleep(2.0)
  91.   rs.setBundledOutput("left",0)
  92.   sleep(2.0)
  93.   shell.run("startup")
  94.  
  95. elseif input == j then
  96.  print("Alright, making your Pumpkin Pie! Please wait!")
  97.  rs.setBundledOutput("left",colours.black)
  98.   sleep(2.0)
  99.   rs.setBundledOutput("left",0)
  100.   sleep(2.0)
  101.   shell.run("startup")
  102.  
  103. else
  104. print("Sorry what?")
  105. sleep(3.0)
  106. shell.run("tester")
  107. end
Advertisement
Add Comment
Please, Sign In to add comment