Advertisement
MichalN

ComputerCraft Lua cellphone Installer [WIP]

Aug 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. --[[
  2. Made by Michal Nemecek. Please do not redistribute.
  3. ]]--
  4. term.clear()
  5. if pocket then
  6.     shell.run("pastebin","get","j4Wa61rm","startup")
  7.     term.clear()
  8.     invalid = true
  9.     while invalid do
  10.         paintutils.drawFilledBox(3,3,11,5,colors.cyan)
  11.         paintutils.drawLine(3,3,11,3,colors.blue)
  12.         term.setCursorPos(3,3)
  13.         term.blit("SET NUM!","00000000","bbbbbbbb")
  14.         term.setCursorPos(3,4)
  15.         term.setBackgroundColor(colors.cyan)
  16.         rd = read()
  17.         invalid = ((tonumber(rd) ~= nil and rd:len() == 9) == false)
  18.     end
  19.     rednet.open("back")
  20.     id = os.getComputerID()
  21.     rednet.send(0,"R"..rd..id)
  22. else
  23.     shell.run("pastebin","get","z1PVvfma","startup")
  24. end
  25. term.setBackgroundColor(colors.black)
  26. term.clear()
  27. term.setCursorPos(1,1)
  28. print("Please Reboot the Computer!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement