mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
hi, i need a small script that when i get disconnected then it clears the status window and say something like:

$timestamp * Disconnected xx times
--rest of connection info (like a normal connection)--


i have several servers open so it needs some kind of multi server support of the disconnect #'s and to clear the right status buffer


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
come on, please help


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: May 2004
Posts: 95
W
Babel fish
Offline
Babel fish
W
Joined: May 2004
Posts: 95
do you mean something like:
Code:
on *:disconnect:{ clear -s | echo -s your text here.. } 

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
ok, this is JUST a guess here, but how about something like (first attempt at anything like this):


Code:
on *:disconnect: {
  inc %cid $+ $cid 1
  //scon -at $+ $cid clear -s
  //scon -at $+ $cid echo -ts Connection $cid Disconnected %cid $+ $cid times.
}



Something like that maybe? That code is not only untested, but absolutely GUESSED at as Ive never done anything like this before. Im sure Ill get corrected all over the place if Im way off and that's fine.


Those who fail history are doomed to repeat it
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
/scon should be /scid smile


New username: hixxy
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Ah, see, I knew Id get something simple wrong on that thru my LACK of experience (and would be corrected) on multiserv functions. I hope the example does what you want it to smile


Those who fail history are doomed to repeat it
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
thx smile works


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Glad to be of service MTec smile Also helps me learn things too smile


Those who fail history are doomed to repeat it

Link Copied to Clipboard