Your pharmacist will be able to offer you other things. Your doctor will also be able to prescribe you certain medications if it's really bad.
You can also look into kratom - completely legal, much safer than what your doctor might give you and it will help but since you need it now and good kratom usually has to be imported, it might only get here by the time it's all over!
I don't know any specifics of bunion surgery but if skin level inflammation/swelling is an issue tea tree oil will help.