jamesscape2

Untitled

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