mIRC Home    About    Download    Register    News    Help

Print Thread
Highlight/beep/notify help #240432 02/02/13 11:41 PM
Joined: Feb 2013
Posts: 4
Q
qwopqwop Offline OP
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.

Re: Highlight/beep/notify help [Re: qwopqwop] #240434 03/02/13 04:57 AM
Joined: Oct 2009
Posts: 24
Scakk Offline
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.
}

Re: Highlight/beep/notify help [Re: qwopqwop] #240435 03/02/13 07:06 PM
Joined: Feb 2013
Posts: 4
Q
qwopqwop Offline OP
Self-satisified door
OP Offline
Self-satisified door
Q
Joined: Feb 2013
Posts: 4
Thanks, that's exactly what I needed!

Re: Highlight/beep/notify help [Re: Scakk] #240452 06/02/13 01:40 AM
Joined: Oct 2012
Posts: 164
D
Deega Offline
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.
}

Re: Highlight/beep/notify help [Re: qwopqwop] #240648 19/02/13 08:20 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
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