Advertisement
TrueVirusTV

instructions_cctweaked_df4_online_final

Oct 10th, 2022 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.58 KB | Gaming | 0 0
  1. local mon = peripheral.find("monitor")
  2. mon.clear()
  3. mon.setTextScale(2)
  4. print("")
  5. print("Online-Script wird ausgeführt!")
  6. print("Keine Eingaben bis zur manuellen Terminierung möglich!")
  7. print("...")
  8.  
  9. while true do
  10. --INTRO--
  11.     mon.clear()
  12.     local str1 = "Welcome to"
  13.     local str2 = "Virus Industries"
  14.    
  15.     local len1 = string.len(str1)
  16.     local len2 = string.len(str2)
  17.    
  18.     mon.setCursorPos((mon.getSize() - len1+1) / 2, 2)
  19.     mon.write(str1)
  20.     mon.setCursorPos((mon.getSize() - len2+1) / 2, 6)
  21.     mon.write(str2)
  22.  
  23.     os.sleep(5)
  24.  
  25.    
  26. -- ERSTER ABSCHNITT --
  27.     mon.clear()
  28.  
  29.     local lines = require "cc.strings".wrap("Sie möchten den Service der Virus Industries in Anspruch nehmen?", 39)
  30.     for i = 1, #lines do
  31.         local len = string.len(lines[i])
  32.         mon.setCursorPos((mon.getSize() -len+1) / 2, i+1)
  33.         mon.write(lines[i])
  34.     end
  35.  
  36.     local lines = require "cc.strings".wrap("Dann folgen Sie den nachfolgenden Schritten!", 39)
  37.     for i = 1, #lines do
  38.         local len = string.len(lines[i])
  39.         mon.setCursorPos((mon.getSize() -len+1) / 2, i+4)
  40.         mon.write(lines[i])
  41.     end
  42.  
  43.     os.sleep(6)
  44.    
  45.    
  46. -- ZWEITER ABSCHNITT --
  47.     mon.clear()
  48.     local title = "Schritt 1"
  49.     local len = string.len(title)
  50.     mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
  51.     mon.write(title)
  52.    
  53.    
  54.     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)
  55.     for i = 1, #lines do
  56.         local len = string.len(lines[i])
  57.         mon.setCursorPos(1, i+3)
  58.         mon.write(lines[i])
  59.     end
  60.    
  61.     local lines = require "cc.strings".wrap("Wenn Sie keinen Termin haben, klingeln Sie mit dem Schalter links!", 39)
  62.     for i = 1, #lines do
  63.         local len = string.len(lines[i])
  64.         mon.setCursorPos(1, i+7)
  65.         mon.write(lines[i])
  66.     end
  67.    
  68.     os.sleep(10)
  69.    
  70.    
  71. -- DRITTER ABSCHNITT --
  72.     mon.clear()
  73.     local title = "Schritt 2"
  74.     local len = string.len(title)
  75.     mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
  76.     mon.write(title)
  77.    
  78.    
  79.     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)
  80.     for i = 1, #lines do
  81.         local len = string.len(lines[i])
  82.         mon.setCursorPos(1, i+3)
  83.         mon.write(lines[i])
  84.     end
  85.    
  86.     local lines = require "cc.strings".wrap("Nur so können wir Ihnen das geben was sie benötigen!", 39)
  87.     for i = 1, #lines do
  88.         local len = string.len(lines[i])
  89.         mon.setCursorPos(1, i+7)
  90.         mon.write(lines[i])
  91.     end
  92.    
  93.     os.sleep(10)
  94.    
  95.    
  96. -- VIERTER ABSCHNITT --
  97.     mon.clear()
  98.     local title = "Schritt 3"
  99.     local len = string.len(title)
  100.     mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
  101.     mon.write(title)
  102.    
  103.    
  104.     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)
  105.     for i = 1, #lines do
  106.         local len = string.len(lines[i])
  107.         mon.setCursorPos(1, i+3)
  108.         mon.write(lines[i])
  109.     end
  110.    
  111.     os.sleep(10)
  112.    
  113.    
  114. -- FÜNFTER ABSCHNITT --
  115.     mon.clear()
  116.     local title = "Schritt 4"
  117.     local len = string.len(title)
  118.     mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
  119.     mon.write(title)
  120.    
  121.    
  122.     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)
  123.     for i = 1, #lines do
  124.         local len = string.len(lines[i])
  125.         mon.setCursorPos(1, i+3)
  126.         mon.write(lines[i])
  127.     end
  128.    
  129.     os.sleep(10)
  130.    
  131.  
  132. -- OUTRO --
  133.     mon.clear()
  134.  
  135.     local str1 = "Wir Danken Ihnen"
  136.     local str2 = "für Ihre Mitarbeit"
  137.     local str3 = "und Ihr Vertrauen in die"
  138.     local str4 = "Virus Industries"
  139.    
  140.     local len1 = string.len(str1)
  141.     local len2 = string.len(str2)
  142.     local len3 = string.len(str3)
  143.     local len4 = string.len(str4)
  144.    
  145.     mon.setCursorPos((mon.getSize() - len1+1) / 2, 2)
  146.     mon.write(str1)
  147.     mon.setCursorPos((mon.getSize() - len2+1) / 2, 3)
  148.     mon.write(str2)
  149.     mon.setCursorPos((mon.getSize() - len3+1) / 2, 4)
  150.     mon.write(str3)
  151.     mon.setCursorPos((mon.getSize() - len4+1) / 2, 7)
  152.     mon.write(str4)
  153.    
  154.     os.sleep(5)
  155.    
  156. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement