mIRC Home    About    Download    Register    News    Help

Print Thread
#4916 04/01/03 08:40 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline OP
Hoopy frood
OP Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
on ^1:quit:{
echo $colour(quit) $active $timestamp D3m0nicChaos Quits:8 $nick 12( $+ $address $+ )( $+ $1- $+ )15 $calc($nick($active,0,a) - 1) 4Chatters
halt
}


ok having a bunch of trouble figuring out how to make it post in a channel regardless of where i am .... but thats what i have for and active window ...... i want it to work for only the channel window ..... along the lines of my one for joins and parts ...... which work fine

on ^1:join:#: {
echo $colour(join) $chan $timestamp D3m0nicChaos Joins:8 $nick 12( $+ $address $+ )15 $nick($chan,0,a) 4Chatters
halt
}
on ^1:part:#:{
echo $colour(part) $chan $timestamp D3m0nicChaos Parts:8 $nick 12( $+ $address $+ )( $+ $1- $+ )15 $calc($nick($chan,0,a) - 1) 4Chatters
halt
}
on ^1:kick:#:{
echo $colour(kick) $chan $timestamp D3m0nicChaos Kicks:8 $knick 12was KICKED by $nick 7 Reason:( $+ $1- $+ )15 $calc($nick($chan,0,a) - 1) 4Chatters
halt
}


these 3 work fine but im having trouble identifying a channel for the window and user count ..... it seems to only work if im veiwing active channel like this but atleast its showing me something now LoL
ty for anyhelp u can give me


D3m0nnet.com
#4917 04/01/03 09:03 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline OP
Hoopy frood
OP Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
LoL ok found it out myself ..... here it is for anyone wondering

on ^1:quit:{
echo $colour(quit) $chan(1) $timestamp D3m0nicChaos Quits:8 $nick 12( $+ $address $+ )( $+ $1- $+ )15 $calc($nick($chan(1),0,a) - 1) 4Chatters
halt
}


D3m0nnet.com
#4918 05/01/03 06:52 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
You have to loop through $comchan($nick,%i) to get the quit message in all the appropriate channels.
Code:

on ^*:QUIT:{
  if ($1-) var %reason = ( $+ $1- $+ )
  var %i = 1
  while ([color:red]$comchan($nick,%i)[/color]) {
    echo $color(quit) -ti2 [color:red]$ifmatch[/color] * Quits: $nick ( $+ $address $+ ) %reason
    inc %i
  }
}


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#4919 06/01/03 06:49 AM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline OP
Hoopy frood
OP Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
ok that works yes but it doesnt pull a count of the users in the channel and deduct one from it as they quit??


D3m0nnet.com
#4920 06/01/03 07:10 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Not until after all the on QUIT events in all your script files have completed, otherwise they wouldn't fire correctly. cool


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#4921 06/01/03 07:12 AM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline OP
Hoopy frood
OP Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
ok i messed around a bit with it and i came up with this and it seems to take the count and its works ...... altho im not in multiple channels to see if it does work for all chans im in .... let me know if it seems decent to u

on ^1:quit:{
if ($1-) var %reason = ( $+ $1- $+ )
var %i = 1
while ($comchan($nick,%i)) {
echo $color(quit) -ti2 $ifmatch * D3m0nicChaos Quits:8 $nick 12( $+ $address $+ ) %reason 15 $calc($nick($comchan($nick,%i),0,a) - 1) 4Chatters
inc %i
}
halt
}


D3m0nnet.com
#4922 06/01/03 07:20 AM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline OP
Hoopy frood
OP Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
ok and just for the hell of it i went and sat in a channel thats got em going in and out and flipped it back to my chan to not look in on that chan and it didnt post any quits to my chan from thier chan and it took the correct count in both chans from ppl quitting ....... so id have to assume that works LOL


D3m0nnet.com

Link Copied to Clipboard