Do some looking up on the following things:
And look in the snippets forum for spell_routines.inc. It'll handle interrupts, stuns, oom, and all that shit.
The code honestly sucks, but you have a good starting idea. Build upon it and it'll grow to something respectable.
[quote="dont_know_at_all"][quote="sybarite"]Um.. search works fine for me (used spell_routines.inc)... Try scrolling down you lazy fuck.
http://www.macroquest2.com/phpBB2/viewtopic.php?t=8964&highlight=spellroutines+inc[/quote]
That's great but he's looking for move.inc, you fucking spastic colon.[/quote]