hi,welcome to HCM,after total hip replacement
surgery,pain killers are commonly prescribed but they have to gradually taper off and a good post op. rehab. program should be started to achieve pain free state and normal functions.
consult your treating doctor, he may change your medication.Consult a good physio to go under a good post op. exercise program.hope it will be helpful.