Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
"Random" question
Forums
Active Threads
Search
Who's Online
Help
Print Thread
"Random" question
#
250065
01/01/15
05:23 PM
Joined:
Sep 2014
Posts: 52
paper0rplastic
OP
Babel fish
OP
paper0rplastic
Babel fish
Joined:
Sep 2014
Posts: 52
I know how to pick a random nick from all present in the channel - $nick(#,$r(1,$nick(#,0))) - But I was wondering if there was a way to exclude certain nicks from being chosen. I am trying to exclude 3 nicks from being chosen when I run my command.
Copy Link to Clipboard
Re: "Random" question
paper0rplastic
#
250066
01/01/15
05:54 PM
Joined:
Jul 2006
Posts: 4,150
France
W
Wims
Hoopy frood
Wims
Hoopy frood
W
Joined:
Jul 2006
Posts: 4,150
France
var %n
while (1) {
var %n $nick(#,$r(1,$nick(#,0)))
if (!$istok(nick1 nick2 nick3,%n,32)) break
}
return %n
#mircscripting @
irc.swiftirc.net
== the best mIRC help channel
Copy Link to Clipboard
Re: "Random" question
Wims
#
250067
01/01/15
06:13 PM
Joined:
Sep 2014
Posts: 52
paper0rplastic
OP
Babel fish
OP
paper0rplastic
Babel fish
Joined:
Sep 2014
Posts: 52
Thank you Wims!
Edit: For some reason the command failed to work until I removed "return %n"
Last edited by paper0rplastic;
01/01/15
06:45 PM
.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage