SHARE
TWEET

SimSoft 3 - SappSLoeschen

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