Search a lil around in this forum. I've answered this question before... ad the answer was quite long at least for arrow spells.Have a look here @ my first post.For arrowspells look here:
http://www.wc3campaigns.net/showthread.php?t=82424
For standard abilities like slow or curse, just detect when the "<order>on" is issued and store it somewhere (this isn't actually required if you wanna do a spell like curse or slow). You always need a trigger that gets executed when the effect of your spell is started,cast,finished etc.