What kind of pills or treatment can somebody get for joint pain?

Depends. Usually with joint pain that is common stiffness or osteoarthritis can be treated first line with otc tylenol, (acetaminophen) and/or nsaids like Ibuprofen and naproxen. Failing that you should see your doctor for more evaluation and possible prescription treatment.
Eval. Stretching, heat from a shower or heating pad (don't get burned), massage, & acupuncture can help. Nonsteroidal anti-inflammatory drugs (NSAIDS) can help with both pain relief and in reducing inflammation. Examples are ibuprofen (like Advil, Nuprin or Motrin), Naproxen sodium (like Aleve, (naproxen) Naprosyn, Anaprox) or Asprin (such as Bayer, Ecotrin, Ascriptin). Avoid NSAID's if pregnant or allergic.
Lots. There are innumerable pills for joint pain. The key is figuring out the reason for the joint pain. Arthritis or acute joint pain may respond to Ibuprofen or similar drugs. Rheumatoid and other systemic arthritis respond to fancier medicines that affect the immune system. Some people find glucosamine supplements to be helpful for some joint pains too. Best idea is to talk to your doctor.