mIRC Home    About    Download    Register    News    Help

Print Thread
#66452 04/01/04 12:43 AM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline OP
Hoopy frood
OP Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
The familiar -uN switch (used in variables, among other things) could be added to /enable and /disable. For example, the command:
///enable -u3 #blah
would be the same as:
//enable #blah | .timer 1 3 disable #blah

The .unset property should also be added to $group() and would function like in $hget().unset ($var().unset would also be a great idea btw).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#66453 05/01/04 11:51 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
While I dont use groups, I like this idea


Those who fail history are doomed to repeat it
#66454 05/01/04 12:07 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
maybe not used for just groups, could be used for everything.. /part -uN - /hop -uN - /cycle -uN - /exit -uN .. many timers you could remove in a big script if that option was avalible? smile same with the op commands.. kick - op - deop .. so i think that would be a great function to add grin


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#66455 05/01/04 12:17 PM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Yeah true, it could be used for a lot of commands and there already is a "delay command" for ops/voices (/pop & /pvoice)


Those who fail history are doomed to repeat it
#66456 05/01/04 12:37 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
in the "auto op" list yes.. but you could use it in your script too.. "for the bot creators".. !op give the person op after XX secconds.. wink


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#66457 06/01/04 01:58 AM
Joined: Apr 2003
Posts: 426
Fjord artisan
Offline
Fjord artisan
Joined: Apr 2003
Posts: 426
Oh my!

This is one of the best suggestions I've seen here lately!

Bravo!

It certainly would take a much needed load of using timers.

Timers have their place, and its in the bin (thats my opinion, and I'm sticking with it)!


--------
mIRC - fun for all the family (except grandma and grandpa)
#66458 07/01/04 03:42 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
I wouldnt use the -uN option anyway, not as it is right now.

The -uN options seems to act like the -z option, rather than waiting N seconds then unsetting, it decreases N by one once per second then unsets when N reaches zero.

Say u go "set -u10 %test BLAH" and then 4 seconds later the N value would be down to 6 and then another script executes that causes a large time delay say 15 seconds, when that script finishes, N still equals 6 and 6 seconds later %test is unset.

Thats alot different from going "set %test BLAH | .timer 1 10 unset %test", after the 4 seconds the other script goes off, and after that 15 seconds the timer goes off and %test unsets, even thats not an exact 10 seconds but we all know timers dont run tell the running script stops.

#66459 08/01/04 02:49 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Yeah, good idea.

#66460 08/01/04 02:52 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
!op give the person op after XX secconds
That is what /pop (and /pvoice) does. wink


Link Copied to Clipboard