everyone who's ever run a loop or screwed up a while loop or an if loop knows that mirc freezes when looping.
Download a DLL called "whilefix.dll" from
www.mircscripts.org and you won't ever freeze mirc during a loop again.
An example of using it in a script:
wait {
var %time $calc($ticks + $1)
while (%time >= $ticks) {
dll WhileFix.dll WhileFix
;do what you want here
}
return
}