Advertisement
TrueVirusTV

instructions_cctweaked_df4_offline_final

Oct 10th, 2022 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.78 KB | Gaming | 0 0
  1. local mon = peripheral.find("monitor")
  2. mon.clear()
  3. mon.setTextScale(2)
  4. print("")
  5. print("Startup-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.     mon.setTextColor(colors.orange)
  29.     local title = "!! Achtung !!"
  30.     local len = string.len(title)
  31.     mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
  32.     mon.write(title)
  33.    
  34.     mon.setTextColor(colors.white)
  35.     local lines = require "cc.strings".wrap(" Aktuell ist leider kein Mitarbeiter für Sie verfügbar.", 40)
  36.     for i = 1, #lines do
  37.         local len = string.len(lines[i])
  38.         mon.setCursorPos((mon.getSize() -len+1) / 2, i+3)
  39.         mon.write(lines[i])
  40.     end
  41.    
  42.     local title = "Das tut uns Leid!"
  43.     local len = string.len(title)
  44.     mon.setCursorPos((mon.getSize() -len+1) / 2, 6)
  45.     mon.write(title)
  46.    
  47.     local lines = require "cc.strings".wrap("Dennoch können Sie den Service der Virus Industries in Anspruch nehmen!", 40)
  48.     for i = 1, #lines do
  49.         local len = string.len(lines[i])
  50.         mon.setCursorPos((mon.getSize() -len+1) / 2, i+6)
  51.         mon.write(lines[i])
  52.     end
  53.    
  54.     os.sleep(10)
  55.    
  56.    
  57. -- ZWEITER ABSCHNITT --
  58.     mon.clear()
  59.  
  60.     local lines = require "cc.strings".wrap("Sie möchten den Service der Virus Industries trotzdem in Anspruch nehmen?", 40)
  61.     for i = 1, #lines do
  62.         local len = string.len(lines[i])
  63.         mon.setCursorPos((mon.getSize() -len+1) / 2, i+1)
  64.         mon.write(lines[i])
  65.     end
  66.  
  67.     local lines = require "cc.strings".wrap("Dann folgen Sie den nachfolgenden Schritten!", 40)
  68.     for i = 1, #lines do
  69.         local len = string.len(lines[i])
  70.         mon.setCursorPos((mon.getSize() -len+1) / 2, i+5)
  71.         mon.write(lines[i])
  72.     end
  73.  
  74.     os.sleep(6)
  75.    
  76.    
  77. -- DRITTER ABSCHNITT --
  78.     mon.clear()
  79.     local title = "Schritt 1"
  80.     local len = string.len(title)
  81.     mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
  82.     mon.write(title)
  83.    
  84.    
  85.     local lines = require "cc.strings".wrap("Wenn Sie etwas bestellen möchten, drücken Sie auf den Knopf RECHTS von Ihnen.", 40)
  86.     for i = 1, #lines do
  87.         local len = string.len(lines[i])
  88.         mon.setCursorPos(1, i+3)
  89.         mon.write(lines[i])
  90.     end
  91.    
  92.     local lines = require "cc.strings".wrap("Sie erhalten ein Buch.", 40)
  93.     for i = 1, #lines do
  94.         local len = string.len(lines[i])
  95.         mon.setCursorPos(1, i+7)
  96.         mon.write(lines[i])
  97.     end
  98.    
  99.     os.sleep(10)
  100.    
  101.    
  102. -- VIERTER ABSCHNITT --
  103.     mon.clear()
  104.     local title = "Schritt 2"
  105.     local len = string.len(title)
  106.     mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
  107.     mon.write(title)
  108.    
  109.    
  110.     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)
  111.     for i = 1, #lines do
  112.         local len = string.len(lines[i])
  113.         mon.setCursorPos(1, i+3)
  114.         mon.write(lines[i])
  115.     end
  116.    
  117.     os.sleep(10)
  118.    
  119.    
  120. -- FÜNFTER ABSCHNITT --
  121.     mon.clear()
  122.     local title = "Schritt 3"
  123.     local len = string.len(title)
  124.     mon.setCursorPos((mon.getSize() -len+1) / 2, 2)
  125.     mon.write(title)
  126.    
  127.    
  128.     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)
  129.     for i = 1, #lines do
  130.         local len = string.len(lines[i])
  131.         mon.setCursorPos(1, i+3)
  132.         mon.write(lines[i])
  133.     end
  134.    
  135.     os.sleep(10)
  136.    
  137.  
  138. -- OUTRO --
  139.     mon.clear()
  140.  
  141.     local str1 = "Wir Danken Ihnen"
  142.     local str2 = "für Ihre Mitarbeit"
  143.     local str3 = "und Ihr Vertrauen in die"
  144.     local str4 = "Virus Industries"
  145.    
  146.     local len1 = string.len(str1)
  147.     local len2 = string.len(str2)
  148.     local len3 = string.len(str3)
  149.     local len4 = string.len(str4)
  150.    
  151.     mon.setCursorPos((mon.getSize() - len1+1) / 2, 2)
  152.     mon.write(str1)
  153.     mon.setCursorPos((mon.getSize() - len2+1) / 2, 3)
  154.     mon.write(str2)
  155.     mon.setCursorPos((mon.getSize() - len3+1) / 2, 4)
  156.     mon.write(str3)
  157.     mon.setCursorPos((mon.getSize() - len4+1) / 2, 7)
  158.     mon.write(str4)
  159.    
  160.     os.sleep(5)
  161.    
  162. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement