Advertisement
exploitcomputercraft

Station

Aug 23rd, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local arg1, arg2 = ...
  2. if arg1 == "getpower" then
  3. rednet.send(133,"stored","powerstat1")
  4. local senderid, message, protocol = rednet.receive()
  5. print(message)
  6. else if arg1 == "getpeople" then
  7. rednet.send(135,"aa605")
  8. local senderid, message, protocol = rednet.receive()
  9. print(message)
  10. else if arg1 == "help" then
  11. print("Use either station getpeople or station getpower!")
  12. else
  13. print("Wrong usage! Do station help for help!")
  14. end
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement