To climb out, add your Desterity and Luck, and roll two dice (doubles add and roll again). If the total is over 30, you climbed out. If the total is not over 30, roll one die to see if a Wandering Monster appears, then try again. Keep trying until you have been killed by a wandering monster, or you have successfully climbed out.