When you say "self-sex" do you mean that you just masturbate, but do not do anything else sexual with another person? If that is the case, then there is a good chance that you are fine. Masturbation is safe. You can't really catch anything from yourself. If you do not mean masturbation, then I do not know what you mean by "self-sex."
Warts, or what appears to be warts, is not always HPV. You really cannot diagnose yourself when it comes to that kind of stuff.
Talk to your doctor. He or she would be able to tell you why you have warts as well as if you can get rid of them, how long you will have them, and every other question that you would want to know. All of those answers will depend on exactly why you have the warts, and we can't diagnose you in order to answer those questions. Only a doctor can diagnose you.