Applying Ointment to a Burn on Shabbat

If one accidentally spills boiling hot water on their skin on Shabbat, can they use cream or medication on the burn?

Yes, whenever it is hurting to the point that one feels he can’t go on normally, they can take medication.

RABBI SHAY TAHAN