View difference between Paste ID: Gu4fcJ0E and drkqMQs2
SHOW: | | - or go back to the newest paste.
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 clearPrimary()
10
  --Clear Primary
11
  --Allow Primary Import
12
  rs.setBundledOutput("bottom", colors.red)  
13
  --Allow all storage Stands
14
  for x in t do 
15
	rs.setBundledOutput("bottom",colors.combine(rs.getBundledOutput("bottom"),colours(num)) 
16
  end
17
  
18
  --Reset all colours
19
  rs.setBundledOutput("bottom",0)
20
 end
21
 
22
 
23
 
24
function importStand (num)
25
--Enable specific stand Dark Cable
26
local colours = {
27
    1 = colors.orange,
28
    2 = colors.magenta,
29
    3 = colors.lightBlue
30
    }
31
 
32
  --Clear Primary
33
  clearPrimary
34
  
35
  --Allow Export to Primary
36
  rs.setBundledOutput("bottom",colors.black
37
  --Allow Access to Storage Armour Stand
38
  rs.setBundledOutput("bottom",colours(num))
39
  
40
  --Armour Should move to new location
41
  
42
  --Reset all colours
43
  rs.setBundledOutput("bottom",0)
44
  
45
end
46
47
48-
function
48+
49
local n = tonumber(io.read())
50
importStnad(n)
51
52
 
53
--Remove Armour from primary to chest (May be nothing)
54
--Disconect all Stands
55
--Import from Primary Stand
56
 
57
 
58
--Bring Armour from Stand wanted to Primary
59
--Disable all Dark Cables except for stand wanted
60
--Export from AE to Primary Stand
61
 
62
 
63
--Move armour from chest to Stand (May be nothing)
64
--Disconnect Primary Stand
65
--Enable the empty stand
66
--Enable Import Cable (Buffer Chest)
67
--should import to available stand (Storage Bus)