you can say that no relevant link between smoking and panic attacks except that smoking, anxiety and caffeine may predispose to panic attacks, although you should stop smoking because of it's hazards, atopping smoking will not be you major step to treat panic attacks.
panic disorder is a disease which needs first to be diagnosed and confirmed clinically and then treatment starts.
medications suchas SSRI are mood stabilizers which are used to treat panic disorder also other medications including sedatives may be used in the treatment according to the case. also sessions of cognitive behavioural therapy may be needed to help you make control on your panic attacks.
as a help to relieve the intensity of attacks try to take deep slow breathes.
as a summary you need a psychiatrist who will help you in
1- confrm the diagnosis of panic disorder
2-prescribe youthe suitable medications.
3-asses if you need sessions of cognitive behavioural therapy.
also you need a psychological support from your family