mIRC Home    About    Download    Register    News    Help

Print Thread
#77800 04/04/04 04:14 AM
Joined: Dec 2003
Posts: 10
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2003
Posts: 10
Okay, on some networks, the server notices you when you are killed:

Command:
:SomeOp KILL you :server!SomeOp (Cya.)

Output in status:
[00:00] * You were killed by SomeOp (server!SomeOp (Cya.))
[00:00] * Closing link: you (you@somewhere.com) ([server] Local kill by SomeOp (Cya.))
[00:00] * Disconnected.

Is there a remote event to catch the KILL command?

#77801 04/04/04 05:13 AM
Joined: Dec 2002
Posts: 79
F
Babel fish
Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
on *:SNOTICE:*:{
if (kill isin $1-) { do stuff }
}

#77802 04/04/04 05:15 AM
Joined: Dec 2003
Posts: 10
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2003
Posts: 10
That doesn't always work, for example, on server where kills are sent in snotices.

Plus it would trigger anytime anyone was killed, not just the person running the script.

#77803 04/04/04 05:19 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
I don't think you can catch the KILL itself (unless you listen to every incoming message using the -i switch of /debug) but it is possible to catch the following "closing link" error:

On *:error:*kill*: echo 4 -s * $5-

#77804 04/04/04 08:07 AM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
I use ON ERROR with 100% success.

#77805 05/04/04 10:30 PM
Joined: Dec 2003
Posts: 10
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2003
Posts: 10
Yes, that's what I ended up doing, but I used
Code:
 on *:ERROR:Closing link*kill*: 

which is probably a bit more accurate smile

thanks a bunch! laugh

Last edited by aquanight; 05/04/04 10:31 PM.

Link Copied to Clipboard