mIRC Homepage
Posted By: vexx0r ON KILL - 29/01/08 05:55 AM
I am an IRCOP on a network and was wondering that if there was a way to reconnect to the server after a local kill.

Currently I have:

on ^*:SNOTICE:*Received KILL message*: { $iif($8 == $me, server serverhere 6667, halt) }

here is how I have the snotice being displayed

(09:23pm) [Server Notice] *** Notice -- Received KILL message for Brad. From werd Path: XXX.XXX.XXX.XXX!werd (uggghhh climax)

I used $iif(c,t,f) cause if it isn't me getting killed I want to log it.. I just want to get the reconnecting working right now and can't seem to do so.

Thanks for any help
Posted By: genius_at_work Re: ON KILL - 29/01/08 06:08 AM
If you are killed, how do you receive a KILL snotice?

-genius_at_work
Posted By: vexx0r Re: ON KILL - 29/01/08 06:10 AM
(09:37pm) [Server Notice] *** Notice -- Received KILL message for werd. From Brad Path: XXX.XXX.XXX.XXX!Brad (i love you sweetcheeks)
-
* You were killed by Brad (XXX.XXX.XXX.XXX!Brad (i love you sweetcheeks))
-
Closing Link: werd[werd@XXX.XXX.XXX.XXX] (Local kill by Brad (i love you sweetcheeks))
-
* Disconnected
-
* Connecting to server

I get them, I am assuming because the message is sent before the kill is active?
Posted By: The_JD Re: ON KILL - 29/01/08 07:08 AM
You will most likely have to use the /server switch.
Anyhow, mIRC dosnt allow you to use raw KILL so you will still have to use the ON SNOTICE.
Posted By: The_JD Re: ON KILL - 29/01/08 07:11 AM
LOL ignore me :P

on ^*:SNOTICE:*Received KILL message*: { $iif($8 == $me $+ ., server serverhere 6667, halt) }

Not sure if you really should halt this... the other option would be

on ^*:SNOTICE:*Received KILL message*:if ($8 == $me $+ .) { server serverhere 6667 }
Posted By: vexx0r Re: ON KILL - 29/01/08 07:45 AM
I only halted it because I was just getting the connect to work. Like I said. plus the halt wouldn't stop it from connecting only halting if the condition isn't true.
Posted By: XTZGZoReX Re: ON KILL - 29/01/08 10:50 AM
@Reaper: You are wrong. The /quote is called several times, meaning the variable is set everytime it's executed.

And yes, the t switch is needed.

Also, there's no on KILL, but you could use on QUIT.
Posted By: LostShadow Re: ON KILL - 29/01/08 07:51 PM
Or on disconnect.

Or on error.
Posted By: Fantas Re: ON KILL - 29/01/08 11:31 PM
on ^*:SNOTICE:*:{
if (kill isin $1-) echo -a $1-
if ($me isin $1-) /server server
}
you can use this to capture and record snotices so you could improve the if ($me isin $1-) /server server to if ($8 == $me) 0r whatever your $ is of one being killed
using this
on *:SNOTICE:*: {
var %i = 1, %output2
while (%i <= $0) {
%output2 = %output2 $chr(40) $+ $ $+ %i == $($+($,%i),2) $+ $chr(41)
inc %i
}
write snotice/ $+ snotice( $+ $date(mmmm.dd.yyyy) $+ ) $+ .txt $day $date(mmmm.dd.yyyy) $asctime(hh:nn:tt:) %output2
}
make a folder in your mirc called snotice and it will write all of them there
Posted By: genius_at_work Re: ON KILL - 30/01/08 05:46 AM
Try:

Code:

on *:ERROR:*local kill*:server $server



-genius_at_work
© mIRC Discussion Forums