Hello,
it definitely sounds like you're experiencing gallstones attack, and the sooner you get an ultrasound the better. Depending on which painkillers you took, it's not too likely that they directly affected your gallbladder. However, painkillers - especially too many of them and especially painkillers that contain acetaminophen, do affect your liver. Liver is responsible for bile production and it's possible that while your liver was overwhelmed with medications, either bile ducts that carry the bile to the bladder, or the production of bile itself were affected. Meanwhile, try eating only small amounts of fairly bland food – boiled chicken, white rice and similar – that should at least help in not irritating the gallbladder further
Wish you all the best,
Nicole