Original thread: https://www.mpgh.net/forum/showthread.php?t=1382245
It kept getting me stuck so this is a bit more of a hail mary with the delays, however it should work indefinitely instead of getting you caught with floors or walls.
F1 = Walls
F2 = Floors
F3 = Stairs
https://i.imgur.com/HVRsY19.png