Well, the easiest way would be to copy already existing spells and change the various parameters, take a look at Spell.dbc.
Check out Taliis, it's the best one I know of.
You'll need to make a patch, an MPQ. I think there's a tutorial for that.
Oh, and this might also help get you going:
Spell Tutorial