Computer (withdraw):
local function withdraw()
clear()
print("Enter the amount you want to withdraw.")
term.setCursorPos(1,5)
write"$ "
amount = read()
rednet.send("entered")
rednet.send(amount)
clear()
textutils.slowPrint("Iron successfully withdrawn.")
sleep(3)
os.reboot()
end
Turtle (withdraw):
elseif message == "entered" then turtle.select(9) id, message = rednet.receive() turtle.drop(amount) turtle.select(1) os.reboot() end












