mIRC Home    About    Download    Register    News    Help

Print Thread
Need some help. #181623 27/07/07 10:49 PM
Joined: Oct 2006
Posts: 10
S
shadow00760 Offline OP
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.

Re: Need some help. [Re: shadow00760] #181624 27/07/07 10:56 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On *:Connect: {
  server -m some.server.here
}

Re: Need some help. [Re: SladeKraven] #181625 27/07/07 11:16 PM
Joined: Dec 2002
Posts: 503
B
Bekar Offline
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.

Re: Need some help. [Re: SladeKraven] #181626 27/07/07 11:17 PM
Joined: Oct 2006
Posts: 10
S
shadow00760 Offline OP
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?

Re: Need some help. [Re: shadow00760] #181627 27/07/07 11:18 PM
Joined: Oct 2006
Posts: 10
S
shadow00760 Offline OP
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?

Re: Need some help. [Re: shadow00760] #181628 27/07/07 11:28 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
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
}

Re: Need some help. [Re: SladeKraven] #181651 28/07/07 06:34 AM
Joined: Oct 2006
Posts: 10
S
shadow00760 Offline OP
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?

Re: Need some help. [Re: shadow00760] #181660 28/07/07 02:46 PM
Joined: Dec 2002
Posts: 2,022
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,022
options (alt+o) > connect > de-select Connect on startup

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