How do I get invited to parties?
Have friends that hold parties.
Become good friends with a social butterfly, or be someone's trusty friend who's always here. Now the steps to do those things is a completely different topic.
Have friends
Be enjoyable to be around
Be ok with drinking and drugs
Know how to talk to girls without being weird