Advertisement
Der_TJ

BlackTec Script Raum 2

Sep 10th, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.52 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 dJQqGimD")
  8. --shell.run("pastebin run mkujZpuF")
  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 Falsche."
  15. local F2 = "Versuche es doch gleich noch einmal"
  16.  
  17. -- Text
  18. textutils.slowPrint("In denn Regeln ist ein Wort",25)
  19. textutils.slowPrint("das nicht in den Kontext passt.",25)
  20. --textutils.slowPrint(" ",25)
  21. --textutils.slowPrint(" ",25)
  22. print(" ")
  23. -- Frage
  24. textutils.slowPrint("Wie lautet das Word?",25)
  25. --textutils.slowPrint(" ",25)
  26. --textutils.slowPrint(" ",25)
  27. --textutils.slowPrint(" ",25)
  28. print(" ")
  29.  
  30. Password = read()
  31.  
  32. print(" ")
  33.  
  34. -- hebelt Gross-/Kleinschreibung aus.
  35. Password = Password:lower()
  36.  
  37. --Richtige Antworter
  38.  
  39. if Password == ("saustall") then
  40.  term.clear()
  41.  term.setCursorPos(1,1)
  42.  term.setTextColor( colors.green )
  43.  textutils.slowPrint(R1,25)
  44.  term.setTextColor( colors.red )
  45.  textutils.slowPrint(R2,25)
  46.  rs.setOutput("left", true)
  47.  sleep(3)
  48.  rs.setBundledOutput("bottom", colors.red, true)
  49.  sleep(0.5)
  50.  os.reboot()
  51. else
  52.  
  53. --Falche Antwort
  54.  term.clear()
  55.  term.setCursorPos(1,1)
  56.  term.setTextColor( colors.red )
  57.  textutils.slowPrint(F1,25)
  58.  textutils.slowPrint(F2,25)
  59.  redstone.setOutput("right", true)
  60.  sleep(3)
  61.  os.reboot()
  62.  
  63. --Jeden Antwort muss beendet werden mit end
  64. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement