Plazter

Downloader

Oct 7th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. -- [Downloader Plazter's programs] --
  2. --[ MUST BE AN ADVANCED COMPUTER ]--
  3.  
  4. function display()
  5.  
  6. term.clear()
  7. term.setCursorPos(1,1)
  8. print("What program do you wish to download?")
  9. term.setTextColor(colors.red)
  10. print("a.) Platform --[Turtle program ]--")
  11. print("b.) House Builder --[Turtle program ]--")
  12. print("c.) Auto quarry placement --[Turtle program ]--")
  13. term.setTextColor(colors.white)
  14. print("d.) Keypress timer")
  15. term.setTextColor(colors.red)
  16. print("e.) Tree farm --[Turtle Program ]--")
  17. term.setTextColor(colors.white)
  18. local event, key = os.pullEvent("key")
  19.  
  20. if key == keys.a then
  21. print " I WILL NOW DOWNLOAD!"
  22. shell.run("pastebin get cYFCR6QB platform")
  23.  
  24. elseif key == keys.b then
  25. shell.run("pastebin get ThTv6i3G housebuilder")
  26. elseif key == keys.c then
  27. shell.run("pastebin get Sb8VwgwU quarry")
  28. elseif key == keys.d then
  29. shell.run("pastebin get eQwBW3mJ timer")
  30. elseif key == keys.e then
  31. shell.run("pastebin get iVSwJezC TreeFarm")
  32.  
  33. elseif not key == keys.a or keys.b or keys.c or keys.d then
  34. print("Error, wrong button")
  35. end
  36.  
  37. end
  38.  
  39. display()
Add Comment
Please, Sign In to add comment