mIRC Home    About    Download    Register    News    Help

Print Thread
#18464 07/04/03 01:52 PM
Joined: Apr 2003
Posts: 7
I
Icekenz Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Apr 2003
Posts: 7
i need to count how many pple are online and offline. what i did cant work for me.

alias load.notify {
if ($dialog(switchbar)) {
did -r switchbar 2
var %y = 1
while (%y <= $scid(0)) {
scon %y
did -i switchbar 2 1 cb root
did -a switchbar 2 +eb $iif($status != disconnected,1 1,2 2) $iif($status == connected,$scon(%y).network $+ $chr(9) $+ $me $chr(91) $+ $usermode $+ $chr(93) on $scon(%y).server $+ : $+ $port,Not connected $+ $chr(9) $+ Not connected)
did -i switchbar 2 1 cb last
did -a switchbar 2 +eb 3 3 Online ( $+ $notify(%x) $+ )
did -i switchbar 2 1 cb last
var %x = 1
while (%x <= $notify(0)) {
if ($notify(%x).ison == $true) {
did -a switchbar 2 +c 3 3 $notify(%x)
}
inc %x
}
did -i switchbar 2 1 cb up
did -a switchbar 2 +eb 4 4 Offline ( $+ $notify(%x) $+ )
did -i switchbar 2 1 cb last
var %x = 1
while (%x <= $notify(0)) {
if ($notify(%x).ison == $false) {
did -a switchbar 2 +c 4 4 $notify(%x)
}
inc %x
}
inc %y
}
did -i switchbar 2 1 cb up
}
}

it will get Online () and Offline ()

confused
crazy

#18465 08/04/03 12:27 AM
Joined: Dec 2002
Posts: 332
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
not sure how you exactly want to do it but you could just use
/notify and use the raws to calculate 604 is online and 605 is offline


Link Copied to Clipboard