Sometimes you can't survive. But maybe you can still get the last laugh with these:

Vengeful Return
Necromancy, 3
Components: V, S
Casting Time: 1 second
Target: Self
Duration: 1 minute per caster level

If killed while under this spell the caster's body will regenerate and resurrect at their preference when casting the spell either instantly or after a delay of any amount up to 10 minutes. The resurrectee has full health and any spells effecting them previously are removed. Any items or garments on they possess are unaffected, and if damaged do not mend. The caster now has a life span of a single minute, after that their resurrection will reverse, all damage will return, and they will instantly perish. Nothing can prevent this demise, not even effects that raise maximum health. If enough damage is dealt before the minute is up they can die earlier.


Explosive Demise
Evocation, 2
Components: V, S
Casting Time: 1 minute
Target: Self
Duration: 1 hour

If killed your body releases a blast that causes 4d6 damage to everything within 10 feet. Your body and possessions are undamaged. When casting the spell you may select the damage to be either acid, cold, electricity, fire, or sonic.

Accusation
Divination, 4
Components: V, S
Casting Time: 1 minute
Target: Any willing creature
Range: Touch
Duration: 1 hour per caster level

If the target is killed while under the spell the true name of their killer will appear in glowing skywriting above the site of the murder. The writing will remain until it has been read by 100 different literate people.