Not sure it is the same game, but I played one my Apple //e in that era, named Telengard (https://en.wikipedia.org/wiki/Telengard). I remember doing exactly as you describe: teleporting very deep and looting a chest for an extremely powerful weapon, and hoping to teleport back so I could rampage for a while. Good times. ;)
Omg I think this is it!!! thank you so much, I love this forum. So crazy you remembered same thing.
Edit..Yup this is for sure the game, I even notice you could program into the game and that is what my cousin who gave it to me did in a school project.
You all made my day with helpful responses. Heartfelt thanks to you all!!
I am going to replay this game for sure because I remember it being very hard.
The author sadly passed away in 2014 I was going to email and say thanks.