You should not using $ticks as a timer name, two iterations of the loop could be done without $ticks changing.
Each timer executes one command here, you don't need to name them


#mircscripting @ irc.swiftirc.net == the best mIRC help channel