mIRC Home    About    Download    Register    News    Help

Topic Options
#38411 - 26/07/03 03:11 PM randomvoice
JuZt3r Offline
Pikka bird

Registered: 22/12/02
Posts: 14
Loc: Norway \ Ostfold \ Sarpsborg
I want to make a ramdomvoice or somthing. but dont know what to do. so if any one who knows, can give me som topics to read or somthing..

Top
#38412 - 26/07/03 03:19 PM Re: randomvoice
LocutusofBorg Offline
Hoopy frood

Registered: 23/03/03
Posts: 1271
Loc: Sunnydale, CA
All depends on what exactly you mean with randomvoice.
If you want to voice specified users, use
Code:
on @AV:JOIN:[color:red]#channelname[/color]: { .mode # +v $nick }

(don't forget the change the part in red) and add the users you wanna voice as AV in yuor userlist with
Code:
/guser AV nick-here 3

or something similar.
_________________________
DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius

Top
#38413 - 26/07/03 03:25 PM Re: randomvoice
JuZt3r Offline
Pikka bird

Registered: 22/12/02
Posts: 14
Loc: Norway \ Ostfold \ Sarpsborg
i was stupid and didt say what i wanted. ;D

I want a command that just voices ppl random.. lik if i use
/rvoice i will voice user1 or user20

;D

Top
#38414 - 26/07/03 03:25 PM Re: randomvoice
FunChatter Offline
Fjord artisan

Registered: 11/12/02
Posts: 339
Loc: Athens, Greece
I guess (s)he means not peoples from avoice list just a random person when she uses /ranvoice?

Top
#38415 - 26/07/03 03:31 PM Re: randomvoice
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
Code:
/alias rvoice mode $$chan +v $nick(#,$rand(1,$nick(#,0,r)),r)
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#38416 - 26/07/03 10:45 PM Re: randomvoice
KingTomato Offline
Planetary brain

Registered: 04/01/03
Posts: 3012
Loc: New Hampshire, USA
Just maybe add a little more onto your code qwerty, rather than just looking at the regulars list, how about all whom do not have a voice. >:D

Code:
alias rvoice { mode $$chan +v $nick(#,$rand(1,$nick(#,0,a,v)),a,v) }
_________________________
-KingTomato

Top
#38417 - 27/07/03 09:02 AM Re: randomvoice
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
I figured he wouldn't want to voice an op/halfop for example, but your code nicely demonstrates the usage (and usefulness) of $nick().
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top