mIRC Home    About    Download    Register    News    Help

Print Thread
#78561 09/04/04 12:40 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
I need some help.
How can I tell if someone is on my notify list. (I wanted to change the color of them on the nicklist, thats why I need this)
Also, how would I know if someone on my notify list is ON or NOT with some kind of code.
Like So I can do an alias
buddys {
Buddies On:
Mew
Mew2
Mew3
Buddies Off:
Bob1
Bob2
}
smile
-Kriminal (Aka Mew)


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#78562 09/04/04 12:53 AM
Joined: Nov 2003
Posts: 67
C
Babel fish
Offline
Babel fish
C
Joined: Nov 2003
Posts: 67
Code:
ON *:JOIN:#:{
  if ($nick isnotify) { cline 02 $chan $nick }
}
ON *:NOTIFY:{
  if ($comchan($nick,1)) {
    var %i = 1
    while ($comchan($nick,%i)) {
      cline 02 $ifmatch $nick
      inc %i
    }
  }
} 


irc.universochat.net
#escripting
#78563 09/04/04 01:38 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
ON *:JOIN:#:{ if ($nick isnotify) { cline 10 $chan $nick } }
ON *:NOTIFY:{ buddies $nick }
alias buddies {
if ($comchan($1,1)) { var %i = 1
while ($comchan($1,%i)) {
cline 10 $ifmatch $1
inc %i }
}
}
alias colornicklist { var %i = 1
while (%i <= $nick(#,0)) {
var %color.nick = $nick(#,%i)
if ($nick(#,%i) isnotify) { buddies $nick(#,%i) }
if (%color.nick isop #) && (%color.nick isvoice $chan) && ($nick !isnotify) { cline $remove(%color.op,$chr(44),@,01,) # %color.nick }
if (%color.nick isop #) && ($nick !isnotify) { cline $remove(%color.op,$chr(44),@,01,) # %color.nick }
if (%color.nick ishop #) && ($nick !isnotify) { cline $remove(%color.hop,$chr(44),%,01,) # %color.nick }
if (%color.nick isvoice #) && ($nick !isnotify) { cline $remove(%color.vop,$chr(44),+,01,) # %color.nick }
if (%color.nick isreg #) && ($nick !isnotify) { cline $remove(%color.reg,,01,$chr(44)) # %color.nick }
inc %i
}
}
on *:TEXT:*:#:{ colornicklist $chan }
Dont mind the %color.vop,$chr(44) stuff ect.
Just tell me if the && ($nick !isnotify) and if ($nick(#,%i) isnotify) { buddies } would work as well as:
ON *:JOIN:#:{ if ($nick isnotify) { cline 10 $chan $nick } }
ON *:NOTIFY:{ buddies $nick }
alias buddies {
if ($comchan($1,1)) { var %i = 1
while ($comchan($1,%i)) {
cline 10 $ifmatch $1
inc %i }
}
}
-Mew ||Kriminal|


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#78564 09/04/04 02:02 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Now I need an alias that'll do
buddieson {
Buddies Online:
their nicks
Buddies Offline:
their nicks
Total Buddies: 12
}
Ty, Mew~


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#78565 09/04/04 02:12 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
alias buddieson {
  echo -a Buddies online:
  var %i = 1,%n = $notify(0)
  while ( %i &lt;= %n ) {
    if ( $notify(%i).ison ) echo -a $notify(%i)
    inc %i
  }
  echo -a Buddies offline:
  var %i = 1
  while ( %i &lt;= %n ) {
    if ( !$notify(%i).ison ) echo -a $notify(%i)
    inc %i
  }
  echo -a Total Buddies: %n
}

#78566 09/04/04 02:16 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Thanks Collective, I was messing with $notify and I was putting like $notify(1) and found out it returned the 1st nick on my notify :P - So All I was stuck with was how to find out if a nick was on, Thanks wink - Now is there a way to return the server that they're on? ;/


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#78567 09/04/04 02:30 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
alias listb { msg $active $talker1(Buddie Info) | buddieson | buddiesoff | msg $active Buddies Online: %on | msg $active Buddies Offline: %off | msg $active Buddies: $notify(0) }
alias buddieson { unset %on
msg $active Online:
var %x = 1
while (%x <= $notify(0)) { if ($notify(%x).ison) { msg $active $notify(%x) | inc %on }
inc %x
}
}
alias buddiesoff { unset %off
msg $active Offline:
var %x = 1
while (%x <= $notify(0)) { if (!$notify(%x).ison) { msg $active $notify(%x) | inc %off }
inc %x
}
}
I want it to show what server they're on too. Any Clue how? ;P


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#78568 09/04/04 03:16 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
There's also internal way to color the nicklist.
mIRC addressbook(alt+b)
Colors tab
[Add]
Lists: [x] Notify


Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard