mIRC Home    About    Download    Register    News    Help

Topic Options
#181623 - 27/07/07 11:49 PM Need some help.
shadow00760 Offline
Pikka bird

Registered: 22/10/06
Posts: 10
Loc: Not in the light
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.

Top
#181624 - 27/07/07 11:56 PM Re: Need some help. [Re: shadow00760]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Code:
On *:Connect: {
  server -m some.server.here
}

Top
#181625 - 28/07/07 12:16 AM Re: Need some help. [Re: SladeKraven]
Bekar Offline
Fjord artisan

Registered: 11/12/02
Posts: 503
Loc: Melbourne, Australia
I'd use:

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

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

Top
#181626 - 28/07/07 12:17 AM Re: Need some help. [Re: SladeKraven]
shadow00760 Offline
Pikka bird

Registered: 22/10/06
Posts: 10
Loc: Not in the light
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?

Top
#181627 - 28/07/07 12:18 AM Re: Need some help. [Re: shadow00760]
shadow00760 Offline
Pikka bird

Registered: 22/10/06
Posts: 10
Loc: Not in the light
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?

Top
#181628 - 28/07/07 12:28 AM Re: Need some help. [Re: shadow00760]
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
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
}

Top
#181651 - 28/07/07 07:34 AM Re: Need some help. [Re: SladeKraven]
shadow00760 Offline
Pikka bird

Registered: 22/10/06
Posts: 10
Loc: Not in the light
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?

Top
#181660 - 28/07/07 03:46 PM Re: Need some help. [Re: shadow00760]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2010
options (alt+o) > connect > de-select Connect on startup

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

Top