Great script, one thing that happened to me however while RCing in abyss was when i was in my house, the bot clicked on the portal out of the house (in Yanille) by accident and then proceeded (flawlessly to be fair) to walk all the way back to edgeville. Maybe have it coded so that if using the mounted glory and the house portal is accidentally clicked, the bot will re-enter the portal instead of pathing all the way back from across the map. Props to you for the amazing pathing back though.
Edit: Just happened again. It seems like its intentionally scripted to do it after dropping below the hp threshold. I'm not sure why it necessitates walking all the way back though, couldnt the script just do the same mounted glory teleport to edgeville and eat there?