its good you helped yourself already
summary on what can help if stuck
emergency - teleport (what you found)
portalstone
automove
what some dont know is if you get stuck, somtimes automove also can free you the same way it can trap you, by passing obstacles in a weird way - try clicking at some waypoint and see if it helps
advanced: make another player carry you or invite you to take a seat at lightningbolt