Advertisement
Microstar301

CCTERMSERV/CLIENT STARTUP

Dec 1st, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1. term.clear()
  2. if fs.exists("client")==true then
  3. term.clear()
  4. term.setCursorPos(1,1)
  5. print("OK")
  6. sleep(1)
  7. else
  8. term.setCursorPos(-99,-99)
  9. shell.run("pastebin","get","KCey3EqY","client")
  10. sleep(1)
  11. end
  12. while true do
  13. term.clear()
  14. term.setCursorPos(20,19)
  15. write("Microtech Terminas Client v0.9")
  16. term.setCursorPos(30,18)
  17. print("ID: ",os.getComputerID())
  18. term.setCursorPos(1,1)
  19. print("+------------------------MENU---------------------+")
  20. print("")
  21. print("")
  22. print("1. CONNECT    2. BACK TO CMD    3. Update")
  23. z,u=os.pullEvent("char")
  24.  if u=="1" then
  25.   shell.run("client")
  26.   os.reboot()
  27.  end
  28.  if u=="2" then
  29.   return
  30.  end
  31.  if u=="3" then
  32.   shell.run("rm","/startup")
  33.   shell.run("rm","/client")
  34.   term.setCursorPos(-99,-99)
  35.   shell.run("pastebin","get","A8bZHpBf","startup")
  36.   os.reboot()
  37.  end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement