Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nSlaveID = 28
- local nTimeout = 30
- local bCool = true
- local function slowmo(str)
- local x, y = term.getCursorPos()
- local l = string.len(str)
- if l == 0 then
- return
- end
- for i=1,l do
- term.setCursorPos(x,y)
- term.write(string.sub(str,i,1))
- sleep(0.05)
- x = x+1
- end
- end
- yourmonitor = peripheral.wrap("right")
- term.redirect(yourmonitor)
- term.clear()
- term.setCursorPos(1,1)
- print("**************")
- print("* Welcome *")
- print("**************")
- print("")
- print("Enabling network, connecting to BatteryGuy")
- rednet.open("top")
- print("Network enabled. Receiving...")
- while bCool == true do
- local id,msg,foo = rednet.receive(nTimeout)
- if id == nil then
- print("Timeout")
- bCool = false
- else
- print(msg)
- end
- sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment