SHARE
TWEET

SimSoft 2.1 (English) - SappSLoeschen

Simlor_GER Feb 26th, 2016 (edited) 400 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Alle Rechte an SimSoft 2.1 sind "SimlorLP" (oder in Minecraft auch nur "Simlor") vorbehalten.
  2. BC(128)
  3. TC(1)
  4. Clear()
  5. BC(32768)
  6.  
  7. print("                                                   ")
  8. print("                                                   ")
  9. print("                                                   ")
  10.  
  11. CP(15,2)
  12. print("SimSoft 2.1 - Delete SappS")
  13.  
  14. CP(2,18)
  15. BC(128)
  16. TC(1)
  17. print("Desktop")
  18.  
  19.  
  20. --Auflistung
  21.  
  22. TC(1)
  23.  
  24. function SappSL(name,pos)
  25.  
  26.  if pos == "1.0" then
  27.   CP(2,6)
  28.   BC(256)
  29.   print("               ")
  30.   CP(3,6)
  31.   print(name)
  32.  elseif pos == "2.0" then
  33.   CP(2,7)
  34.   BC(128)
  35.   print("               ")
  36.   CP(3,7)
  37.   print(name)
  38.  elseif pos == "3.0" then
  39.   CP(2,8)
  40.   BC(256)
  41.   print("               ")
  42.   CP(3,8)
  43.   print(name)
  44.  elseif pos == "4.0" then
  45.   CP(2,9)
  46.   BC(128)
  47.   print("               ")
  48.   CP(3,9)
  49.   print(name)
  50.  elseif pos == "5.0" then
  51.   CP(2,10)
  52.   BC(256)
  53.   print("               ")
  54.   CP(3,10)
  55.   print(name)
  56.  elseif pos == "6.0" then
  57.   CP(2,11)
  58.   BC(128)
  59.   print("               ")
  60.   CP(3,11)
  61.   print(name)
  62.  elseif pos == "7.0" then
  63.   CP(2,12)
  64.   BC(256)
  65.   print("               ")
  66.   CP(3,12)
  67.   print(name)
  68.  elseif pos == "8.0" then
  69.   CP(2,13)
  70.   BC(128)
  71.   print("               ")
  72.   CP(3,13)
  73.   print(name)
  74.  elseif pos == "9.0" then
  75.   CP(2,14)
  76.   BC(256)
  77.   print("               ")
  78.   CP(3,14)
  79.   print(name)
  80.  elseif pos == "10.0" then
  81.   CP(2,15)
  82.   BC(128)
  83.   print("               ")
  84.   CP(3,15)
  85.   print(name)
  86.  elseif pos == "11.0" then
  87.   CP(2,16)
  88.   BC(256)
  89.   print("               ")
  90.   CP(3,16)
  91.   print(name)
  92.  elseif pos == "12.0" then
  93.   CP(20,6)
  94.   BC(128)
  95.   print("               ")
  96.   CP(21,6)
  97.   print(name)
  98.  elseif pos == "13.0" then
  99.   CP(20,7)
  100.   BC(256)
  101.   print("               ")
  102.   CP(21,7)
  103.   print(name)
  104.  elseif pos == "14.0" then
  105.   CP(20,8)
  106.   BC(128)
  107.   print("               ")
  108.   CP(21,8)
  109.   print(name)
  110.  elseif pos == "15.0" then
  111.   CP(20,9)
  112.   BC(256)
  113.   print("               ")
  114.   CP(21,9)
  115.   print(name)
  116.  end
  117. end
  118.  
  119.  
  120.  
  121.  
  122. file = fs.open("SimSoft/Daten/SappS/A","r")
  123. local fileData = {}
  124. local line = file.readLine()
  125. repeat
  126. table.insert(fileData,line)
  127. line = file.readLine()
  128. until line == nil
  129. file.close()
  130.  
  131. sc = fileData[1]
  132.  
  133. sc = (sc+1)
  134. sc = (sc-1)
  135.  
  136. if sc >= 16 then
  137.  sc = 15
  138. elseif sc <= -1 then
  139.  sc = 0
  140. end
  141.  
  142. if sc == 0 then
  143.  shell.run("")
  144. else
  145.  
  146.  anz = 0
  147.  
  148.  while true do
  149.  
  150.   anz = (anz+1)
  151.  
  152.   file = fs.open("SimSoft/Daten/SappS/"..anz,"r")
  153.   local fileData = {}
  154.   local line = file.readLine()
  155.   repeat
  156.   table.insert(fileData,line)
  157.   line = file.readLine()
  158.   until line == nil
  159.   file.close()
  160.  
  161.   a = fileData[1]
  162.   b = fileData[2]
  163.  
  164.   SappSL(a,b)
  165.  
  166.   if anz == sc then
  167.    break
  168.   end
  169.  end
  170. end
  171.  
  172. --Touch
  173.  
  174. while true do
  175.  
  176.  file = fs.open("SimSoft/Daten/SappS/A","r")
  177.  local fileData = {}
  178.  local line = file.readLine()
  179.  repeat
  180.  table.insert(fileData,line)
  181.  line = file.readLine()
  182.  until line == nil
  183.  file.close()
  184.  
  185.  sc = fileData[1]
  186.  
  187.  sc = (sc+1)
  188.  sc = (sc-1)
  189.  
  190.  if sc >= 16 then
  191.   sc = 15
  192.  end
  193.  
  194.  event,side,x,y = os.pullEvent()
  195.  if event == "mouse_click" then
  196.    
  197.    
  198.    -- 1
  199.    
  200.   if x >= 2 and x <= 16 and y == 6 then
  201.    
  202.    n = 1
  203.  
  204.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  205.    local fileData = {}
  206.    local line = file.readLine()
  207.    repeat
  208.    table.insert(fileData,line)
  209.    line = file.readLine()
  210.    until line == nil
  211.    file.close()
  212.    ver = fileData[6]
  213.    if ver == "false" then
  214.     shell.run("")
  215.    else
  216.     shell.run("delete SimSoft/SappS/"..ver)
  217.    
  218.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  219.     file.close()
  220.    
  221.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  222.     file.writeLine()
  223.     file.close()
  224.    
  225.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  226.     file.writeLine()
  227.     file.close()
  228.    
  229.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  230.     file.writeLine()
  231.     file.close()
  232.    
  233.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  234.     file.writeLine()
  235.     file.close()
  236.    
  237.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  238.     file.writeLine("n")
  239.     file.close()
  240.    
  241.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  242.     file.writeLine("false")
  243.     file.close()
  244.    
  245.     sc = (sc-1)
  246.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  247.     file.writeLine(sc)
  248.     file.close()
  249.    
  250.     --Schieben im Falls das x sc nicht letzte Nr war.
  251.    
  252.     sc = (sc+1)
  253.    
  254.     if n == sc then
  255.      shell.run("")
  256.     else
  257.    
  258.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  259.      local fileData = {}
  260.      local line = file.readLine()
  261.      repeat
  262.      table.insert(fileData,line)
  263.      line = file.readLine()
  264.      until line == nil
  265.      file.close()
  266.      
  267.      a = fileData[1]
  268.      b = n
  269.      c = fileData[3]
  270.      d = fileData[4]
  271.      e = fileData[5]
  272.      f = fileData[6]
  273.      
  274.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  275.      file.close()
  276.    
  277.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  278.      file.writeLine()
  279.      file.close()
  280.    
  281.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  282.      file.writeLine()
  283.      file.close()
  284.    
  285.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  286.      file.writeLine()
  287.      file.close()
  288.    
  289.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  290.      file.writeLine()
  291.      file.close()
  292.    
  293.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  294.      file.writeLine("n")
  295.      file.close()
  296.    
  297.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  298.      file.writeLine("false")
  299.      file.close()
  300.      
  301.      
  302.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  303.      file.close()
  304.    
  305.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  306.      file.writeLine(a)
  307.      file.close()
  308.    
  309.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  310.      file.writeLine(b)
  311.      file.close()
  312.    
  313.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  314.      file.writeLine(c)
  315.      file.close()
  316.    
  317.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  318.      file.writeLine(d)
  319.      file.close()
  320.    
  321.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  322.      file.writeLine(e)
  323.      file.close()
  324.    
  325.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  326.      file.writeLine(f)
  327.      file.close()
  328.     end
  329.     shell.run("SimSoft/System/Desktop")
  330.     break
  331.    end
  332.    
  333.   -- 2
  334.  
  335.   elseif x >= 2 and x <= 16 and y == 7 then
  336.    
  337.    n = 2
  338.  
  339.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  340.    local fileData = {}
  341.    local line = file.readLine()
  342.    repeat
  343.    table.insert(fileData,line)
  344.    line = file.readLine()
  345.    until line == nil
  346.    file.close()
  347.    ver = fileData[6]
  348.    if ver == "false" then
  349.     shell.run("")
  350.    else
  351.     shell.run("delete SimSoft/SappS/"..ver)
  352.    
  353.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  354.     file.close()
  355.    
  356.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  357.     file.writeLine()
  358.     file.close()
  359.    
  360.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  361.     file.writeLine()
  362.     file.close()
  363.    
  364.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  365.     file.writeLine()
  366.     file.close()
  367.    
  368.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  369.     file.writeLine()
  370.     file.close()
  371.    
  372.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  373.     file.writeLine("n")
  374.     file.close()
  375.    
  376.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  377.     file.writeLine("false")
  378.     file.close()
  379.    
  380.     sc = (sc-1)
  381.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  382.     file.writeLine(sc)
  383.     file.close()
  384.    
  385.     --Schieben im Falls das x sc nicht letzte Nr war.
  386.    
  387.     sc = (sc+1)
  388.    
  389.     if n == sc then
  390.      shell.run("")
  391.     else
  392.    
  393.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  394.      local fileData = {}
  395.      local line = file.readLine()
  396.      repeat
  397.      table.insert(fileData,line)
  398.      line = file.readLine()
  399.      until line == nil
  400.      file.close()
  401.      
  402.      a = fileData[1]
  403.      b = n
  404.      c = fileData[3]
  405.      d = fileData[4]
  406.      e = fileData[5]
  407.      f = fileData[6]
  408.      
  409.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  410.      file.close()
  411.    
  412.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  413.      file.writeLine()
  414.      file.close()
  415.    
  416.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  417.      file.writeLine()
  418.      file.close()
  419.    
  420.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  421.      file.writeLine()
  422.      file.close()
  423.    
  424.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  425.      file.writeLine()
  426.      file.close()
  427.    
  428.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  429.      file.writeLine("n")
  430.      file.close()
  431.    
  432.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  433.      file.writeLine("false")
  434.      file.close()
  435.      
  436.      
  437.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  438.      file.close()
  439.    
  440.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  441.      file.writeLine(a)
  442.      file.close()
  443.    
  444.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  445.      file.writeLine(b)
  446.      file.close()
  447.    
  448.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  449.      file.writeLine(c)
  450.      file.close()
  451.    
  452.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  453.      file.writeLine(d)
  454.      file.close()
  455.    
  456.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  457.      file.writeLine(e)
  458.      file.close()
  459.    
  460.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  461.      file.writeLine(f)
  462.      file.close()
  463.     end
  464.     shell.run("SimSoft/System/Desktop")
  465.     break
  466.    end
  467.  
  468.   -- 3
  469.  
  470.   elseif x >= 2 and x <= 16 and y == 8 then
  471.    
  472.    n = 3
  473.  
  474.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  475.    local fileData = {}
  476.    local line = file.readLine()
  477.    repeat
  478.    table.insert(fileData,line)
  479.    line = file.readLine()
  480.    until line == nil
  481.    file.close()
  482.    ver = fileData[6]
  483.    if ver == "false" then
  484.     shell.run("")
  485.    else
  486.     shell.run("delete SimSoft/SappS/"..ver)
  487.    
  488.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  489.     file.close()
  490.    
  491.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  492.     file.writeLine()
  493.     file.close()
  494.    
  495.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  496.     file.writeLine()
  497.     file.close()
  498.    
  499.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  500.     file.writeLine()
  501.     file.close()
  502.    
  503.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  504.     file.writeLine()
  505.     file.close()
  506.    
  507.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  508.     file.writeLine("n")
  509.     file.close()
  510.    
  511.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  512.     file.writeLine("false")
  513.     file.close()
  514.    
  515.     sc = (sc-1)
  516.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  517.     file.writeLine(sc)
  518.     file.close()
  519.    
  520.     --Schieben im Falls das x sc nicht letzte Nr war.
  521.    
  522.     sc = (sc+1)
  523.    
  524.     if n == sc then
  525.      shell.run("")
  526.     else
  527.    
  528.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  529.      local fileData = {}
  530.      local line = file.readLine()
  531.      repeat
  532.      table.insert(fileData,line)
  533.      line = file.readLine()
  534.      until line == nil
  535.      file.close()
  536.      
  537.      a = fileData[1]
  538.      b = n
  539.      c = fileData[3]
  540.      d = fileData[4]
  541.      e = fileData[5]
  542.      f = fileData[6]
  543.      
  544.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  545.      file.close()
  546.    
  547.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  548.      file.writeLine()
  549.      file.close()
  550.    
  551.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  552.      file.writeLine()
  553.      file.close()
  554.    
  555.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  556.      file.writeLine()
  557.      file.close()
  558.    
  559.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  560.      file.writeLine()
  561.      file.close()
  562.    
  563.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  564.      file.writeLine("n")
  565.      file.close()
  566.    
  567.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  568.      file.writeLine("false")
  569.      file.close()
  570.      
  571.      
  572.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  573.      file.close()
  574.    
  575.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  576.      file.writeLine(a)
  577.      file.close()
  578.    
  579.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  580.      file.writeLine(b)
  581.      file.close()
  582.    
  583.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  584.      file.writeLine(c)
  585.      file.close()
  586.    
  587.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  588.      file.writeLine(d)
  589.      file.close()
  590.    
  591.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  592.      file.writeLine(e)
  593.      file.close()
  594.    
  595.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  596.      file.writeLine(f)
  597.      file.close()
  598.     end
  599.     shell.run("SimSoft/System/Desktop")
  600.     break
  601.    end
  602.  
  603.   -- 4
  604.  
  605.   elseif x >= 2 and x <= 16 and y == 9 then
  606.    
  607.    n = 4
  608.  
  609.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  610.    local fileData = {}
  611.    local line = file.readLine()
  612.    repeat
  613.    table.insert(fileData,line)
  614.    line = file.readLine()
  615.    until line == nil
  616.    file.close()
  617.    ver = fileData[6]
  618.    if ver == "false" then
  619.     shell.run("")
  620.    else
  621.     shell.run("delete SimSoft/SappS/"..ver)
  622.    
  623.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  624.     file.close()
  625.    
  626.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  627.     file.writeLine()
  628.     file.close()
  629.    
  630.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  631.     file.writeLine()
  632.     file.close()
  633.    
  634.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  635.     file.writeLine()
  636.     file.close()
  637.    
  638.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  639.     file.writeLine()
  640.     file.close()
  641.    
  642.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  643.     file.writeLine("n")
  644.     file.close()
  645.    
  646.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  647.     file.writeLine("false")
  648.     file.close()
  649.    
  650.     sc = (sc-1)
  651.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  652.     file.writeLine(sc)
  653.     file.close()
  654.    
  655.     --Schieben im Falls das x sc nicht letzte Nr war.
  656.    
  657.     sc = (sc+1)
  658.    
  659.     if n == sc then
  660.      shell.run("")
  661.     else
  662.    
  663.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  664.      local fileData = {}
  665.      local line = file.readLine()
  666.      repeat
  667.      table.insert(fileData,line)
  668.      line = file.readLine()
  669.      until line == nil
  670.      file.close()
  671.      
  672.      a = fileData[1]
  673.      b = n
  674.      c = fileData[3]
  675.      d = fileData[4]
  676.      e = fileData[5]
  677.      f = fileData[6]
  678.      
  679.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  680.      file.close()
  681.    
  682.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  683.      file.writeLine()
  684.      file.close()
  685.    
  686.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  687.      file.writeLine()
  688.      file.close()
  689.    
  690.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  691.      file.writeLine()
  692.      file.close()
  693.    
  694.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  695.      file.writeLine()
  696.      file.close()
  697.    
  698.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  699.      file.writeLine("n")
  700.      file.close()
  701.    
  702.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  703.      file.writeLine("false")
  704.      file.close()
  705.      
  706.      
  707.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  708.      file.close()
  709.    
  710.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  711.      file.writeLine(a)
  712.      file.close()
  713.    
  714.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  715.      file.writeLine(b)
  716.      file.close()
  717.    
  718.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  719.      file.writeLine(c)
  720.      file.close()
  721.    
  722.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  723.      file.writeLine(d)
  724.      file.close()
  725.    
  726.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  727.      file.writeLine(e)
  728.      file.close()
  729.    
  730.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  731.      file.writeLine(f)
  732.      file.close()
  733.     end
  734.     shell.run("SimSoft/System/Desktop")
  735.     break
  736.    end
  737.  
  738.    -- 5
  739.    
  740.    elseif x >= 2 and x <= 16 and y == 10 then
  741.    
  742.    n = 5
  743.  
  744.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  745.    local fileData = {}
  746.    local line = file.readLine()
  747.    repeat
  748.    table.insert(fileData,line)
  749.    line = file.readLine()
  750.    until line == nil
  751.    file.close()
  752.    ver = fileData[6]
  753.    if ver == "false" then
  754.     shell.run("")
  755.    else
  756.     shell.run("delete SimSoft/SappS/"..ver)
  757.    
  758.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  759.     file.close()
  760.    
  761.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  762.     file.writeLine()
  763.     file.close()
  764.    
  765.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  766.     file.writeLine()
  767.     file.close()
  768.    
  769.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  770.     file.writeLine()
  771.     file.close()
  772.    
  773.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  774.     file.writeLine()
  775.     file.close()
  776.    
  777.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  778.     file.writeLine("n")
  779.     file.close()
  780.    
  781.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  782.     file.writeLine("false")
  783.     file.close()
  784.    
  785.     sc = (sc-1)
  786.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  787.     file.writeLine(sc)
  788.     file.close()
  789.    
  790.     --Schieben im Falls das x sc nicht letzte Nr war.
  791.    
  792.     sc = (sc+1)
  793.    
  794.     if n == sc then
  795.      shell.run("")
  796.     else
  797.    
  798.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  799.      local fileData = {}
  800.      local line = file.readLine()
  801.      repeat
  802.      table.insert(fileData,line)
  803.      line = file.readLine()
  804.      until line == nil
  805.      file.close()
  806.      
  807.      a = fileData[1]
  808.      b = n
  809.      c = fileData[3]
  810.      d = fileData[4]
  811.      e = fileData[5]
  812.      f = fileData[6]
  813.      
  814.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  815.      file.close()
  816.    
  817.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  818.      file.writeLine()
  819.      file.close()
  820.    
  821.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  822.      file.writeLine()
  823.      file.close()
  824.    
  825.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  826.      file.writeLine()
  827.      file.close()
  828.    
  829.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  830.      file.writeLine()
  831.      file.close()
  832.    
  833.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  834.      file.writeLine("n")
  835.      file.close()
  836.    
  837.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  838.      file.writeLine("false")
  839.      file.close()
  840.      
  841.      
  842.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  843.      file.close()
  844.    
  845.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  846.      file.writeLine(a)
  847.      file.close()
  848.    
  849.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  850.      file.writeLine(b)
  851.      file.close()
  852.    
  853.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  854.      file.writeLine(c)
  855.      file.close()
  856.    
  857.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  858.      file.writeLine(d)
  859.      file.close()
  860.    
  861.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  862.      file.writeLine(e)
  863.      file.close()
  864.    
  865.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  866.      file.writeLine(f)
  867.      file.close()
  868.     end
  869.     shell.run("SimSoft/System/Desktop")
  870.     break
  871.    end
  872.    
  873.    -- 6
  874.    
  875.    elseif x >= 2 and x <= 16 and y == 11 then
  876.    
  877.    n = 6
  878.  
  879.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  880.    local fileData = {}
  881.    local line = file.readLine()
  882.    repeat
  883.    table.insert(fileData,line)
  884.    line = file.readLine()
  885.    until line == nil
  886.    file.close()
  887.    ver = fileData[6]
  888.    if ver == "false" then
  889.     shell.run("")
  890.    else
  891.     shell.run("delete SimSoft/SappS/"..ver)
  892.    
  893.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  894.     file.close()
  895.    
  896.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  897.     file.writeLine()
  898.     file.close()
  899.    
  900.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  901.     file.writeLine()
  902.     file.close()
  903.    
  904.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  905.     file.writeLine()
  906.     file.close()
  907.    
  908.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  909.     file.writeLine()
  910.     file.close()
  911.    
  912.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  913.     file.writeLine("n")
  914.     file.close()
  915.    
  916.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  917.     file.writeLine("false")
  918.     file.close()
  919.    
  920.     sc = (sc-1)
  921.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  922.     file.writeLine(sc)
  923.     file.close()
  924.    
  925.     --Schieben im Falls das x sc nicht letzte Nr war.
  926.    
  927.     sc = (sc+1)
  928.    
  929.     if n == sc then
  930.      shell.run("")
  931.     else
  932.    
  933.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  934.      local fileData = {}
  935.      local line = file.readLine()
  936.      repeat
  937.      table.insert(fileData,line)
  938.      line = file.readLine()
  939.      until line == nil
  940.      file.close()
  941.      
  942.      a = fileData[1]
  943.      b = n
  944.      c = fileData[3]
  945.      d = fileData[4]
  946.      e = fileData[5]
  947.      f = fileData[6]
  948.      
  949.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  950.      file.close()
  951.    
  952.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  953.      file.writeLine()
  954.      file.close()
  955.    
  956.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  957.      file.writeLine()
  958.      file.close()
  959.    
  960.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  961.      file.writeLine()
  962.      file.close()
  963.    
  964.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  965.      file.writeLine()
  966.      file.close()
  967.    
  968.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  969.      file.writeLine("n")
  970.      file.close()
  971.    
  972.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  973.      file.writeLine("false")
  974.      file.close()
  975.      
  976.      
  977.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  978.      file.close()
  979.    
  980.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  981.      file.writeLine(a)
  982.      file.close()
  983.    
  984.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  985.      file.writeLine(b)
  986.      file.close()
  987.    
  988.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  989.      file.writeLine(c)
  990.      file.close()
  991.    
  992.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  993.      file.writeLine(d)
  994.      file.close()
  995.    
  996.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  997.      file.writeLine(e)
  998.      file.close()
  999.    
  1000.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1001.      file.writeLine(f)
  1002.      file.close()
  1003.     end
  1004.     shell.run("SimSoft/System/Desktop")
  1005.     break
  1006.    end
  1007.  
  1008.    -- 7
  1009.    
  1010.    elseif x >= 2 and x <= 16 and y == 12 then
  1011.    
  1012.    n = 7
  1013.  
  1014.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  1015.    local fileData = {}
  1016.    local line = file.readLine()
  1017.    repeat
  1018.    table.insert(fileData,line)
  1019.    line = file.readLine()
  1020.    until line == nil
  1021.    file.close()
  1022.    ver = fileData[6]
  1023.    if ver == "false" then
  1024.     shell.run("")
  1025.    else
  1026.     shell.run("delete SimSoft/SappS/"..ver)
  1027.    
  1028.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1029.     file.close()
  1030.    
  1031.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1032.     file.writeLine()
  1033.     file.close()
  1034.    
  1035.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1036.     file.writeLine()
  1037.     file.close()
  1038.    
  1039.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1040.     file.writeLine()
  1041.     file.close()
  1042.    
  1043.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1044.     file.writeLine()
  1045.     file.close()
  1046.    
  1047.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1048.     file.writeLine("n")
  1049.     file.close()
  1050.    
  1051.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1052.     file.writeLine("false")
  1053.     file.close()
  1054.    
  1055.     sc = (sc-1)
  1056.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  1057.     file.writeLine(sc)
  1058.     file.close()
  1059.    
  1060.     --Schieben im Falls das x sc nicht letzte Nr war.
  1061.    
  1062.     sc = (sc+1)
  1063.    
  1064.     if n == sc then
  1065.      shell.run("")
  1066.     else
  1067.    
  1068.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  1069.      local fileData = {}
  1070.      local line = file.readLine()
  1071.      repeat
  1072.      table.insert(fileData,line)
  1073.      line = file.readLine()
  1074.      until line == nil
  1075.      file.close()
  1076.      
  1077.      a = fileData[1]
  1078.      b = n
  1079.      c = fileData[3]
  1080.      d = fileData[4]
  1081.      e = fileData[5]
  1082.      f = fileData[6]
  1083.      
  1084.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  1085.      file.close()
  1086.    
  1087.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1088.      file.writeLine()
  1089.      file.close()
  1090.    
  1091.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1092.      file.writeLine()
  1093.      file.close()
  1094.    
  1095.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1096.      file.writeLine()
  1097.      file.close()
  1098.    
  1099.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1100.      file.writeLine()
  1101.      file.close()
  1102.    
  1103.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1104.      file.writeLine("n")
  1105.      file.close()
  1106.    
  1107.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1108.      file.writeLine("false")
  1109.      file.close()
  1110.      
  1111.      
  1112.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1113.      file.close()
  1114.    
  1115.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1116.      file.writeLine(a)
  1117.      file.close()
  1118.    
  1119.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1120.      file.writeLine(b)
  1121.      file.close()
  1122.    
  1123.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1124.      file.writeLine(c)
  1125.      file.close()
  1126.    
  1127.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1128.      file.writeLine(d)
  1129.      file.close()
  1130.    
  1131.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1132.      file.writeLine(e)
  1133.      file.close()
  1134.    
  1135.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1136.      file.writeLine(f)
  1137.      file.close()
  1138.     end
  1139.     shell.run("SimSoft/System/Desktop")
  1140.     break
  1141.    end
  1142.    
  1143.    -- 8
  1144.    
  1145.    elseif x >= 2 and x <= 16 and y == 13 then
  1146.    
  1147.    n = 8
  1148.  
  1149.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  1150.    local fileData = {}
  1151.    local line = file.readLine()
  1152.    repeat
  1153.    table.insert(fileData,line)
  1154.    line = file.readLine()
  1155.    until line == nil
  1156.    file.close()
  1157.    ver = fileData[6]
  1158.    if ver == "false" then
  1159.     shell.run("")
  1160.    else
  1161.     shell.run("delete SimSoft/SappS/"..ver)
  1162.    
  1163.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1164.     file.close()
  1165.    
  1166.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1167.     file.writeLine()
  1168.     file.close()
  1169.    
  1170.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1171.     file.writeLine()
  1172.     file.close()
  1173.    
  1174.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1175.     file.writeLine()
  1176.     file.close()
  1177.    
  1178.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1179.     file.writeLine()
  1180.     file.close()
  1181.    
  1182.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1183.     file.writeLine("n")
  1184.     file.close()
  1185.    
  1186.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1187.     file.writeLine("false")
  1188.     file.close()
  1189.    
  1190.     sc = (sc-1)
  1191.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  1192.     file.writeLine(sc)
  1193.     file.close()
  1194.    
  1195.     --Schieben im Falls das x sc nicht letzte Nr war.
  1196.    
  1197.     sc = (sc+1)
  1198.    
  1199.     if n == sc then
  1200.      shell.run("")
  1201.     else
  1202.    
  1203.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  1204.      local fileData = {}
  1205.      local line = file.readLine()
  1206.      repeat
  1207.      table.insert(fileData,line)
  1208.      line = file.readLine()
  1209.      until line == nil
  1210.      file.close()
  1211.      
  1212.      a = fileData[1]
  1213.      b = n
  1214.      c = fileData[3]
  1215.      d = fileData[4]
  1216.      e = fileData[5]
  1217.      f = fileData[6]
  1218.      
  1219.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  1220.      file.close()
  1221.    
  1222.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1223.      file.writeLine()
  1224.      file.close()
  1225.    
  1226.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1227.      file.writeLine()
  1228.      file.close()
  1229.    
  1230.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1231.      file.writeLine()
  1232.      file.close()
  1233.    
  1234.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1235.      file.writeLine()
  1236.      file.close()
  1237.    
  1238.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1239.      file.writeLine("n")
  1240.      file.close()
  1241.    
  1242.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1243.      file.writeLine("false")
  1244.      file.close()
  1245.      
  1246.      
  1247.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1248.      file.close()
  1249.    
  1250.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1251.      file.writeLine(a)
  1252.      file.close()
  1253.    
  1254.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1255.      file.writeLine(b)
  1256.      file.close()
  1257.    
  1258.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1259.      file.writeLine(c)
  1260.      file.close()
  1261.    
  1262.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1263.      file.writeLine(d)
  1264.      file.close()
  1265.    
  1266.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1267.      file.writeLine(e)
  1268.      file.close()
  1269.    
  1270.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1271.      file.writeLine(f)
  1272.      file.close()
  1273.     end
  1274.     shell.run("SimSoft/System/Desktop")
  1275.     break
  1276.    end
  1277.    
  1278.    -- 9
  1279.    
  1280.    elseif x >= 2 and x <= 16 and y == 14 then
  1281.    
  1282.    n = 9
  1283.  
  1284.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  1285.    local fileData = {}
  1286.    local line = file.readLine()
  1287.    repeat
  1288.    table.insert(fileData,line)
  1289.    line = file.readLine()
  1290.    until line == nil
  1291.    file.close()
  1292.    ver = fileData[6]
  1293.    if ver == "false" then
  1294.     shell.run("")
  1295.    else
  1296.     shell.run("delete SimSoft/SappS/"..ver)
  1297.    
  1298.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1299.     file.close()
  1300.    
  1301.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1302.     file.writeLine()
  1303.     file.close()
  1304.    
  1305.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1306.     file.writeLine()
  1307.     file.close()
  1308.    
  1309.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1310.     file.writeLine()
  1311.     file.close()
  1312.    
  1313.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1314.     file.writeLine()
  1315.     file.close()
  1316.    
  1317.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1318.     file.writeLine("n")
  1319.     file.close()
  1320.    
  1321.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1322.     file.writeLine("false")
  1323.     file.close()
  1324.    
  1325.     sc = (sc-1)
  1326.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  1327.     file.writeLine(sc)
  1328.     file.close()
  1329.    
  1330.     --Schieben im Falls das x sc nicht letzte Nr war.
  1331.    
  1332.     sc = (sc+1)
  1333.    
  1334.     if n == sc then
  1335.      shell.run("")
  1336.     else
  1337.    
  1338.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  1339.      local fileData = {}
  1340.      local line = file.readLine()
  1341.      repeat
  1342.      table.insert(fileData,line)
  1343.      line = file.readLine()
  1344.      until line == nil
  1345.      file.close()
  1346.      
  1347.      a = fileData[1]
  1348.      b = n
  1349.      c = fileData[3]
  1350.      d = fileData[4]
  1351.      e = fileData[5]
  1352.      f = fileData[6]
  1353.      
  1354.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  1355.      file.close()
  1356.    
  1357.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1358.      file.writeLine()
  1359.      file.close()
  1360.    
  1361.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1362.      file.writeLine()
  1363.      file.close()
  1364.    
  1365.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1366.      file.writeLine()
  1367.      file.close()
  1368.    
  1369.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1370.      file.writeLine()
  1371.      file.close()
  1372.    
  1373.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1374.      file.writeLine("n")
  1375.      file.close()
  1376.    
  1377.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1378.      file.writeLine("false")
  1379.      file.close()
  1380.      
  1381.      
  1382.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1383.      file.close()
  1384.    
  1385.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1386.      file.writeLine(a)
  1387.      file.close()
  1388.    
  1389.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1390.      file.writeLine(b)
  1391.      file.close()
  1392.    
  1393.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1394.      file.writeLine(c)
  1395.      file.close()
  1396.    
  1397.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1398.      file.writeLine(d)
  1399.      file.close()
  1400.    
  1401.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1402.      file.writeLine(e)
  1403.      file.close()
  1404.    
  1405.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1406.      file.writeLine(f)
  1407.      file.close()
  1408.     end
  1409.     shell.run("SimSoft/System/Desktop")
  1410.     break
  1411.    end
  1412.    
  1413.    -- 10
  1414.    
  1415.    elseif x >= 2 and x <= 16 and y == 15 then
  1416.    
  1417.    n = 10
  1418.  
  1419.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  1420.    local fileData = {}
  1421.    local line = file.readLine()
  1422.    repeat
  1423.    table.insert(fileData,line)
  1424.    line = file.readLine()
  1425.    until line == nil
  1426.    file.close()
  1427.    ver = fileData[6]
  1428.    if ver == "false" then
  1429.     shell.run("")
  1430.    else
  1431.     shell.run("delete SimSoft/SappS/"..ver)
  1432.    
  1433.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1434.     file.close()
  1435.    
  1436.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1437.     file.writeLine()
  1438.     file.close()
  1439.    
  1440.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1441.     file.writeLine()
  1442.     file.close()
  1443.    
  1444.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1445.     file.writeLine()
  1446.     file.close()
  1447.    
  1448.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1449.     file.writeLine()
  1450.     file.close()
  1451.    
  1452.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1453.     file.writeLine("n")
  1454.     file.close()
  1455.    
  1456.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1457.     file.writeLine("false")
  1458.     file.close()
  1459.    
  1460.     sc = (sc-1)
  1461.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  1462.     file.writeLine(sc)
  1463.     file.close()
  1464.    
  1465.     --Schieben im Falls das x sc nicht letzte Nr war.
  1466.    
  1467.     sc = (sc+1)
  1468.    
  1469.     if n == sc then
  1470.      shell.run("")
  1471.     else
  1472.    
  1473.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  1474.      local fileData = {}
  1475.      local line = file.readLine()
  1476.      repeat
  1477.      table.insert(fileData,line)
  1478.      line = file.readLine()
  1479.      until line == nil
  1480.      file.close()
  1481.      
  1482.      a = fileData[1]
  1483.      b = n
  1484.      c = fileData[3]
  1485.      d = fileData[4]
  1486.      e = fileData[5]
  1487.      f = fileData[6]
  1488.      
  1489.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  1490.      file.close()
  1491.    
  1492.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1493.      file.writeLine()
  1494.      file.close()
  1495.    
  1496.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1497.      file.writeLine()
  1498.      file.close()
  1499.    
  1500.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1501.      file.writeLine()
  1502.      file.close()
  1503.    
  1504.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1505.      file.writeLine()
  1506.      file.close()
  1507.    
  1508.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1509.      file.writeLine("n")
  1510.      file.close()
  1511.    
  1512.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1513.      file.writeLine("false")
  1514.      file.close()
  1515.      
  1516.      
  1517.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1518.      file.close()
  1519.    
  1520.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1521.      file.writeLine(a)
  1522.      file.close()
  1523.    
  1524.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1525.      file.writeLine(b)
  1526.      file.close()
  1527.    
  1528.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1529.      file.writeLine(c)
  1530.      file.close()
  1531.    
  1532.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1533.      file.writeLine(d)
  1534.      file.close()
  1535.    
  1536.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1537.      file.writeLine(e)
  1538.      file.close()
  1539.    
  1540.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1541.      file.writeLine(f)
  1542.      file.close()
  1543.     end
  1544.     shell.run("SimSoft/System/Desktop")
  1545.     break
  1546.    end
  1547.    
  1548.    -- 11
  1549.    
  1550.    elseif x >= 2 and x <= 16 and y == 16 then
  1551.    
  1552.    n = 11
  1553.  
  1554.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  1555.    local fileData = {}
  1556.    local line = file.readLine()
  1557.    repeat
  1558.    table.insert(fileData,line)
  1559.    line = file.readLine()
  1560.    until line == nil
  1561.    file.close()
  1562.    ver = fileData[6]
  1563.    if ver == "false" then
  1564.     shell.run("")
  1565.    else
  1566.     shell.run("delete SimSoft/SappS/"..ver)
  1567.    
  1568.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1569.     file.close()
  1570.    
  1571.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1572.     file.writeLine()
  1573.     file.close()
  1574.    
  1575.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1576.     file.writeLine()
  1577.     file.close()
  1578.    
  1579.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1580.     file.writeLine()
  1581.     file.close()
  1582.    
  1583.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1584.     file.writeLine()
  1585.     file.close()
  1586.    
  1587.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1588.     file.writeLine("n")
  1589.     file.close()
  1590.    
  1591.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1592.     file.writeLine("false")
  1593.     file.close()
  1594.    
  1595.     sc = (sc-1)
  1596.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  1597.     file.writeLine(sc)
  1598.     file.close()
  1599.    
  1600.     --Schieben im Falls das x sc nicht letzte Nr war.
  1601.    
  1602.     sc = (sc+1)
  1603.    
  1604.     if n == sc then
  1605.      shell.run("")
  1606.     else
  1607.    
  1608.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  1609.      local fileData = {}
  1610.      local line = file.readLine()
  1611.      repeat
  1612.      table.insert(fileData,line)
  1613.      line = file.readLine()
  1614.      until line == nil
  1615.      file.close()
  1616.      
  1617.      a = fileData[1]
  1618.      b = n
  1619.      c = fileData[3]
  1620.      d = fileData[4]
  1621.      e = fileData[5]
  1622.      f = fileData[6]
  1623.      
  1624.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  1625.      file.close()
  1626.    
  1627.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1628.      file.writeLine()
  1629.      file.close()
  1630.    
  1631.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1632.      file.writeLine()
  1633.      file.close()
  1634.    
  1635.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1636.      file.writeLine()
  1637.      file.close()
  1638.    
  1639.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1640.      file.writeLine()
  1641.      file.close()
  1642.    
  1643.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1644.      file.writeLine("n")
  1645.      file.close()
  1646.    
  1647.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1648.      file.writeLine("false")
  1649.      file.close()
  1650.      
  1651.      
  1652.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1653.      file.close()
  1654.    
  1655.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1656.      file.writeLine(a)
  1657.      file.close()
  1658.    
  1659.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1660.      file.writeLine(b)
  1661.      file.close()
  1662.    
  1663.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1664.      file.writeLine(c)
  1665.      file.close()
  1666.    
  1667.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1668.      file.writeLine(d)
  1669.      file.close()
  1670.    
  1671.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1672.      file.writeLine(e)
  1673.      file.close()
  1674.    
  1675.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1676.      file.writeLine(f)
  1677.      file.close()
  1678.     end
  1679.     shell.run("SimSoft/System/Desktop")
  1680.     break
  1681.    end
  1682.    
  1683.    -- 12
  1684.    
  1685.    elseif x >= 20 and x <= 34 and y == 6 then
  1686.    
  1687.    n = 12
  1688.  
  1689.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  1690.    local fileData = {}
  1691.    local line = file.readLine()
  1692.    repeat
  1693.    table.insert(fileData,line)
  1694.    line = file.readLine()
  1695.    until line == nil
  1696.    file.close()
  1697.    ver = fileData[6]
  1698.    if ver == "false" then
  1699.     shell.run("")
  1700.    else
  1701.     shell.run("delete SimSoft/SappS/"..ver)
  1702.    
  1703.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1704.     file.close()
  1705.    
  1706.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1707.     file.writeLine()
  1708.     file.close()
  1709.    
  1710.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1711.     file.writeLine()
  1712.     file.close()
  1713.    
  1714.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1715.     file.writeLine()
  1716.     file.close()
  1717.    
  1718.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1719.     file.writeLine()
  1720.     file.close()
  1721.    
  1722.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1723.     file.writeLine("n")
  1724.     file.close()
  1725.    
  1726.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1727.     file.writeLine("false")
  1728.     file.close()
  1729.    
  1730.     sc = (sc-1)
  1731.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  1732.     file.writeLine(sc)
  1733.     file.close()
  1734.    
  1735.     --Schieben im Falls das x sc nicht letzte Nr war.
  1736.    
  1737.     sc = (sc+1)
  1738.    
  1739.     if n == sc then
  1740.      shell.run("")
  1741.     else
  1742.    
  1743.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  1744.      local fileData = {}
  1745.      local line = file.readLine()
  1746.      repeat
  1747.      table.insert(fileData,line)
  1748.      line = file.readLine()
  1749.      until line == nil
  1750.      file.close()
  1751.      
  1752.      a = fileData[1]
  1753.      b = n
  1754.      c = fileData[3]
  1755.      d = fileData[4]
  1756.      e = fileData[5]
  1757.      f = fileData[6]
  1758.      
  1759.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  1760.      file.close()
  1761.    
  1762.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1763.      file.writeLine()
  1764.      file.close()
  1765.    
  1766.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1767.      file.writeLine()
  1768.      file.close()
  1769.    
  1770.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1771.      file.writeLine()
  1772.      file.close()
  1773.    
  1774.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1775.      file.writeLine()
  1776.      file.close()
  1777.    
  1778.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1779.      file.writeLine("n")
  1780.      file.close()
  1781.    
  1782.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1783.      file.writeLine("false")
  1784.      file.close()
  1785.      
  1786.      
  1787.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1788.      file.close()
  1789.    
  1790.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1791.      file.writeLine(a)
  1792.      file.close()
  1793.    
  1794.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1795.      file.writeLine(b)
  1796.      file.close()
  1797.    
  1798.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1799.      file.writeLine(c)
  1800.      file.close()
  1801.    
  1802.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1803.      file.writeLine(d)
  1804.      file.close()
  1805.    
  1806.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1807.      file.writeLine(e)
  1808.      file.close()
  1809.    
  1810.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1811.      file.writeLine(f)
  1812.      file.close()
  1813.     end
  1814.     shell.run("SimSoft/System/Desktop")
  1815.     break
  1816.    end
  1817.    
  1818.    -- 13
  1819.    
  1820.    elseif x >= 20 and x <= 34 and y == 7 then
  1821.    
  1822.    n = 13
  1823.  
  1824.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  1825.    local fileData = {}
  1826.    local line = file.readLine()
  1827.    repeat
  1828.    table.insert(fileData,line)
  1829.    line = file.readLine()
  1830.    until line == nil
  1831.    file.close()
  1832.    ver = fileData[6]
  1833.    if ver == "false" then
  1834.     shell.run("")
  1835.    else
  1836.     shell.run("delete SimSoft/SappS/"..ver)
  1837.    
  1838.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1839.     file.close()
  1840.    
  1841.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1842.     file.writeLine()
  1843.     file.close()
  1844.    
  1845.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1846.     file.writeLine()
  1847.     file.close()
  1848.    
  1849.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1850.     file.writeLine()
  1851.     file.close()
  1852.    
  1853.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1854.     file.writeLine()
  1855.     file.close()
  1856.    
  1857.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1858.     file.writeLine("n")
  1859.     file.close()
  1860.    
  1861.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1862.     file.writeLine("false")
  1863.     file.close()
  1864.    
  1865.     sc = (sc-1)
  1866.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  1867.     file.writeLine(sc)
  1868.     file.close()
  1869.    
  1870.     --Schieben im Falls das x sc nicht letzte Nr war.
  1871.    
  1872.     sc = (sc+1)
  1873.    
  1874.     if n == sc then
  1875.      shell.run("")
  1876.     else
  1877.    
  1878.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  1879.      local fileData = {}
  1880.      local line = file.readLine()
  1881.      repeat
  1882.      table.insert(fileData,line)
  1883.      line = file.readLine()
  1884.      until line == nil
  1885.      file.close()
  1886.      
  1887.      a = fileData[1]
  1888.      b = n
  1889.      c = fileData[3]
  1890.      d = fileData[4]
  1891.      e = fileData[5]
  1892.      f = fileData[6]
  1893.      
  1894.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  1895.      file.close()
  1896.    
  1897.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1898.      file.writeLine()
  1899.      file.close()
  1900.    
  1901.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1902.      file.writeLine()
  1903.      file.close()
  1904.    
  1905.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1906.      file.writeLine()
  1907.      file.close()
  1908.    
  1909.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1910.      file.writeLine()
  1911.      file.close()
  1912.    
  1913.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1914.      file.writeLine("n")
  1915.      file.close()
  1916.    
  1917.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  1918.      file.writeLine("false")
  1919.      file.close()
  1920.      
  1921.      
  1922.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1923.      file.close()
  1924.    
  1925.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1926.      file.writeLine(a)
  1927.      file.close()
  1928.    
  1929.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1930.      file.writeLine(b)
  1931.      file.close()
  1932.    
  1933.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1934.      file.writeLine(c)
  1935.      file.close()
  1936.    
  1937.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1938.      file.writeLine(d)
  1939.      file.close()
  1940.    
  1941.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1942.      file.writeLine(e)
  1943.      file.close()
  1944.    
  1945.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1946.      file.writeLine(f)
  1947.      file.close()
  1948.     end
  1949.     shell.run("SimSoft/System/Desktop")
  1950.     break
  1951.    end
  1952.    
  1953.    -- 14
  1954.    
  1955.    elseif x >= 20 and x <= 34 and y == 8 then
  1956.    
  1957.    n = 14
  1958.  
  1959.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  1960.    local fileData = {}
  1961.    local line = file.readLine()
  1962.    repeat
  1963.    table.insert(fileData,line)
  1964.    line = file.readLine()
  1965.    until line == nil
  1966.    file.close()
  1967.    ver = fileData[6]
  1968.    if ver == "false" then
  1969.     shell.run("")
  1970.    else
  1971.     shell.run("delete SimSoft/SappS/"..ver)
  1972.    
  1973.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  1974.     file.close()
  1975.    
  1976.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1977.     file.writeLine()
  1978.     file.close()
  1979.    
  1980.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1981.     file.writeLine()
  1982.     file.close()
  1983.    
  1984.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1985.     file.writeLine()
  1986.     file.close()
  1987.    
  1988.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1989.     file.writeLine()
  1990.     file.close()
  1991.    
  1992.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1993.     file.writeLine("n")
  1994.     file.close()
  1995.    
  1996.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  1997.     file.writeLine("false")
  1998.     file.close()
  1999.    
  2000.     sc = (sc-1)
  2001.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  2002.     file.writeLine(sc)
  2003.     file.close()
  2004.    
  2005.     --Schieben im Falls das x sc nicht letzte Nr war.
  2006.    
  2007.     sc = (sc+1)
  2008.    
  2009.     if n == sc then
  2010.      shell.run("")
  2011.     else
  2012.    
  2013.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  2014.      local fileData = {}
  2015.      local line = file.readLine()
  2016.      repeat
  2017.      table.insert(fileData,line)
  2018.      line = file.readLine()
  2019.      until line == nil
  2020.      file.close()
  2021.      
  2022.      a = fileData[1]
  2023.      b = n
  2024.      c = fileData[3]
  2025.      d = fileData[4]
  2026.      e = fileData[5]
  2027.      f = fileData[6]
  2028.      
  2029.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  2030.      file.close()
  2031.    
  2032.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2033.      file.writeLine()
  2034.      file.close()
  2035.    
  2036.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2037.      file.writeLine()
  2038.      file.close()
  2039.    
  2040.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2041.      file.writeLine()
  2042.      file.close()
  2043.    
  2044.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2045.      file.writeLine()
  2046.      file.close()
  2047.    
  2048.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2049.      file.writeLine("n")
  2050.      file.close()
  2051.    
  2052.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2053.      file.writeLine("false")
  2054.      file.close()
  2055.      
  2056.      
  2057.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  2058.      file.close()
  2059.    
  2060.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2061.      file.writeLine(a)
  2062.      file.close()
  2063.    
  2064.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2065.      file.writeLine(b)
  2066.      file.close()
  2067.    
  2068.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2069.      file.writeLine(c)
  2070.      file.close()
  2071.    
  2072.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2073.      file.writeLine(d)
  2074.      file.close()
  2075.    
  2076.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2077.      file.writeLine(e)
  2078.      file.close()
  2079.    
  2080.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2081.      file.writeLine(f)
  2082.      file.close()
  2083.     end
  2084.     shell.run("SimSoft/System/Desktop")
  2085.     break
  2086.    end
  2087.    
  2088.    -- 15
  2089.    
  2090.    elseif x >= 20 and x <= 34 and y == 9 then
  2091.    
  2092.    n = 15
  2093.  
  2094.    file = fs.open("SimSoft/Daten/SappS/"..n,"r")
  2095.    local fileData = {}
  2096.    local line = file.readLine()
  2097.    repeat
  2098.    table.insert(fileData,line)
  2099.    line = file.readLine()
  2100.    until line == nil
  2101.    file.close()
  2102.    ver = fileData[6]
  2103.    if ver == "false" then
  2104.     shell.run("")
  2105.    else
  2106.     shell.run("delete SimSoft/SappS/"..ver)
  2107.    
  2108.     local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  2109.     file.close()
  2110.    
  2111.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2112.     file.writeLine()
  2113.     file.close()
  2114.    
  2115.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2116.     file.writeLine()
  2117.     file.close()
  2118.    
  2119.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2120.     file.writeLine()
  2121.     file.close()
  2122.    
  2123.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2124.     file.writeLine()
  2125.     file.close()
  2126.    
  2127.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2128.     file.writeLine("n")
  2129.     file.close()
  2130.    
  2131.     local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2132.     file.writeLine("false")
  2133.     file.close()
  2134.    
  2135.     sc = (sc-1)
  2136.     local file = fs.open("SimSoft/Daten/SappS/A","w")
  2137.     file.writeLine(sc)
  2138.     file.close()
  2139.    
  2140.     --Schieben im Falls das x sc nicht letzte Nr war.
  2141.    
  2142.     sc = (sc+1)
  2143.    
  2144.     if n == sc then
  2145.      shell.run("")
  2146.     else
  2147.    
  2148.      file = fs.open("SimSoft/Daten/SappS/"..sc,"r")
  2149.      local fileData = {}
  2150.      local line = file.readLine()
  2151.      repeat
  2152.      table.insert(fileData,line)
  2153.      line = file.readLine()
  2154.      until line == nil
  2155.      file.close()
  2156.      
  2157.      a = fileData[1]
  2158.      b = n
  2159.      c = fileData[3]
  2160.      d = fileData[4]
  2161.      e = fileData[5]
  2162.      f = fileData[6]
  2163.      
  2164.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"w")
  2165.      file.close()
  2166.    
  2167.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2168.      file.writeLine()
  2169.      file.close()
  2170.    
  2171.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2172.      file.writeLine()
  2173.      file.close()
  2174.    
  2175.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2176.      file.writeLine()
  2177.      file.close()
  2178.    
  2179.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2180.      file.writeLine()
  2181.      file.close()
  2182.    
  2183.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2184.      file.writeLine("n")
  2185.      file.close()
  2186.    
  2187.      local file = fs.open("SimSoft/Daten/SappS/"..sc,"a")
  2188.      file.writeLine("false")
  2189.      file.close()
  2190.      
  2191.      
  2192.      local file = fs.open("SimSoft/Daten/SappS/"..n,"w")
  2193.      file.close()
  2194.    
  2195.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2196.      file.writeLine(a)
  2197.      file.close()
  2198.    
  2199.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2200.      file.writeLine(b)
  2201.      file.close()
  2202.    
  2203.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2204.      file.writeLine(c)
  2205.      file.close()
  2206.    
  2207.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2208.      file.writeLine(d)
  2209.      file.close()
  2210.    
  2211.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2212.      file.writeLine(e)
  2213.      file.close()
  2214.    
  2215.      local file = fs.open("SimSoft/Daten/SappS/"..n,"a")
  2216.      file.writeLine(f)
  2217.      file.close()
  2218.     end
  2219.     shell.run("SimSoft/System/Desktop")
  2220.     break
  2221.    end
  2222.  
  2223.    
  2224.   elseif x >= 2 and x <= 12 and y == 18 then
  2225.    shell.run("SimSoft/System/Desktop")
  2226.    break
  2227.    
  2228.   end
  2229.  end
  2230. end
  2231.  
  2232.  
  2233. --Ende
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