stones are a recurrent problem. if you have a kidney stone, chances of your having another stone in next 8-10 years is around 50%. so cause of your repeated pain attacks may be that you are forming new stones which while passing down the kidney tubes cause you pain. Surgery does not prevent new stone formation. Each episode has to be treated as a separate disease, some will require medicines only, some will require surgery. go see your urologist
for further evaluation and treatment.