What else could I do for you, besides saying, "that sucks, friend"? Asking seriously.
- I can offer you advice based on my own experience, that may or may not work for you.
- I can refer you to talk to someone who has a professional degree in studying feelings, who may be able to help you with better advice than me or prescribe drugs.
- I can sit, nod, pat you on the back through words.
If it is someone I know in person, I'd try to send them care package based on what I would think they liked.