mIRC Homepage
Posted By: _D3m0n_ On ^1:Quit: { - 04/01/03 08:40 PM
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
Posted By: _D3m0n_ Re: On ^1:Quit: { - 04/01/03 09:03 PM
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
}
Posted By: Hammer Re: On ^1:Quit: { - 05/01/03 06:52 AM
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
  }
}
Posted By: _D3m0n_ Re: On ^1:Quit: { - 06/01/03 06:49 AM
ok that works yes but it doesnt pull a count of the users in the channel and deduct one from it as they quit??
Posted By: Hammer Re: On ^1:Quit: { - 06/01/03 07:10 AM
Not until after all the on QUIT events in all your script files have completed, otherwise they wouldn't fire correctly. cool
Posted By: _D3m0n_ Re: On ^1:Quit: { - 06/01/03 07:12 AM
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
}
Posted By: _D3m0n_ Re: On ^1:Quit: { - 06/01/03 07:20 AM
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
© mIRC Discussion Forums