In addition to what Horstl said, your code doesn't really make sense.

set -u30 implies the variable will stay set for 30 seconds. The time starts counting *after* your script has ended, but you immediately /set -k to stop this timer, making both switches unnecessary. Since the switches are not needed you can replace the latter /set command with a much simpler /inc command which increases by optional argument N (defaulting to 1).

The proper way to loop from 1 to 5 is simply:
Code:
var %i = 1
while (%i <= 5) { echo var: %i | inc %i }


Again, I'm not sure what you're trying to do, but -u/-k will have no effect within the same alias/event; they effectively cancel each other out.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"