Advertisement
konadeluxe

Grief Remote Computer Alpha0.1.4

Sep 21st, 2015
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.16 KB | None | 0 0
  1. term.clear()
  2.  
  3. rednet.open("top")
  4. print ("Hallo")
  5. print ("Was soll ich Tuhn?")
  6. write("Befehl:")
  7. x = io.read()
  8.  
  9. ----------------------------------------------
  10. --Hoch
  11. if x == "w" then
  12. rednet.broadcast("w")
  13. end
  14. --Runter
  15. if x == "s" then
  16. rednet.broadcast("s")
  17. end
  18. --Rechts Drehen
  19. if x == "e" then
  20. rednet.broadcast("e")
  21. end
  22. --Rechts Drehen 2x
  23. if x == "e1" then
  24. rednet.broadcast("e1")
  25. end
  26. --Links Drehen
  27. if x == "q" then
  28. rednet.broadcast("q")
  29. end
  30. --Links Drehen 2x
  31. if x == "q1" then
  32. rednet.broadcast("q1")
  33. end
  34. --Vor Gehen
  35. if x == "d" then
  36. rednet.broadcast("d")
  37. end
  38. --Zurück Gehen
  39. if x == "a" then
  40. rednet.broadcast("a")
  41. end
  42. ----------------------------------------------
  43. --Saugen Vorne
  44. if x == "sv" then
  45. rednet.broadcast("sv")
  46. end
  47.  
  48. --Saugen Oben
  49. if x == "so" then
  50. rednet.broadcast("so")
  51. end
  52.  
  53. --Saugen Unten
  54. if x == "su" then
  55. rednet.broadcast("su")
  56. end
  57. ----------------------------------------------
  58. --Dump
  59. if x == "dump" then
  60. rednet.broadcast("dump")
  61. end
  62.  
  63. --Dump Oben
  64. if x == "dumpoben" then
  65. rednet.broadcast("dumpOben")
  66. end
  67.  
  68. --Dump Unten
  69. if x == "dumpunten" then
  70. rednet.broadcast("dumpUnten")
  71. end
  72.  
  73. shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement