How can I get the Elemental Archer (Lost Heir Help)

Hey guys! I tried many times to take the prestige class elemental archer in LH, but I always fail in earn the right status without dying before the end of the game or lost everything. If someone can help how to get the right status to get there, I’d appreciated.