barwa100

Untitled

Aug 16th, 2018
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local modem = peripheral.wrap("back")
  2. local cid = 2
  3. modem.open( cid )
  4.  
  5.  
  6.  
  7. write("Username: ")
  8. user = read()
  9.  
  10. write("Password: ")
  11. pass = read('*')
  12.  
  13. modem.transmit(1, cid, "login,"..user..","..pass)
  14.  
  15. local event, modemSide, senderChannel, replyChannel, message, senderDistance = os.pullEvent("modem_message")
  16. if(senderChannel == 1) then
  17. local token = message
  18. end
  19.  
  20. write(token)
Advertisement
Add Comment
Please, Sign In to add comment