Of course, right now he may have abdominal pains any time he withdraws from the pain pills, since narcotics addicts have a lot of cramping and pain when they go through withdrawal.
I don't blame you for being fed up. If you can do anything to get him clean, though - even if you plan to leave - it will be better for your kids to have a sober dad.