mIRC Homepage

status, buffer, & connections

Posted By: MTec89

status, buffer, & connections - 09/10/04 05:19 PM

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
Posted By: MTec89

Re: status, buffer, & connections - 10/10/04 03:05 PM

come on, please help
Posted By: wiebe

Re: status, buffer, & connections - 10/10/04 03:27 PM

do you mean something like:
Code:
on *:disconnect:{ clear -s | echo -s your text here.. } 
Posted By: landonsandor

Re: status, buffer, & connections - 10/10/04 04:06 PM

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.
Posted By: tidy_trax

Re: status, buffer, & connections - 10/10/04 04:21 PM

/scon should be /scid smile
Posted By: landonsandor

Re: status, buffer, & connections - 11/10/04 01:32 AM

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
Posted By: MTec89

Re: status, buffer, & connections - 11/10/04 03:53 PM

thx smile works
Posted By: landonsandor

Re: status, buffer, & connections - 13/10/04 06:47 PM

Glad to be of service MTec smile Also helps me learn things too smile
© 2022 mIRC Discussion Forums