superanonymous

djclient

May 13th, 2013
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.64 KB | None | 0 0
  1. -----------Config-----------
  2.  
  3. computerid =  --ID of djturtle (new version displays it on startup)
  4.  
  5. ----------------------------
  6.  
  7. --Credit to Freack100 for automatic rednet finder!
  8. for k,v in pairs(rs.getSides()) do
  9. if peripheral.isPresent(v) then
  10. if peripheral.getType(v) == "modem" then
  11. rednet.open(v)
  12. end
  13. end
  14. end
  15.  
  16. while not color do
  17. term.clear()
  18. term.setCursorPos(1,1)
  19. print("DJMix OS 3.0")
  20. print("Choices: 13, cat, blocks, chirp, far, mall, mellohi, stal, strad, ward, 11, and wait")
  21. print("Type song name here: (spelling counts)")
  22. sendmsg=read()
  23. if sendmsg=="exit" then shell.run("shell") end
  24. rednet.send(computerid,sendmsg)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment