Advertisement
Der_TJ

BlackTec Script Raum 5

Sep 11th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.85 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 wbJ8TTFe")
  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 Falsche."
  15. local F2 = "Versuche es doch gleich noch einmal"
  16.  
  17. -- Text
  18. textutils.slowPrint("Hast du dir alles gut angesehen?",25)
  19. --textutils.slowPrint(" ",25)
  20. --textutils.slowPrint(" ",25)
  21. --textutils.slowPrint(" ",25)
  22. print(" ")
  23. -- Frage
  24. textutils.slowPrint("Dann nenne mir ein von den beiden",25)
  25. textutils.slowPrint("Hilfreichen Items.",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 == ("crescent hammer") 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. if Password == ("cable anchor") then
  54.  term.clear()
  55.  term.setCursorPos(1,1)
  56.  term.setTextColor( colors.green )
  57.  textutils.slowPrint(R1,25)
  58.  term.setTextColor( colors.red )
  59.  textutils.slowPrint(R2,25)
  60.  rs.setOutput("left", true)
  61.  sleep(3)
  62.  rs.setBundledOutput("bottom", colors.red, true)
  63.  sleep(0.5)
  64.  os.reboot()
  65. else
  66.  
  67. --if Password == (" ") then
  68. -- term.clear()
  69. -- term.setCursorPos(1,1)
  70. -- term.setTextColor( colors.green )
  71. -- textutils.slowPrint(R1,25)
  72. -- term.setTextColor( colors.red )
  73. -- textutils.slowPrint(R2,25)
  74. -- rs.setOutput("left", true)
  75. -- sleep(3)
  76. -- rs.setBundledOutput("bottom", colors.red, true)
  77. -- sleep(0.5)
  78. -- os.reboot()
  79. --else
  80.  
  81. --if Password == (" ") then
  82. -- term.clear()
  83. -- term.setCursorPos(1,1)
  84. -- term.setTextColor( colors.green )
  85. -- textutils.slowPrint(R1,25)
  86. -- term.setTextColor( colors.red )
  87. -- textutils.slowPrint(R2,25)
  88. -- rs.setOutput("left", true)
  89. -- sleep(3)
  90. -- rs.setBundledOutput("bottom", colors.red, true)
  91. -- sleep(0.5)
  92. -- os.reboot()
  93. --else
  94.  
  95. --if Password == (" ") then
  96. -- term.clear()
  97. -- term.setCursorPos(1,1)
  98. -- term.setTextColor( colors.green )
  99. -- textutils.slowPrint(R1,25)
  100. -- term.setTextColor( colors.red )
  101. -- textutils.slowPrint(R2,25)
  102. -- rs.setOutput("left", true)
  103. -- sleep(3)
  104. -- rs.setBundledOutput("bottom", colors.red, true)
  105. -- sleep(0.5)
  106. -- os.reboot()
  107. --else
  108.  
  109.  
  110.  
  111.  
  112. --Falche Antwort
  113.  term.clear()
  114.  term.setCursorPos(1,1)
  115.  term.setTextColor( colors.red )
  116.  textutils.slowPrint(F1,25)
  117.  textutils.slowPrint(F2,25)
  118.  redstone.setOutput("right", true)
  119.  sleep(3)
  120.  os.reboot()
  121.  
  122. --Jeden Antwort muss beendet werden mit end
  123. end
  124. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement