mIRC Home    About    Download    Register    News    Help

Print Thread
#86280 10/06/04 06:11 AM
Joined: Jun 2004
Posts: 10
K
KuJaX Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jun 2004
Posts: 10
This refers to this post:
REFER--

Basically,

I want it so that when I am disconnect (out of no where... i have wireless, so it might be the reason)

That It disconnect from BOTH servers and run the command "/fin" (refer to the referred thread).

because if i have something like this:

Code:
on 1:DISCONNECT:{
  /echo I WAS DISCONNECTED at $time !
  /fin
}


then with the alias "/fin" I will have a lot of connections open, because if either of the two servers I am connected to fail, I will reconnect to both in two different server windows.

Let me know if you need any more information. Thanks a lot!

#86281 11/06/04 08:14 PM
Joined: Jun 2004
Posts: 3
S
Self-satisified door
Offline
Self-satisified door
S
Joined: Jun 2004
Posts: 3
dude on my script i hav some thing the same but not with the message i just hav a wav file it says DISCONNECTED [code]


on *:Disconnect: {
/splay sounds\Disconnect.wav
}


:: DReam Worlds IRC/Msn Scripting ::
#86282 14/06/04 03:17 AM
Joined: Jun 2004
Posts: 10
K
KuJaX Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jun 2004
Posts: 10
Basically,

What I want is when I get disconnected, I will DISCONNECT from ALL servers, then run the alias "fin".

Is there something like /disconnect -a (-a being something like disconnect from ALL servers)

#86283 14/06/04 03:28 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Yes, there's a /scon -at1 disconnect

#86284 15/06/04 08:15 PM
Joined: Jun 2004
Posts: 10
K
KuJaX Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jun 2004
Posts: 10
Okay,

Well. I had this:

Code:
on *:DISCONNECT:{
  /echo DISCONNECTED
  /scon -at1 disconnect 
  /fin
}


which didn't work. Sure, when I got disconnected, I disconnected from all servers, however, I also ran the command "/fin" on all server windows also, which opened TWICE as many as I wanted. Does that make any sense? Any SPECIFIC coding that someone can give me, so that when I get disconnected, i disconnect and close all servers, except for ONE status window. From that staus window, I run the command "/fin"

Thanks.

#86285 16/06/04 04:17 AM
Joined: Jun 2004
Posts: 10
K
KuJaX Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jun 2004
Posts: 10
ttt

#86286 16/06/04 04:48 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On *:disconnect:{ while $scon(2) { window -c "status window" } | fin }

#86287 19/06/04 01:10 AM
Joined: Jun 2004
Posts: 10
K
KuJaX Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jun 2004
Posts: 10
that gives me an illegal opperation each time.

#86288 19/06/04 04:05 PM
Joined: Jun 2004
Posts: 10
K
KuJaX Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jun 2004
Posts: 10
Does this not make any sense to anyone?

#86289 20/06/04 07:54 PM
Joined: Jun 2004
Posts: 10
K
KuJaX Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Jun 2004
Posts: 10
TTT

is this really that difficult?


Link Copied to Clipboard