Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tid = 379
- type = false
- rednet.open("right")
- function s()
- sleep(.4)
- end
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Blood-Corp Turtle Systems")
- term.setCursorPos(1,2)
- term.clear()
- term.setCursorPos(1,1)
- print("Blood-Corp Turtle Systems")
- print("Commands : up, down, left, right, forward, back.")
- term.setCursorPos(1,3)
- write("Enter Command : ")
- local command = read()
- if command == "forward" then
- rednet.send(tid, "forward")
- print("Sent Forward")
- s()
- elseif command == "right" then
- rednet.send(tid, "right")
- print("Sent Right")
- s()
- elseif command == "left" then
- rednet.send(tid, "left")
- print("Sent Left")
- s()
- elseif command == "back" then
- rednet.send(tid, "back")
- print("Sent Back")
- s()
- elseif command == "up" then
- rednet.send(tid, "up")
- print("Sent Up")
- s()
- elseif command == "down" then
- rednet.send(tid, "down")
- print("Sent Down")
- s()
- else
- print("Unknown command.")
- print("Usage: up, down, left, right, forward, back.")
- s()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement