Dealing with pain. Any advice?

I am in some serious pain. I don’t Want to end up at the hospital. Any thing in could do and help relieve the pain?
I am on ketoprofen and tramadol. I also have a emergency pill that has codeine that I already took?
Any other things that could help it?
Or is the hospital the best place…?