aynoblo

PassCard

Apr 11th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. --PassCard
  2. os.setComputerLabel("The_Aynoblo37's PassCard")
  3. local rChannel=104
  4. local hChannel=103
  5. local osName=The_Aynoblo37
  6. local passCode="4GzRLp9LySZsj4c86i5NwGAzh89R528a"
  7. modem=peripheral.wrap("back")
  8. modem.open(rChannel)
  9. print("modem status:",modem.isOpen(rChannel))
  10. print("")
  11.  
  12. while true do
  13.     local x,y,z = gps.locate()
  14.     coords = {
  15.         pass=passCode,
  16.         name=osName,
  17.         cx=x,
  18.         cy=y,
  19.         cz=z
  20.     }
  21.     cSend=textutils.serialize(coords)
  22.     modem.transmit(hChannel,rChannel,cSend)
  23.     sleep(0.01)
  24. end
Add Comment
Please, Sign In to add comment