After finish a fight with a small group of vampire spawn, one of the player characters ended up suffering enough energy drain to kill him.
when the fight was finished the rest of the party began looking for a way to bring him back to life.
However this is where things got confusing, since the universal monster rules for energy drain say the following:
This attack saps a living opponent’s vital energy and happens automatically when a melee or ranged attack hits.
Each successful energy drain bestows one or more negative levels (the creature’s description specifies how many).
If an attack that includes an energy drain scores a critical hit, it bestows twice the listed number of negative levels.
Unless otherwise specified in the creature’s description, a draining creature gains 5 temporary hit points for each negative level it bestows on an opponent.
These temporary hit points last for a maximum of 1 hour. Negative levels remain until 24 hours have passed or until they are removed with a spell such as restoration.
If a negative level is not removed before 24 hours have passed, the affected creature must attempt a Fortitude save (DC 10 + 1/2 the draining creature’s racial HD + the draining creature’s Cha modifier; the exact DC is given in the creature’s descriptive text).
On a success, the negative level goes away with no harm to the creature.
On a failure, the negative level becomes permanent. A separate saving throw is required for each negative level.
Now it's the last part that confused me, since the UMR about negative levels says:
Some abilities and spells (such as raise dead) bestow permanent level drain on a creature. These are treated just like temporary negative levels, but they do not allow a new save each day to remove them.
Level drain can be removed through spells like restoration.
Permanent negative levels remain after a dead creature is restored to life.
A creature whose permanent negative levels equal its Hit Dice cannot be brought back to life through spells like raise dead and resurrection without also receiving a restoration spell, cast the round after it is restored to life.
Implying that temporary negative levels disappear after being resurrected.
Now the question is: if the character is resurrected before 24 hours have gone by, does he loss the energy drain negative levels, or does he still need to save for them, or do they automatically become permanent once you die?
Bonus: what happens if 24 hours do pass do they make the fortitude save or get them as permanent levels?