Guest User

armorToStand

a guest
Jan 26th, 2014
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.61 KB | None | 0 0
  1. --Black = Export to Primary
  2. --Red   = Import from Primary
  3.  
  4. function resetStands()
  5.   --All stands to OFF
  6.  rs.setBundledOutput("bottom",0)
  7. end
  8.  
  9. function importStand (num)
  10. --Enable specific stand Dark Cable
  11. local colours = {
  12.     1 = colors.orange,
  13.     2 = colors.magenta,
  14.     3 = colors.lightBlue
  15.     }
  16.  
  17.   --Clear Primary
  18.   --Allow Primary Import
  19.   rs.setBundledOutput("bottom", colors.red)  
  20.   --Allow all storage Stands
  21.   for x in t do
  22.     rs.setBundledOutput("bottom",colors.combine(rs.getBundledOutput("bottom"),colours(num))
  23.   end
  24.   --Reset all colours
  25.   rs.setBundledOUtput("bottom",0)
  26.      
  27.            
  28.   rs.setBundledOutput("bottom",colours(num))
  29.  
  30.    
  31. end
  32.  
  33. function clearPrimaryStand()
  34.   resetStands()
  35.  
  36. end
  37.  
  38. function
  39.  
  40. local b = peripheral.wrap("appeng_me_tilestoragebus_1")
  41.  
  42. print("Give suit number")
  43. local n = tonumber(io.read())
  44.  
  45. b.setPriority(10)
  46.  
  47. --Get the Armour set to Move to the primary stand
  48. if n == 1 then
  49.   rs.setBundledOutput("right",colors.orange)
  50. elseif n == 2 then
  51.   rs.setBundledOutput("right",colors.magenta)
  52. elseif n == 3 then
  53.   rs.setBundledOutput("right",colors.lightBlue)
  54. end
  55. sleep(3)
  56. rs.setBundledOutput("right",0)
  57.  
  58. --Remove Armour from primary to chest (May be nothing)
  59. --Disconect all Stands
  60. --Import from Primary Stand
  61.  
  62.  
  63. --Bring Armour from Stand wanted to Primary
  64. --Disable all Dark Cables except for stand wanted
  65. --Export from AE to Primary Stand
  66.  
  67.  
  68. --Move armour from chest to Stand (May be nothing)
  69. --Disconnect Primary Stand
  70. --Enable the empty stand
  71. --Enable Import Cable (Buffer Chest)
  72. --should import to available stand (Storage Bus)
Advertisement
Add Comment
Please, Sign In to add comment