mIRC Home    About    Download    Register    News    Help

Topic Options
#176719 - 13/05/07 05:35 PM on *:KILL:{ }
Jigsy Offline
Hoopy frood

Registered: 18/11/04
Posts: 799
Loc: I live inside your computer. S...
I'm surprised this hasn't been suggested before, (Well, it might of been, but search shows no results for "on KILL".) but a simple on KILL function (Whatever it is?) which triggers once you've been killed from a network.

I know it's possible with debugging and signalling, but all you'd need to do is check for:

Quote:

[17:33:21] <- :*.ForTheGamers.Org KILL Jigsy :*.ForTheGamers.Org (test kill)


Comments/flames appreciated.
_________________________
This signature is currently out of order. We apologize for the inconvenience.

Top
#176724 - 13/05/07 06:03 PM Re: on *:KILL:{ } [Re: Jigsy]
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
Raw events were designed exactly for this purpose: to catch events not supported natively. So something like this should work:
Code:
raw KILL:*:{ commands }

Edit: just found a log on the net of a conversation I had with Saturn some time ago, where he showed that raw wouldn't catch a KILL message. I'm not sure if this is still the case in 6.21 but if it is, it is a bug.

Edit 2: Saturn confirmed that it still doesn't work

Edit 3: ..and here's why. I guess I should have used the search feature shocked


Edited by qwerty (13/05/07 06:49 PM)
_________________________
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Top
#176783 - 14/05/07 04:41 AM Re: on *:KILL:{ } [Re: qwerty]
The_JD Offline
Fjord artisan

Registered: 28/03/06
Posts: 392
Loc: New South Wales, Australia
Originally Posted By: Khaled
This is in fact by design, mIRC does not trigger a KILL event when you are killed. Also, in some cases mIRC will not attempt a reconnection after a kill, depending on the type of kill.


I can not understand why the KILL would not be allowed by Khaled to be scripted, But I doubt we can change his mind.

I would very much so like to see this happen in the NEAR future.

However, A work around would be to either change to using a socket proxy (then send signal if $2 == KILL) or use the debug alias... Allthough I won't go into detail on how to do them, I'm sure you can find something on the boards.
_________________________
[02:16] * Titanic has quit IRC (Excess Flood)

Top
#177454 - 25/05/07 01:07 AM Re: on *:KILL:{ } [Re: The_JD]
Rand Offline
Fjord artisan

Registered: 28/02/05
Posts: 342
"Kill" doesn't have it's own event because, as far as I know, the way a "Kill" happens is variable. It's integrated into the quit message.

UnrealIRCd for example may use:
**** Quit: SomeNick (ident@host.com) [name.of.server.com] Local kill by SOME_OPER (KILL_MESSAGE)

While DALnet will just use:
**** Quit: SomeNick (ident@host.com) Killed blahblahblah

That's just my guess.

Edit: I misunderstood what was being asked.

KILL just triggers for the person being killed. I was thinking someone wanted a way to script their kills seperately from their quits, when it happens to other people.

Anyway, yeah.


Edited by Rand (25/05/07 01:26 AM)

Top
#177466 - 25/05/07 03:04 PM Re: on *:KILL:{ } [Re: Rand]
vexed2 Offline
Fjord artisan

Registered: 31/03/07
Posts: 218
Also, we're on IRCX servers, the message gets relayed to the status window, i'm 99.9% sure that the on kill event was scriptable in older versions. But i think you should at least be able to script it again.

Top
#177480 - 25/05/07 04:29 PM Re: on *:KILL:{ } [Re: vexed2]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
if the message is showing, then a script can be written to match the message. The fact that it's showing in the status window simply means that the event will have to monitor all possible locatons, ie: use the * for the location in an ON TEXT or ON NOTICE events. As this is probably coming from the server, I suspect using the ON SNOTICE event would be the proper one.

Top
#177483 - 25/05/07 04:57 PM Re: on *:KILL:{ } [Re: RusselB]
Sat Offline
Hoopy frood

Registered: 19/04/04
Posts: 838
Loc: The Netherlands
Quote:
if the message is showing, then a script can be written to match the message.

Now you've done it, the misinformation in this latest post of yours forces me to use bold. There is NO event triggered for incoming 'KILL' messages. AT ALL. And yes, this should really be fixed, if only by making such messages trigger 'raw KILL'.
_________________________
Saturn, QuakeNet staff

Top
#177485 - 25/05/07 05:15 PM Re: on *:KILL:{ } [Re: Jigsy]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2010
There should be a KILL event. In the meantime,
to catch it could you not use the ERROR event?

It looks like someone needs to take a pill. shocked


Edited by RoCk (25/05/07 05:18 PM)

Top
#177498 - 25/05/07 11:41 PM Re: on *:KILL:{ } [Re: Sat]
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
I must disagree with you, Sat, since I stated the condition
Quote:
if the message is showing

in my post that must be matched in order for a script to work. If that message, irrelevant as to the method of sending the message, does not exist to the client, then a script cannot be used.

As an IRCop on 2 networks, I have the ability to see kill notices sent by the server, and therefore, I am able to use a script in relation to those snotices, using the ON SNOTICE event.


Top
#177499 - 26/05/07 12:49 AM Re: on *:KILL:{ } [Re: RusselB]
Sat Offline
Hoopy frood

Registered: 19/04/04
Posts: 838
Loc: The Netherlands
Yes, mIRC shows the KILL message. It looks like this in the status window:

* bar killed by foo (reason here)

The point of this thread was that no corresponding event triggers when one comes in. Hence, no script can be written to act on such messages.

All of this is completely unrelated to server-generated NOTICE messages (which do trigger an event, that is, the "on SNOTICE" event), so I'm not sure why you have brought that up twice now.
_________________________
Saturn, QuakeNet staff

Top
#177519 - 26/05/07 03:13 PM Re: on *:KILL:{ } [Re: RusselB]
vexed2 Offline
Fjord artisan

Registered: 31/03/07
Posts: 218
Originally Posted By: RusselB
As an IRCop on 2 networks


You stated in another thread that the 2 networks were unrealircd, those are NOT ircx.

Top