mIRC Home    About    Download    Register    News    Help

Print Thread
#181623 27/07/07 10:49 PM
Joined: Oct 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Oct 2006
Posts: 10
Hi, I need some help with remote scripting..
How can I join a different server at the same time?

I know it's like:
on *:connect:{
blah blah here
}

But I don't know what. ><; Help please.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On *:Connect: {
  server -m some.server.here
}

Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
I'd use:

Code:
ON *:START: {
  server -m other.server.com
}

This way it doesn't re-trigger when the new server gets connected.

Joined: Oct 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Oct 2006
Posts: 10
When I connect to server1, it goes to server2, which is good.
But when I connect to server2, it wants to connect again with server2, since it is an on *:Connect:..

Is there a way that i can avoid this?

Joined: Oct 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Oct 2006
Posts: 10
Can I also add channels? I tried this but it didn't work.

Code:
ON *:START: {
  server -m irc.swiftirc.net
  join #shadowkun
}

ON *:START: {
  server -m irc.swiftirc.net
  join #rsmarket
  join #shadow00760
}


Does anyone know if this is possible?

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You don't really need 2 events.

Code:
ON *:START: {
  server -m irc.swiftirc.net -j #shadowkun
  server -m irc.swiftirc.net -j #rsmarket,#shadow00760
}

Joined: Oct 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Oct 2006
Posts: 10
Hm this is the code now:
Code:
ON *:START: {
  server -m irc.rizon.net -j #shadowkun,#kuro-hana,#g2anime
  server -m irc.swiftirc.net -j #rsmarket,#shadow00760
}


It goes to the chans in rizon, but not in swift, is it because i use swift as my default start-up server?

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
options (alt+o) > connect > de-select Connect on startup

Also, I would remove the -m switch from the first connection in that script.


Link Copied to Clipboard