mIRC Home    About    Download    Register    News    Help

Print Thread
#93420 09/08/04 07:01 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
how can i make an automated script so when i disconnect or
exit it msgs the chan with something i tried
on 1:disconnect
but it wont msg the channel
i can only get it too echo
but thats no good
pls help
thanks alot

#93421 09/08/04 07:10 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The only thing you can do is make aliases for /disconnect, /exit, and /quit. There's no event for just before a disconnection because a disconnection isn't necessarily caused by mIRC, so mIRC can't trigger code before an event which it doesn't know about.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#93422 09/08/04 07:42 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
In this thread Raccoon explains how to create a dynamic quit message.

You can advance with his idea and include your own /amsg in the QuitMsg alias.

Code:
[color:blue]alias QuitMsg {
  amsg Goodbye!
  return $read(quitmsg.txt,n)
}[/color]

That will work everytime a quit message would appear. But if the connection is killed by the server or gets "reset by Peer", then, as starbucks_mafia noted, there is nothing you can do.

#93423 10/08/04 10:56 AM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
thanx for the replys
:P


Link Copied to Clipboard