Congrats! 9 months is a long time, especially when you see addicts on TV bragging about 9 DAYS (ahem, Intervention)
Drugs can be fun. Opiates are an escape from physical and emotional pain, but they're also an escape from boredom, self-doubt and inhibitions--the very feelings that are notorious for trigger relapses in addicts.
My advice is to talk to a doctor about how you're feeling. If you suffer from a mental health condition like depression, you'll never feel better until you address it. Not all depression manifests as sadness, uncontrollable crying and binge eating, especially in men. Feeling empty, bored, restless or anxious can also signal depression, so don't be too quick to dismiss it.
In the meantime I suggest finding a hobby, subject or pursuit that you can lose yourself in. Maybe it's work, fitness or just researching a particular subject of interest. Doesn't matter. Anything to keep you busy and avoiding boredom is positive (besides using). What are your passions? What intrigued you as a child...and before you started using drugs? Start there.
Again, congrats on 9 months. The desire to get high may never leave completely, but in time you'll learn to identify the feelings and events that make the desire stronger and get better at avoiding or dealing with them.
Wishing you a happy 2011!