View difference between Paste ID: dL7pug6F and Y37RTBbv
SHOW: | | - or go back to the newest paste.
1-
local function clearScreen()
1+
2-
  term.clear()
2+
3-
  term.setCursorPos(1, 1)
3+
4
-- And wait for a reply
5
local event, side, channel, replyChannel, message, distance
6-
function dial(address)
6+
7-
    interface = peripheral.find("crystal_interface")
7+
8
until channel == 12
9-
    local addressLength = #address
9+
10
-- Process the received message based on its content
11-
    local start = interface.getChevronsEngaged() + 1
11+
if message == "Iron" then
12
    modem.transmit(46, 12, "Preparing Package...")
13-
    for chevron = start,addressLength,1
13+
    print("Starting Drop...")
14-
    do
14+
15-
        
15+
16-
        local symbol = address[chevron]
16+
    os.sleep(1)
17-
        
17+
18-
        interface.engageSymbol(symbol)
18+
19-
    end 
19+
20
    
21
    os.sleep(3)
22
    modem.transmit(46, 12, "Drop-Ready")
23
end
24
25
shell.run("startup")