ravneravn

prank portal home

Nov 19th, 2013
53
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. duke = 1
  2. dandan = 2
  3. ravn = 3
  4. workshop = 16
  5.  
  6.  
  7. function book(navn)
  8. turtle.select(navn)
  9. turtle.drop()
  10. sleep(60)
  11. turtle.select(navn)
  12. turtle.suck()
  13. end
  14.  
  15.  
  16.  
  17.  
  18. ---------
  19.  
  20.  
  21. while true do
  22. turtle.select(workshop)
  23. turtle.drop()
  24. event, sid, mes, dis = os.pullEvent("rednet_message")
  25. turtle.select(workshop)
  26. turtle.suck()
  27.  
  28. if mes == "duke" then book(duke)
  29. elseif mes == "dandan" then book(dandan)
  30. elseif mess == "ravn" then book(ravn)
  31. end
  32. end
RAW Paste Data