Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- If your computer does not have my API, this program will automatically download it.
- if not fs.exists("raiu") then
- shell.run("pastebin","get","pgHT115i","raiu")
- end
- os.loadAPI("raiu")
- local args = {...}
- if #args < 1 then args[1] = 1 end
- for c = 1, args[1] do
- for a = 1, 1+2*c do
- for b = 1, 16 do
- raiu.hallway(0)
- if a == 1 then
- raiu.left()
- raiu.hallway(-1)
- raiu.back()
- raiu.right()
- elseif a == 1+2*c then
- raiu.right()
- raiu.hallway(-1)
- raiu.back()
- raiu.left()
- end
- raiu.hallway(0, 3)
- end
- if a < 1+2*c then
- if a%2 == 1 then
- raiu.right()
- raiu.hallway(0)
- raiu.right()
- elseif a%2 == 0 then
- raiu.left()
- raiu.hallway(0)
- raiu.left()
- end
- end
- end
- if c < tonumber(args[1]) then
- raiu.up(2)
- raiu.right()
- raiu.hallway(0)
- raiu.right()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement