There isn't much you can do for her. She has her own decisions to make and her own path to follow. Unfortunately it sounds as if the path she's walking is filled with a lot of pain and confusion. Talk to her and let her know you are there for her. Try to listen and hear what she is saying. But also, set your boundaries. If her use of painkillers becomes an addiction then you might need to walk away from her.
Keep me updated...