mIRC Home    About    Download    Register    News    Help

Print Thread
#180914 15/07/07 12:10 AM
Joined: Jul 2007
Posts: 1
Z
ZanV Offline OP
Mostly harmless
OP Offline
Mostly harmless
Z
Joined: Jul 2007
Posts: 1
I am trying to make the following script:
When i press connect i will connetct 2 times (2 servers, same or different) and join some rooms.
I have done this so far:
Code:
/set %n=0
ON *:CONNECT:{
if (%n = 0) { 
  nick nick1
  identify pass1
  join #roomA1,#roomA2,#roomA3....
}
/set %n=1
  server -m server2
  nick nick2
  identify pass2
  join #roomB1,#roomB2,#roomB3....
}

Of course, this doesn't work crazy
I would appreciate any help!

Two problems i encountered are:
1. When i press connect it starts open new server windows and it never stops
2. When it changes the nickname on server2 its changes and on server1
I have read and putted the /set %n command to fix this but now it doesn't work at all frown

Last edited by ZanV; 15/07/07 12:15 AM.

::....:.:::.::...:::.:...:::sound.vision.soul:::...:.:::...::.:::.:....::
ZanV #180915 15/07/07 12:18 AM
Joined: Mar 2006
Posts: 47
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Mar 2006
Posts: 47
You put the variable declaration outside the event, so it never gets reached in the first place. Use the START event.
Code:
ON *:START:{
  /server serv1 -j #room,#room
  /server -m serv2 -j #room,#room
}
ON *:CONNECT:{
  if ($network == [whatever]) {
    do this
  }
  if ($network == [something else]) {
    do that
  }
}



Also, here 's an auto identify/join script I use, modified for others to set up with. Haven't tested this version. Well, it requires you to use the same nicks/password for all servers...


Link Copied to Clipboard