mIRC Homepage

A Way To Timeout All?

Posted By: AeonPsych

A Way To Timeout All? - 03/08/15 10:59 PM

Hello,
is there a way to timeout everyone in the current chat? I know you can do /timeout $nick but I am asking if there is a way to do anyone/everyone currently in chat at whatever time the command would be triggered.

Or is there a way to pick a random $nick to timeout from a current list of users?
Posted By: Nillen

Re: A Way To Timeout All? - 04/08/15 08:56 AM

$nick(#,0) will return all nicks in the channel.
This is all the information you need to know to make a script to timeout all / random.

Assuming you want a remote text event, here's a randomp picker for you.
Code:
on *:text:!random:#: { 
var %nicks $nick(#,0)
msg # There are %nicks users in this channel right now.
var %rng $rand(1,%nicks)
var %nick $nick(#,%rng)
msg # The user I randomly selected is %nick $+ .
}


Let me know if you need further explanations. Try to use the help files before asking for help though. Here are some useful reads.

/help variables
/help on text
/help if then else
/help <insert random identifier here>
© 2020 mIRC Discussion Forums