the discharge definitely sounds like an infection.. i would get that checked out asap as they increase your risk for preterm labor... My discharge dries a bit yellow depending on how heavy it is but it is generally milky white wet.... tmi i know...
Im almost 27 weeks now but since like 24-25 weeks, I have had pain down my sides when I walk... generally around my hips shooting down into my thighs.. I dont find they shoot into my vagina but I have had shooting pains periodically in my vagina... was told it could be the baby kicking it.. generally a good test to do would be to lay down on your left side and see if that relieves the pain... if your laying down when it happens, try to change positions...
the pains in the vagina could also be related to an infection so I would make an appointment asap for that..
I'm 26 weeks, the sharp pains can be normal, but it's always good to bring it up to your dr, however with the spotting and discharge I would call immediately, because the green discharge could mean infection. Please call or be seen by a dr soon.