Remember, these aren't silver bullets, but more like body armour.
One of the reasons why I masturbated was because I was lonely, bored, or in a difficult situation. I haven't found the solution to all of these things, and I'd like to hear yours.
To fix the lonely problem, I joined the Aikido club [a martial art] at school and am now working to be credited with 8th Kyu (lowest level
To combat the bored problem, I found that IMing someone to strike up a chat works, then you have them involved because you can't just vanish away. It certainly doesn't work as well as meeting people directly, but it could come in handy in a tight spot.
Meeting people at all times of the day also works. It gives you something to do and look forward to; and goals for you to set which can act as positive reinforcement and get your mind off your habit.
