It sounds like to me that what you need is not medication. The medications you have been taking previously are simply covering up the pain. There is an underlying cause and it should be now be considered seeing as your medications are no longer effective. You would most likely benefit from some sort of manual treatment. Manual treatment can be delivered by chiropractors, osteopaths, and physical therapists. Adjustments, manipulation, stretching, muscle release, massage
, electric stimulation....etc.
Your pain seems to be musculoskeletal in nature, which means that it is coming from the joints and muscles.
Hope this helps,