If you mean Viva Piñata: Trouble in Paradise, the answer is tinkering. Take some honey to a tinkerer and have it processed into a bottle of medicine.
Keep a steady supply of honey on hand, since sick piñatas tend to need more than one dose. I hope that helps!