Please take him to the ER as soon as possible. I feel he is jaundiced, as you suspected. He would find it difficult to go through the withdrawal process without medical help
. Till then keep giving him lots of fluids. This time, once he is detoxified, try putting him on naltrexone
to keep him off opioids. He will need to stay with someone who can keep an eye on him and make sure he is taking his medicines as prescribed.