If your teeth restorable then rct is recommended. But if your teeth grossly carious or root stump which are not restorable then extract them. But you prior take medication otherwise sometimes anaesthesia not effective.
Advised medication:
Ketorol dt 2tab (dispers in water and drink).
Next Steps
consult a dentist immediately if possible.
Health Tips
if possible don't take medication without consult to dentist.