Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.find("monitor")
- mon.clear()
- mon.setTextScale(2)
- print("")
- print("Startup-Script wird ausgeführt!")
- print("Keine Eingaben bis zur manuellen Terminierung möglich!")
- print("...")
- while true do
- --INTRO--
- mon.clear()
- local str1 = "Welcome to"
- local str2 = "Virus Industries"
- local len1 = string.len(str1)
- local len2 = string.len(str2)
- mon.setCursorPos((mon.getSize() - len1+1) / 2, 2)
- mon.write(str1)
- mon.setCursorPos((mon.getSize() - len2+1) / 2, 6)
- mon.write(str2)
- os.sleep(5)
- -- ERSTER ABSCHNITT --
- mon.clear()
- mon.setTextColor(colors.orange)
- local title = "!! Achtung !!"
- local len = string.len(title)
- mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
- mon.write(title)
- mon.setTextColor(colors.white)
- local lines = require "cc.strings".wrap(" Aktuell ist leider kein Mitarbeiter für Sie verfügbar.", 40)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos((mon.getSize() -len+1) / 2, i+3)
- mon.write(lines[i])
- end
- local title = "Das tut uns Leid!"
- local len = string.len(title)
- mon.setCursorPos((mon.getSize() -len+1) / 2, 6)
- mon.write(title)
- local lines = require "cc.strings".wrap("Dennoch können Sie den Service der Virus Industries in Anspruch nehmen!", 40)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos((mon.getSize() -len+1) / 2, i+6)
- mon.write(lines[i])
- end
- os.sleep(10)
- -- ZWEITER ABSCHNITT --
- mon.clear()
- local lines = require "cc.strings".wrap("Sie möchten den Service der Virus Industries trotzdem in Anspruch nehmen?", 40)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos((mon.getSize() -len+1) / 2, i+1)
- mon.write(lines[i])
- end
- local lines = require "cc.strings".wrap("Dann folgen Sie den nachfolgenden Schritten!", 40)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos((mon.getSize() -len+1) / 2, i+5)
- mon.write(lines[i])
- end
- os.sleep(6)
- -- DRITTER ABSCHNITT --
- mon.clear()
- local title = "Schritt 1"
- local len = string.len(title)
- mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
- mon.write(title)
- local lines = require "cc.strings".wrap("Wenn Sie etwas bestellen möchten, drücken Sie auf den Knopf RECHTS von Ihnen.", 40)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos(1, i+3)
- mon.write(lines[i])
- end
- local lines = require "cc.strings".wrap("Sie erhalten ein Buch.", 40)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos(1, i+7)
- mon.write(lines[i])
- end
- os.sleep(10)
- -- VIERTER ABSCHNITT --
- mon.clear()
- local title = "Schritt 2"
- local len = string.len(title)
- mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
- mon.write(title)
- local lines = require "cc.strings".wrap("Bitte schreiben Sie genau rein, welche Ware Sie in welchem Umfang benötigen. Ebenfalls benötigen wir Ihren Namen. Wir bitten Sie, uns einen realisierbaren Wunschtermin vorzuschlagen. Nur so können wir Ihnen helfen!", 40)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos(1, i+3)
- mon.write(lines[i])
- end
- os.sleep(10)
- -- FÜNFTER ABSCHNITT --
- mon.clear()
- local title = "Schritt 3"
- local len = string.len(title)
- mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
- mon.write(title)
- local lines = require "cc.strings".wrap("Direkt RECHTS vom Schalter befindet sich eine kleine Kiste. Dort legen Sie bitte Ihr Buch mit Ihrem Anliegen rein. Vergessen Sie nicht, das Buch vorher zu Unterschreiben, damit keine nachträglichen Missverständnisse auftreten!", 40)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos(1, i+3)
- mon.write(lines[i])
- end
- os.sleep(10)
- -- OUTRO --
- mon.clear()
- local str1 = "Wir Danken Ihnen"
- local str2 = "für Ihre Mitarbeit"
- local str3 = "und Ihr Vertrauen in die"
- local str4 = "Virus Industries"
- local len1 = string.len(str1)
- local len2 = string.len(str2)
- local len3 = string.len(str3)
- local len4 = string.len(str4)
- mon.setCursorPos((mon.getSize() - len1+1) / 2, 2)
- mon.write(str1)
- mon.setCursorPos((mon.getSize() - len2+1) / 2, 3)
- mon.write(str2)
- mon.setCursorPos((mon.getSize() - len3+1) / 2, 4)
- mon.write(str3)
- mon.setCursorPos((mon.getSize() - len4+1) / 2, 7)
- mon.write(str4)
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement