LDDestroier

CC File Part Downloader

Dec 23rd, 2016
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.90 KB | None | 0 0
  1. -- pastebin run 1beSGuij  
  2. local tArg = {...}
  3. local ids = {
  4.     "https://www.dropbox.com/s/asjufdfsl307wqv/rhps-partaa?dl=1", --aa
  5.     "https://www.dropbox.com/s/6tlyi14va3eluhw/rhps-partab?dl=1", --ab
  6.     "https://www.dropbox.com/s/4hgt5shq5c7wupi/rhps-partac?dl=1", --ac
  7.     "https://www.dropbox.com/s/9u0gkm4fq9tf0kg/rhps-partad?dl=1", --ad
  8.     "https://www.dropbox.com/s/dnocjamnoebl9q6/rhps-partae?dl=1", --ae
  9.     "https://www.dropbox.com/s/7b9jscjc0o7usig/rhps-partaf?dl=1", --af
  10.     "https://www.dropbox.com/s/7amio765gljhjj5/rhps-partag?dl=1", --ag
  11.     "https://www.dropbox.com/s/ftokxtiif2nwdip/rhps-partah?dl=1", --ah
  12.     "https://www.dropbox.com/s/d2s8jv2yvxe63dv/rhps-partai?dl=1", --ai
  13.     "https://www.dropbox.com/s/8vky8tm5hkvsqk1/rhps-partaj?dl=1", --aj
  14.     "https://www.dropbox.com/s/3rokq473tra5fgy/rhps-partak?dl=1", --ak
  15.     "https://www.dropbox.com/s/kmxcvkkdhecwxxa/rhps-partal?dl=1", --al
  16.     "https://www.dropbox.com/s/3r5jba3kaeen01m/rhps-partam?dl=1", --am
  17.     "https://www.dropbox.com/s/c2uvdjp2b5q0jyi/rhps-partan?dl=1", --an
  18.     "https://www.dropbox.com/s/lkivh5ea7bvw071/rhps-partao?dl=1", --ao
  19.     "https://www.dropbox.com/s/0d54o4jdkreisp3/rhps-partap?dl=1", --ap
  20.     "https://www.dropbox.com/s/8mlma1lsf63j508/rhps-partaq?dl=1", --aq
  21.     "https://www.dropbox.com/s/xxikqk7o94v2sah/rhps-partar?dl=1", --ar
  22.     "https://www.dropbox.com/s/cj7ocqaijnqhpix/rhps-partas?dl=1", --as
  23.     "https://www.dropbox.com/s/r1gktlwrto869wm/rhps-partat?dl=1", --at
  24.     "https://www.dropbox.com/s/1m4i5rzsot41cuq/rhps-partau?dl=1", --au
  25.     "https://www.dropbox.com/s/ua8arap0dxp8euc/rhps-partav?dl=1", --av
  26.     "https://www.dropbox.com/s/idrdrlb02b1u9ci/rhps-partaw?dl=1", --aw
  27.     "https://www.dropbox.com/s/3bwerq7jdtkdmgk/rhps-partax?dl=1", --ax
  28.     "https://www.dropbox.com/s/sh1ty1pknuepgfh/rhps-partay?dl=1", --ay
  29.     "https://www.dropbox.com/s/d8uyko154uz6sgp/rhps-partaz?dl=1", --az
  30.     "https://www.dropbox.com/s/qztwin5hb7074vh/rhps-partba?dl=1", --ba
  31.     "https://www.dropbox.com/s/spwn8km2avjyyf8/rhps-partbb?dl=1", --bb
  32.     "https://www.dropbox.com/s/jfsrr3t6wshd0e4/rhps-partbc?dl=1", --bc
  33.     "https://www.dropbox.com/s/0sbhuofadh7uvx2/rhps-partbd?dl=1", --bd
  34.     "https://www.dropbox.com/s/6q7tuoadi2z7xmc/rhps-partbe?dl=1", --be
  35.     "https://www.dropbox.com/s/zgrgzz4994j4wf8/rhps-partbf?dl=1", --bf
  36.     "https://www.dropbox.com/s/r7hu47zfhau7s1v/rhps-partbg?dl=1", --bg
  37.     "https://www.dropbox.com/s/aov3v3a78yzqoh6/rhps-partbh?dl=1", --bh
  38.     "https://www.dropbox.com/s/dlwmd0l602doka3/rhps-partbi?dl=1", --bi
  39.     "https://www.dropbox.com/s/98oc89cm9gdazuy/rhps-partbj?dl=1", --bj
  40.     "https://www.dropbox.com/s/oyqsyioo89oe956/rhps-partbk?dl=1", --bk
  41.     "https://www.dropbox.com/s/a5wr2sqrus7sw04/rhps-partbl?dl=1", --bl
  42.     "https://www.dropbox.com/s/8ntm1svjkp0wte3/rhps-partbm?dl=1", --bm
  43.     "https://www.dropbox.com/s/zaixz73i51q6id1/rhps-partbn?dl=1", --bn
  44.     "https://www.dropbox.com/s/lr3gga69cdbkkgf/rhps-partbo?dl=1", --bo
  45.     "https://www.dropbox.com/s/0qzwehcef38b3fu/rhps-partbp?dl=1", --bp
  46.     "https://www.dropbox.com/s/4hv13ne44chtwq2/rhps-partbq?dl=1", --bq
  47.     "https://www.dropbox.com/s/gt3lnt9gtc4q6eb/rhps-partbr?dl=1", --br
  48.     "https://www.dropbox.com/s/dc8zx57jfpymkdb/rhps-partbs?dl=1", --bs
  49.     "https://www.dropbox.com/s/bxsmusxqr2mo1z3/rhps-partbt?dl=1", --bt
  50.     "https://www.dropbox.com/s/hkx0llnwzw5bt77/rhps-partbu?dl=1", --bu
  51.     "https://www.dropbox.com/s/h15ox79zxbdir1p/rhps-partbv?dl=1", --bv
  52.     "https://www.dropbox.com/s/dqxpvhrxupcw01x/rhps-partbw?dl=1", --bw
  53. }
  54. print("Order:")
  55. local order
  56. if tonumber(tArg[1]) then
  57.     order = tonumber(tArg[1])
  58. else
  59.     order = tonumber(read())
  60. end
  61. local h=http.get(ids[order]).readAll()
  62. local f=fs.open("rhps","w")
  63. f.write(h)
  64. f.close()
  65. local f=fs.open("startup","w")
  66. local output = [[
  67. local modem = peripheral.find("modem")
  68. local order = ]]..(order)..[[;
  69. modem.open(58)
  70. local file = fs.open("rhps","r")
  71. local cont = file.readAll()
  72. file.close()
  73. modem.transmit(58,58,{order=order,data=cont})
  74. sleep(5)
  75. os.shutdown()]]
  76. f.write(output)
  77. f.close()
  78. os.shutdown()
Add Comment
Please, Sign In to add comment