Advertisement
Der_TJ

BlackTec Script Raum 7

Sep 21st, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.08 KB | None | 0 0
  1. --Geschrieben von Der_TJ / Der_TJ1997 / Toben Heinze
  2. --geschrieben fuer BlackTec
  3.  
  4. -- Das folgende aktiviren zum schutz. (anti Terminate)
  5. -- os.pullEvent = os.pullEventRaw
  6.  
  7. shell.run("pastebin run BHKFAFQJ")
  8.  
  9. term.clear()
  10. term.setCursorPos(1,1)
  11.  
  12. local R1 = "Das ist Richtig! Gratulation!"
  13. local R2 = "Achtung du wirst gleich Teleportiert."
  14. local F1 = "Das ist leider Falsch."
  15. local F2 = "Versuche es doch gleich noch einmal"
  16.  
  17. -- Text
  18. textutils.slowPrint("Schon F9 gedrueckt?",25)
  19. --textutils.slowPrint("",25)
  20. --textutils.slowPrint(" ",25)
  21. --textutils.slowPrint(" ",25)
  22. print(" ")
  23. -- Frage
  24. textutils.slowPrint("Hier ist ein Fehler versteckt.",25)
  25. textutils.slowPrint("Wo ist der Fehler?",25)
  26. textutils.slowPrint(" ",25)
  27. textutils.slowPrint("R: Im rechten schaufenster.",25)
  28. textutils.slowPrint("L: Im linken schaufenster",25)
  29. textutils.slowPrint(" ",25)
  30. textutils.slowPrint("Welcher Multiblock steht Falsch",25)
  31. textutils.slowPrint(" ",25)
  32. textutils.slowPrint("A: Energiespeicher.",25)
  33. textutils.slowPrint("B: Controler",25)
  34. textutils.slowPrint("C: Monitor.",25)
  35. print(" ")
  36.  
  37. Password = read()
  38.  
  39. print(" ")
  40.  
  41. -- hebelt Gross-/Kleinschreibung aus.
  42. Password = Password:lower()
  43.  
  44. --Richtige Antworter
  45.  
  46. if Password == ("la") then
  47.  term.clear()
  48.  term.setCursorPos(1,1)
  49.  term.setTextColor( colors.green )
  50.  textutils.slowPrint(R1,25)
  51.  term.setTextColor( colors.red )
  52.  textutils.slowPrint(R2,25)
  53.  rs.setOutput("left", true)
  54.  sleep(3)
  55.  rs.setBundledOutput("bottom", colors.red, true)
  56.  sleep(0.5)
  57.  os.reboot()
  58. else
  59.  
  60. if Password == ("l a") then
  61.  term.clear()
  62.  term.setCursorPos(1,1)
  63.  term.setTextColor( colors.green )
  64.  textutils.slowPrint(R1,25)
  65.  term.setTextColor( colors.red )
  66.  textutils.slowPrint(R2,25)
  67.  rs.setOutput("left", true)
  68.  sleep(3)
  69.  rs.setBundledOutput("bottom", colors.red, true)
  70.  sleep(0.5)
  71.  os.reboot()
  72. else
  73.  
  74. if Password == ("a l") then
  75.  term.clear()
  76.  term.setCursorPos(1,1)
  77.  term.setTextColor( colors.green )
  78.  textutils.slowPrint(R1,25)
  79.  term.setTextColor( colors.red )
  80.  textutils.slowPrint(R2,25)
  81.  rs.setOutput("left", true)
  82.  sleep(3)
  83.  rs.setBundledOutput("bottom", colors.red, true)
  84.  sleep(0.5)
  85.  os.reboot()
  86. else
  87.  
  88. if Password == ("al") then
  89.  term.clear()
  90.  term.setCursorPos(1,1)
  91.  term.setTextColor( colors.green )
  92.  textutils.slowPrint(R1,25)
  93.  term.setTextColor( colors.red )
  94.  textutils.slowPrint(R2,25)
  95.  rs.setOutput("left", true)
  96.  sleep(3)
  97.  rs.setBundledOutput("bottom", colors.red, true)
  98.  sleep(0.5)
  99.  os.reboot()
  100. else
  101.  
  102. --if Password == (" ") then
  103. -- term.clear()
  104. -- term.setCursorPos(1,1)
  105. -- term.setTextColor( colors.green )
  106. -- textutils.slowPrint(R1,25)
  107. -- term.setTextColor( colors.red )
  108. -- textutils.slowPrint(R2,25)
  109. -- rs.setOutput("left", true)
  110. -- sleep(3)
  111. -- rs.setBundledOutput("bottom", colors.red, true)
  112. -- sleep(0.5)
  113. -- os.reboot()
  114. --else
  115.  
  116. --Falche Antwort
  117.  term.clear()
  118.  term.setCursorPos(1,1)
  119.  term.setTextColor( colors.red )
  120.  textutils.slowPrint(F1,25)
  121.  textutils.slowPrint(F2,25)
  122.  redstone.setOutput("right", true)
  123.  sleep(3)
  124.  os.reboot()
  125.  
  126. --Jeden Antwort muss beendet werden mit end
  127. end
  128. end
  129. end
  130. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement