jamesscape2

Untitled

Jan 29th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. local slot = 1
  2.  
  3. rednet.open("left")
  4.  
  5. local senderIDI, slot = rednet.receive()
  6. sleep(0.2)
  7. local senderIDA, amount = rednet.receive()
  8.  
  9.  
  10. if slot == 17 then
  11. slot = 1
  12. else if slot == 18 then
  13. slot = 2
  14. else if slot == 19 then
  15. slot = 3
  16. else if slot == 20 then
  17. slot = 4
  18. else if slot == 21 then
  19. slot = 5
  20. else if slot == 22 then
  21. slot = 6
  22. else if slot == 23 then
  23. slot = 7
  24. else if slot == 24 then
  25. slot = 8
  26. else if slot == 25 then
  27. slot = 9
  28. else if slot == 26 then
  29. slot = 10
  30. else if slot == 27 then
  31. slot = 11
  32. else if slot == 28 then
  33. slot = 12
  34. else if slot == 29 then
  35. slot = 13
  36. else if slot == 30 then
  37. slot = 14
  38. else if slot == 31 then
  39. slot = 15
  40. else if slot == 32 then
  41. slot = 16
  42. end
  43. end
  44. end
  45. end
  46. end
  47. end
  48. end
  49. end
  50. end
  51. end
  52. end
  53. end
  54. end
  55. end
  56. end
  57. end
  58.  
  59. --print(senderIDI)
  60. print(slot)
  61. --print(senderIDA)
  62. print(amount)
  63.  
  64. sleep(10)
  65.  
  66. rednet.close("left")
  67.  
  68. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment