Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function north(dist)
- print("Moving north " .. dist .. "\n")
- for i=1,dist do
- rs.setBundledOutput("right", 1)
- sleep(3)
- rs.setBundledOutput("right", 0)
- sleep(1)
- end
- end
- function south(dist)
- print("Moving south " .. dist .. "\n")
- for i=1,dist do
- rs.setBundledOutput("right", 2)
- sleep(3)
- rs.setBundledOutput("right", 0)
- sleep(1)
- end
- end
- function west(dist)
- print("Moving west " .. dist .. "\n")
- for i=1,dist do
- rs.setBundledOutput("right", 4)
- sleep(3)
- rs.setBundledOutput("right", 0)
- sleep(1)
- end
- end
- function east(dist)
- print("Moving east " .. dist .. "\n")
- for i=1,dist do
- rs.setBundledOutput("right", 8)
- sleep(3)
- rs.setBundledOutput("right", 0)
- sleep(1)
- end
- end
- function up(dist)
- print("Moving up " .. dist .. "\n")
- for i=1,dist do
- rs.setBundledOutput("right", 16)
- sleep(3)
- rs.setBundledOutput("right", 0)
- sleep(1)
- endeaw
- end
- function down(dist)
- print("Moving down " .. dist .. "\n")
- for i=1,dist do
- rs.setBundledOutput("right", 32)
- sleep(3)
- rs.setBundledOutput("right", 0)
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment