Simlor_GER

SimSoft Yellow - UPDATE - 5.0.1

Jun 14th, 2017 (edited)
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. --SimSoft Yellow - Copyright by Simlor (http://www.computercraft.info/forums2/index.php?/user/55655-simlor/)
  2.  
  3. --Update 5.0.1
  4.  
  5. file = fs.open("SimSoft/Data/Version","r")
  6. local fileData = {}
  7. local line = file.readLine()
  8. repeat
  9. table.insert(fileData,line)
  10. line = file.readLine()
  11. until line == nil
  12. file.close()
  13.  
  14. Sprache = fileData[4]
  15.  
  16. if Sprache == "german" then
  17.  
  18. Code1 = "LUX6HVMy"
  19. Code2 = "iSCumw3S"
  20.  
  21. elseif Sprache == "english" then
  22.  
  23. Code1 = "jALaL4ap"
  24. Code2 = "zNnJ9UU7"
  25.  
  26. end
  27.  
  28.  
  29. fs.delete("SimSoft/System/Update")
  30. fs.delete("SimSoft/System/AppStore")
  31.  
  32. local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30))
  33. local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(Code1) .. "?cb=" .. cacheBuster)
  34. datei = datei.readAll()
  35.  
  36. local file = fs.open("SimSoft/System/Update", "w")
  37. file.write(datei)
  38. file.close()
  39.  
  40. local cacheBuster = ("%x"):format(math.random(0, 2 ^ 30))
  41. local datei = http.get("https://pastebin.com/raw/" .. textutils.urlEncode(Code2) .. "?cb=" .. cacheBuster)
  42. datei = datei.readAll()
  43.  
  44. local file = fs.open("SimSoft/System/AppStore", "w")
  45. file.write(datei)
  46. file.close()
  47.  
  48. local file = fs.open("SimSoft/Data/Version", "w")
  49. file.writeLine("SimSoft System Version")
  50. file.writeLine("")
  51. file.writeLine("5.0.1")
  52. file.writeLine(Sprache)
  53. file.close()
  54.  
  55. os.reboot()
  56.  
  57. --end
Add Comment
Please, Sign In to add comment