mIRC Homepage
Posted By: JuZt3r randomvoice - 26/07/03 02:11 PM
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..
Posted By: LocutusofBorg Re: randomvoice - 26/07/03 02:19 PM
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.
Posted By: JuZt3r Re: randomvoice - 26/07/03 02:25 PM
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
Posted By: FunChatter Re: randomvoice - 26/07/03 02:25 PM
I guess (s)he means not peoples from avoice list just a random person when she uses /ranvoice?
Posted By: qwerty Re: randomvoice - 26/07/03 02:31 PM
Code:
/alias rvoice mode $$chan +v $nick(#,$rand(1,$nick(#,0,r)),r)
Posted By: KingTomato Re: randomvoice - 26/07/03 09:45 PM
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) }
Posted By: qwerty Re: randomvoice - 27/07/03 08:02 AM
I figured he wouldn't want to voice an op/halfop for example, but your code nicely demonstrates the usage (and usefulness) of $nick().
© mIRC Discussion Forums