Three more prescription drug companies have settled lawsuits with the state of West Virginia, for a total of $800,000, over the huge numbers of pain pills shipped into the state over several years. The settlements with J.M. Smith Corporation, Top Rx and Masters Pharmaceutical LLC were announced late Thursday in a news release from the state Attorney General’s office. The state Department of Health and Human Resources and the state Department of Military Affairs and Public Safety also approved the settlements, according to the release. J.M. Smith, also known as Smith Drug Company, agreed to pay $400,000; Top Rx and Masters Pharmaceutical agreed to pay $200,000 each. The lawsuit against more than a dozen pharmaceutical companies was filed in 2012 by former Attorney General Darrell McGraw and inherited by his successor, Patrick Morrisey. Before Tuesday, six other companies had settled with the state: Miami-Luken, Anda Inc., the Harvard Drug Group, Associated Pharmacies, KeySource Medical Inc. and Quest Pharmaceuticals. The largest settlement, with Miami-Luken, was for $2.5 million.