hi, Nsaids are cox-inhibitors (cox1 or cox2). try to google that, think there are enough infos. basically Nsaids inhibiting prostaglandins and other enzyms so no swelling and inflammation occurs.
cheers