Those above have given some great advice...
When self-harm is what you always turn to and you're now giving it up, it is always in your head. There are so many alternatives though, and I suggest you try every single one under the sun until you find exactly what works for you, and continue using that alternative.
Alternatives can vary from
distractions (books, DVDs, music, games),
calming yourself (relaxing baths, relaxing music, meditation, breathing, lying down, sleeping, whatever works for you),
being physical (in a positive way! elastic bands without really harming yourself, squeezing ice, chewing on ice, drawing on yourself with red pen - just please make sure you don't harm yourself in the process) or
expressing emotion (writing things down, talking to someone, talking online, creating art, creating music, etc).
Some links that you might find useful:
Preparing to Stop/Stop trying to not self harm - and start not needing to.
Reasons for Stopping.
The Big Distraction List [Main Site].
I had others but they don't seem to be working for me, but if they do later I'll pass them on to you.
Just remember that RYL is always here for you, that you can do this, and if you're having urges, just speak up about them :)
Take care and good luck
xo