mIRC Home    About    Download    Register    News    Help

Print Thread
#194086 29/01/08 05:55 AM
Joined: Jul 2003
Posts: 46
V
vexx0r Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jul 2003
Posts: 46
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

vexx0r #194087 29/01/08 06:08 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
If you are killed, how do you receive a KILL snotice?

-genius_at_work

genius_at_work #194088 29/01/08 06:10 AM
Joined: Jul 2003
Posts: 46
V
vexx0r Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jul 2003
Posts: 46
(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?

vexx0r #194093 29/01/08 07:08 AM
Joined: Mar 2006
Posts: 395
T
Pan-dimensional mouse
Offline
Pan-dimensional mouse
T
Joined: Mar 2006
Posts: 395
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.


[02:16] * Titanic has quit IRC (Excess Flood)
The_JD #194094 29/01/08 07:11 AM
Joined: Mar 2006
Posts: 395
T
Pan-dimensional mouse
Offline
Pan-dimensional mouse
T
Joined: Mar 2006
Posts: 395
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 }


[02:16] * Titanic has quit IRC (Excess Flood)
The_JD #194095 29/01/08 07:45 AM
Joined: Jul 2003
Posts: 46
V
vexx0r Offline OP
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jul 2003
Posts: 46
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.

vexx0r #194099 29/01/08 10:50 AM
Joined: Sep 2007
Posts: 65
X
Babel fish
Offline
Babel fish
X
Joined: Sep 2007
Posts: 65
@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.


GamerzWoW
The Official GamerzPlanet WoW Server
XTZGZoReX #194122 29/01/08 07:51 PM
Joined: Jan 2004
Posts: 509
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Jan 2004
Posts: 509
Or on disconnect.

Or on error.

vexx0r #194128 29/01/08 11:31 PM
Joined: Dec 2002
Posts: 79
F
Babel fish
Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
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

vexx0r #194138 30/01/08 05:46 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Try:

Code:

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



-genius_at_work


Link Copied to Clipboard