mIRC Home    About    Download    Register    News    Help

Print Thread
#240432 02/02/13 11:41 PM
Joined: Feb 2013
Posts: 4
Q
Self-satisified door
OP Offline
Self-satisified door
Q
Joined: Feb 2013
Posts: 4
What I want to do is list everyone that is in a certain channel. For example, if Jack, Cole, Henry, and Jasmine are in a channel, I would like to use a command to say "(me) notifies: Jack Cole Henry Jasmine that the movie is starting."

I know this is possible because I've seen others use it before. I can write only basic mIRC scripts and I'm not very good so I appreciate all the help I can get. Thanks.

Joined: Oct 2009
Posts: 24
Ameglian cow
Offline
Ameglian cow
Joined: Oct 2009
Posts: 24
Here is a way to do it.

To trigger it use " /welcome " in the channel you want it to shwo in.
Quote:
"[23:54] * ShadowGoof notifies: ShadowGoof MrMorden Conundrum that the movie is starting."

Code:
alias welcome { 
  var %t 1 | while (%t <= $nick($chan,0)) {
    var %people $instok(%people,$nick($chan,%t),0,32)
    inc %t
  }
  describe $chan notifies: %people that the movie is starting.
}

Joined: Feb 2013
Posts: 4
Q
Self-satisified door
OP Offline
Self-satisified door
Q
Joined: Feb 2013
Posts: 4
Thanks, that's exactly what I needed!

Joined: Oct 2012
Posts: 164
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
Code:
alias welcome { 
  var %t = 1 | while ($nick($chan,%i)) {
    var %people = %people $v1
    inc %t
  }
  describe $chan notifies: %people that the movie is starting.
}

Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
alias welcome { describe # notifies: $regsubex($str(.,$nick(#,0)),/./g,$nick(#,\n) $chr(32)) that the movie is starting. }


The while loop method is neater, just wanted to join in :p


Link Copied to Clipboard