I've seen far too many tamers post on here that they abandon their dragons at the sight of a red, which is just a horrible waste. I'm all for PKing tamers... but gating a dragon out of the dungeon so you can kill it for no loot in front of your tower is just lame.
Here's how I make it out of 90% of these encounters without dying or losing a dragon.
1) always have Magic Reflect active. Your pets should be getting targeted by the monster you're hunting. If the Blood Elemental targets you instead, send your pets after it, run off screen, cast Magic Reflect, and return. Magic reflect will reflect the first spell cast on you back at the caster, without disrupting anything you may be doing at the time.
2) have enough magery to cast a level 5 spell with 100% success (80.1). This will allow you to cast a level 7 scroll with 100% success.
3) always keep a Gate scroll in your pack.
4) have a macro for double-clicking on a moongate. this is simple. Make a new macro, hit Record, and double-click a moongate. Then stop recording and change it to "use by type".
5) when you first see a gate open up near you, or a bunch of reds run in, here's what I typically do:
- say "all guard me" - this will ensure that if someone attacks you, they will quickly have a few dragons on them
- cast Gate from a scroll, target your rune (this typically happens while the first of the gank squad gets close enough to start casting Harm on you... it bounces off and you succeed the scroll cast uninterrupted)
- say "all follow me" a couple times - your dragons should still be quite close since they don't move very fast when guarding you
- when the dragons get within a tile of you, hit your Moongate macro. One caveat - this looks for a random moongate on the screen, so if your enemies happened to gate in, you may have to use the macro a couple times, until it correctly chooses your moongate.