daily pastebin goal
29%
SHARE
TWEET

CreateServer

a guest Feb 13th, 2018 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. modem = peripheral.wrap("back")
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. print("Please enter desired username:")
  5. local userName = read()
  6. print("Okay, "..userName.." please create password:")
  7. local password = read()
  8. modem.transmit(593, 921, userName)
  9. sleep(3)
  10. modem.transmit(674, 921, password)
  11. term.clear()
  12. term.setCursorPos(1, 1)
  13. modem.open(921)
  14. local memes, are, kings, note, confirm = os.pullEvent("modem_message")
  15. if confirm == "already" then
  16.     print("Username already in use, please try again.")
  17.     sleep(1)
  18. modem.close(921)
  19.     shell.run("Create")
  20. else
  21.     print("Account registered")
  22.     sleep(1)
  23. modem.close(921)
  24.     shell.run("LoginC")
  25.     end
RAW Paste Data
Top