mIRC Home    About    Download    Register    News    Help

Print Thread
#189615 09/11/07 07:04 PM
Joined: Jun 2004
Posts: 243
G
gomp Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Jun 2004
Posts: 243
I wish a timer I set, to be random, what do I do?

Like; $iif($opnick == Gomp,.timer 1 random /mode #spiritual -o Gomp)


And if you are one of those who come here to say I could use the /help, then please know that I tested that! smile ..tell me how to find it, using the /help in stead, I might learn something..

"The worst teachers, are the ones who know too much!" wink ..relative the the one they are "trying" to help!

Last edited by gomp; 09/11/07 07:19 PM.

I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.
gomp #189616 09/11/07 07:16 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Use $rand(minimum, maximum)

For example:
Code:
$iif($opnick == Gomp,.timer 1 $rand(1,10) /mode #spiritual -o Gomp)

Would randomly set the timer to trigger between 1 and 10 seconds.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Jun 2004
Posts: 243
G
gomp Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Jun 2004
Posts: 243
Thanks! That is all I need! smile

But, just cause I am curius, is there any way to just make it random?

I like to learn! wink


I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.
gomp #189618 09/11/07 07:18 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
$iif($opnick == Gomp,.timer 1 $rand(1,300) /mode #spiritual -o Gomp)

will give you a random number from 1 second to 5 minutes

LOL: you beat me!

Anyhoo Yes, you can make it random with the $rand() command.

$rand(nth,nth) from,to

Last edited by Lpfix5; 09/11/07 07:19 PM.

Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Lpfix5 #189619 09/11/07 07:21 PM
Joined: Jun 2004
Posts: 243
G
gomp Offline OP
Fjord artisan
OP Offline
Fjord artisan
G
Joined: Jun 2004
Posts: 243
Thanks though! smile

:love:

Last edited by gomp; 09/11/07 07:22 PM.

I do not speak English. I speak Norwegian. So please bear with my poor English spelling and grammar.

Link Copied to Clipboard