SHARE
TWEET

SimSoft 3 - LiveSystem

Simlor_GER Mar 29th, 2016 (edited) 208 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --SappS werden auf "LiveSystem" geprueft
  2.  
  3. anz = 1
  4.  
  5. if anz == 1 then
  6.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  7.  local fileData = {}
  8.  local line = file.readLine()
  9.  repeat
  10.  table.insert(fileData,line)
  11.  line = file.readLine()
  12.  until line == nil
  13.  file.close()
  14.  
  15.  ausgabe = fileData[7]
  16.  LiveLink1 = fileData[8]
  17.  
  18.  if ausgabe == "t" then
  19.   function LIVE1()
  20.    shell.run("SimSoft/SappS/"..LiveLink1)
  21.   end
  22.  else
  23.   function LIVE1()
  24.    shell.run("")
  25.   end
  26.  end
  27. end
  28.  
  29. if anz == 2 then
  30.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  31.  local fileData = {}
  32.  local line = file.readLine()
  33.  repeat
  34.  table.insert(fileData,line)
  35.  line = file.readLine()
  36.  until line == nil
  37.  file.close()
  38.  
  39.  ausgabe = fileData[7]
  40.  LiveLink2 = fileData[8]
  41.  
  42.  if ausgabe == "t" then
  43.   function LIVE2()
  44.    shell.run("SimSoft/SappS/"..LiveLink2)
  45.   end
  46.  else
  47.   function LIVE2()
  48.    shell.run("")
  49.   end
  50.  end
  51. end
  52.  
  53. if anz == 3 then
  54.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  55.  local fileData = {}
  56.  local line = file.readLine()
  57.  repeat
  58.  table.insert(fileData,line)
  59.  line = file.readLine()
  60.  until line == nil
  61.  file.close()
  62.  
  63.  ausgabe = fileData[7]
  64.  LiveLink3 = fileData[8]
  65.  
  66.  if ausgabe == "t" then
  67.   function LIVE3()
  68.    shell.run("SimSoft/SappS/"..LiveLink3)
  69.   end
  70.  else
  71.   function LIVE3()
  72.    shell.run("")
  73.   end
  74.  end
  75. end
  76.  
  77. if anz == 4 then
  78.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  79.  local fileData = {}
  80.  local line = file.readLine()
  81.  repeat
  82.  table.insert(fileData,line)
  83.  line = file.readLine()
  84.  until line == nil
  85.  file.close()
  86.  
  87.  ausgabe = fileData[7]
  88.  LiveLink4 = fileData[8]
  89.  
  90.  if ausgabe == "t" then
  91.   function LIVE4()
  92.    shell.run("SimSoft/SappS/"..LiveLink4)
  93.   end
  94.  else
  95.   function LIVE4()
  96.    shell.run("")
  97.   end
  98.  end
  99. end
  100.  
  101. if anz == 5 then
  102.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  103.  local fileData = {}
  104.  local line = file.readLine()
  105.  repeat
  106.  table.insert(fileData,line)
  107.  line = file.readLine()
  108.  until line == nil
  109.  file.close()
  110.  
  111.  ausgabe = fileData[7]
  112.  LiveLink5 = fileData[8]
  113.  
  114.  if ausgabe == "t" then
  115.   function LIVE5()
  116.    shell.run("SimSoft/SappS/"..LiveLink5)
  117.   end
  118.  else
  119.   function LIVE5()
  120.    shell.run("")
  121.   end
  122.  end
  123. end
  124.  
  125. if anz == 6 then
  126.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  127.  local fileData = {}
  128.  local line = file.readLine()
  129.  repeat
  130.  table.insert(fileData,line)
  131.  line = file.readLine()
  132.  until line == nil
  133.  file.close()
  134.  
  135.  ausgabe = fileData[7]
  136.  LiveLink6 = fileData[8]
  137.  
  138.  if ausgabe == "t" then
  139.   function LIVE6()
  140.    shell.run("SimSoft/SappS/"..LiveLink6)
  141.   end
  142.  else
  143.   function LIVE6()
  144.    shell.run("")
  145.   end
  146.  end
  147. end
  148.  
  149. if anz == 7 then
  150.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  151.  local fileData = {}
  152.  local line = file.readLine()
  153.  repeat
  154.  table.insert(fileData,line)
  155.  line = file.readLine()
  156.  until line == nil
  157.  file.close()
  158.  
  159.  ausgabe = fileData[7]
  160.  LiveLink7 = fileData[8]
  161.  
  162.  if ausgabe == "t" then
  163.   function LIVE7()
  164.    shell.run("SimSoft/SappS/"..LiveLink7)
  165.   end
  166.  else
  167.   function LIVE7()
  168.    shell.run("")
  169.   end
  170.  end
  171. end
  172.  
  173. if anz == 8 then
  174.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  175.  local fileData = {}
  176.  local line = file.readLine()
  177.  repeat
  178.  table.insert(fileData,line)
  179.  line = file.readLine()
  180.  until line == nil
  181.  file.close()
  182.  
  183.  ausgabe = fileData[7]
  184.  LiveLink8 = fileData[8]
  185.  
  186.  if ausgabe == "t" then
  187.   function LIVE8()
  188.    shell.run("SimSoft/SappS/"..LiveLink8)
  189.   end
  190.  else
  191.   function LIVE8()
  192.    shell.run("")
  193.   end
  194.  end
  195. end
  196.  
  197. if anz == 9 then
  198.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  199.  local fileData = {}
  200.  local line = file.readLine()
  201.  repeat
  202.  table.insert(fileData,line)
  203.  line = file.readLine()
  204.  until line == nil
  205.  file.close()
  206.  
  207.  ausgabe = fileData[7]
  208.  LiveLink9 = fileData[8]
  209.  
  210.  if ausgabe == "t" then
  211.   function LIVE9()
  212.    shell.run("SimSoft/SappS/"..LiveLink9)
  213.   end
  214.  else
  215.   function LIVE9()
  216.    shell.run("")
  217.   end
  218.  end
  219. end
  220.  
  221. if anz == 10 then
  222.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  223.  local fileData = {}
  224.  local line = file.readLine()
  225.  repeat
  226.  table.insert(fileData,line)
  227.  line = file.readLine()
  228.  until line == nil
  229.  file.close()
  230.  
  231.  ausgabe = fileData[7]
  232.  LiveLink10 = fileData[8]
  233.  
  234.  if ausgabe == "t" then
  235.   function LIVE10()
  236.    shell.run("SimSoft/SappS/"..LiveLink10)
  237.   end
  238.  else
  239.   function LIVE10()
  240.    shell.run("")
  241.   end
  242.  end
  243. end
  244.  
  245. if anz == 11 then
  246.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  247.  local fileData = {}
  248.  local line = file.readLine()
  249.  repeat
  250.  table.insert(fileData,line)
  251.  line = file.readLine()
  252.  until line == nil
  253.  file.close()
  254.  
  255.  ausgabe = fileData[7]
  256.  LiveLink11 = fileData[8]
  257.  
  258.  if ausgabe == "t" then
  259.   function LIVE11()
  260.    shell.run("SimSoft/SappS/"..LiveLink11)
  261.   end
  262.  else
  263.   function LIVE11()
  264.    shell.run("")
  265.   end
  266.  end
  267. end
  268.  
  269. if anz == 12 then
  270.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  271.  local fileData = {}
  272.  local line = file.readLine()
  273.  repeat
  274.  table.insert(fileData,line)
  275.  line = file.readLine()
  276.  until line == nil
  277.  file.close()
  278.  
  279.  ausgabe = fileData[7]
  280.  LiveLink12 = fileData[8]
  281.  
  282.  if ausgabe == "t" then
  283.   function LIVE12()
  284.    shell.run("SimSoft/SappS/"..LiveLink12)
  285.   end
  286.  else
  287.   function LIVE12()
  288.    shell.run("")
  289.   end
  290.  end
  291. end
  292.  
  293. if anz == 13 then
  294.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  295.  local fileData = {}
  296.  local line = file.readLine()
  297.  repeat
  298.  table.insert(fileData,line)
  299.  line = file.readLine()
  300.  until line == nil
  301.  file.close()
  302.  
  303.  ausgabe = fileData[7]
  304.  LiveLink13 = fileData[8]
  305.  
  306.  if ausgabe == "t" then
  307.   function LIVE13()
  308.    shell.run("SimSoft/SappS/"..LiveLink13)
  309.   end
  310.  else
  311.   function LIVE13()
  312.    shell.run("")
  313.   end
  314.  end
  315. end
  316.  
  317. if anz == 14 then
  318.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  319.  local fileData = {}
  320.  local line = file.readLine()
  321.  repeat
  322.  table.insert(fileData,line)
  323.  line = file.readLine()
  324.  until line == nil
  325.  file.close()
  326.  
  327.  ausgabe = fileData[7]
  328.  LiveLink14 = fileData[8]
  329.  
  330.  if ausgabe == "t" then
  331.   function LIVE14()
  332.    shell.run("SimSoft/SappS/"..LiveLink14)
  333.   end
  334.  else
  335.   function LIVE14()
  336.    shell.run("")
  337.   end
  338.  end
  339. end
  340.  
  341. if anz == 15 then
  342.  file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  343.  local fileData = {}
  344.  local line = file.readLine()
  345.  repeat
  346.  table.insert(fileData,line)
  347.  line = file.readLine()
  348.  until line == nil
  349.  file.close()
  350.  
  351.  ausgabe = fileData[7]
  352.  LiveLink15 = fileData[8]
  353.  
  354.  if ausgabe == "t" then
  355.   function LIVE15()
  356.    shell.run("SimSoft/SappS/"..LiveLink15)
  357.   end
  358.  else
  359.   function LIVE15()
  360.    shell.run("")
  361.   end
  362.  end
  363. end
  364.  
  365. parallel.waitForAll(LIVE1, LIVE2, LIVE3, LIVE4, LIVE5, LIVE6, LIVE7, LIVE8, LIVE9, LIVE10, LIVE11, LIVE12, LIVE13, LIVE14, LIVE15)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top