It took about 4 years of work including AA, counselling, hypnotherapy etc to make a dent on this for me! In hindsight having lived 38 years with self pity I suppose it seems pretty obvious now that great effort to change would be required to make my thinking, values and beliefs shift.
Loads of resources out there to help you.