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("Online-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()
- local lines = require "cc.strings".wrap("Sie möchten den Service der Virus Industries in Anspruch nehmen?", 39)
- 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!", 39)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos((mon.getSize() -len+1) / 2, i+4)
- mon.write(lines[i])
- end
- os.sleep(6)
- -- ZWEITER 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("Haben Sie einen Termin bei uns? Dann nehmen Sie gerne im Wartebereich Platz. Ihr Mitarbeiter wird sie gleich bedienen!", 39)
- 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("Wenn Sie keinen Termin haben, klingeln Sie mit dem Schalter links!", 39)
- for i = 1, #lines do
- local len = string.len(lines[i])
- mon.setCursorPos(1, i+7)
- mon.write(lines[i])
- end
- os.sleep(10)
- -- DRITTER 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("Wenn Sie etwas bestellen möchten, nennen Sie uns bitte genau welche Ware Sie in welchem Umfang benötigen!", 39)
- 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("Nur so können wir Ihnen das geben was sie benötigen!", 39)
- 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 3"
- local len = string.len(title)
- mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
- mon.write(title)
- local lines = require "cc.strings".wrap("Fällt Ihre Bestellung klein aus, können wir Sie sehr gerne gleich hier Vor Ort bedienen. Benötigen Sie eine größere Menge einer Ware, können wir es Ihnen in einer bequemen Tasche mitgeben oder auch liefern.", 39)
- 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 4"
- local len = string.len(title)
- mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
- mon.write(title)
- local lines = require "cc.strings".wrap("Sollte der angeforderte Artikel NICHT verfügbar sein, werden wir Ihre Bestellung aufnehmen und innerhalb des nächsten Werktages liefern, oder Sie können die Ware zu einem festgelegten Termin abholen.", 39)
- 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