What kind of pills or treatment can somebody get for esophageal varices?

Variety of things. Esophageal varices are dilated veins that form when the liver is damaged. When the liver is scarred blood flow "backs up" into nereby veins like those in the esophagus, they can then bleed. Therapy is aimed at lowering the bleeding risk. Medicines which lower the pressure in the veins ( beta blockers, nitrates) can help. So can procedures that divert blood flow from the liver ( "tips".