Start up mIRC -- Connect to multiple servers, channels, and auto identify

By iProTopia on Jun 21, 2011

This is a startup mIRC script so you can join multiple servers, identify yourself, and join your channels. To get your nick you have to set it in the 'options' where it says 'nickname'

on *:start: {
  server NETWORK HERE!
  server -m NETWORK HERE!
  server -m NETWORK HERE!
  server -m NETWORK HERE!
}
on *:connect: {
  if ($network == NETWORK HERE!) {
    msg nickserv identify PASSWORD HERE!
    join #Channel1,#Channel2,#Channel3
  }
  else if ($network == NETWORK HERE!) {
    msg nickserv identify PASSWORD HERE!
    join  #Channel1,#Channel2,#Channel3
  }
  else if ($network == NETWORK HERE!) {
    msg nickserv identify PASSWORD HERE!
    join  #Channel1,#Channel2,#Channel3
  }
  else if ($network == NETWORK HERE!) {
    msg nickserv identify PASSWORD HERE!
    join  #Channel1,#Channel2,#Channel3
  }
} 

Comments

Sign in to comment.
iProTopia   -  Jun 23, 2011

Ty for pointing that out :)

 Respond  
PuNkTuReD   -  Jun 21, 2011

the last else if statement is missing a )

else if ($network == NETWORK HERE! {

after the network name...

 Respond  
iProTopia   -  Jun 21, 2011

My first one was on text but I didn't post it

 Respond  
blackvenomm666   -  Jun 21, 2011

my very first snippet was an on input one had a lot of help with it though

 Respond  
napa182   -  Jun 21, 2011

yeah i know what you mean. I look back on the snippets i made when i was just learning an laugh.

 Respond  
Jethro   -  Jun 21, 2011

P.S. I find some of my works I do in the old days and they're to be laughable, redundant and massive in byte sizes. When we have had that reaction, we know for certain that we have been making massive, impressive improvements since we get started. lol

 Respond  
napa182   -  Jun 21, 2011

No problem iProTopia..

 Respond  
iProTopia   -  Jun 21, 2011

Thank You napa182 and Jethro :)

 Respond  
napa182   -  Jun 21, 2011

Yes Jethro_, and that is why I said "But that is a nice example they can learn from."
no one is born knowing msl an the best way to learn it is by doing. Taking a code rip it apart see how it works, then trail an error. Plus a few tutts wouldn't hurt either. ;x

 Respond  
Jethro   -  Jun 21, 2011

Well napa, to the best of my recollection, I was a noob once upon a time and learned a lot by looking at other people's works, dissecting them, and analyzing them to gain my knowledge in MSL. There is no easy path for learning a subject but to practice and ask questions from the experienced scripters. Over time, we may be amazed at how simple MSL has become when we hadn't a clue back then. To date, I still find myself learning as much as I can, and there will be more of coding methods, kills, and technicality unbeknownst to us and awaiting us to explore them when we get there.

@iProTopia, just add a curly bracket } at the very end of you existing snippet.

 Respond  
napa182   -  Jun 21, 2011

as per your original code:

on *:start: {
  server NETWORK HERE!
  server -m NETWORK HERE!
  server -m NETWORK HERE!
  server -m NETWORK HERE!
}
on *:connect: {
  if ($network == NETWORK HERE!) {
    msg nickserv identify PASSWORD HERE!
    join #Channel1,#Channel2,#Channel3
  }
  else if ($network == NETWORK HERE!) {
    msg nickserv identify PASSWORD HERE!
    join #Channel1,#Channel2,#Channel3
  }
  else if ($network == NETWORK HERE!) {
    msg nickserv identify PASSWORD HERE!
    join #Channel1,#Channel2,#Channel3
  }
  else if ($network == NETWORK HERE! {
    msg nickserv identify PASSWORD HERE!
    join #Channel1,#Channel2,#Channel3
  }
}
 Respond  
iProTopia   -  Jun 21, 2011

napa182 then were do i put it?

 Respond  
napa182   -  Jun 21, 2011

well Jethro_ i doubt they know how to as thy just stated:
iProTopia Wrote:

Ty for the warning... i'm a n00b at scripting i just started

But that is a nice example they can learn from.

iProTopia, Again you missed placed your brackets.

you placed it in the wrong spot.

 Respond  
Jethro   -  Jun 21, 2011

Opps my bad. It doesn't take into account the passwords, which can be different from one another. :P

Still, though, you can use:

server -m irc.network.com -j #channel1,#channel2,#channel3
 Respond  
Jethro   -  Jun 21, 2011

Why not do:

on *:connect:{
  var %n = 1
  var %s = irc.network.com1 irc.network.com2 irc.network.com3 irc.network.com4
  while ($gettok(%s,%n,32)) {
    msg nickserv identify Password Here!
    server -m $v1 -j #channel1,#channel2,#channel3 
    inc %n
  }
}

There is a -j switch for the server command.

 Respond  
iProTopia   -  Jun 21, 2011

Ty for the warning... i'm a n00b at scripting i just started

 Respond  
iProTopia   -  Jun 21, 2011

yea i changed it

 Respond  
napa182   -  Jun 21, 2011

also you are missing a closing bracket at the end of your on connect event. as well you have the == next to the NETWORK HERE! on 2 of them an some people will replace it just how it is an it wont work.

 Respond  
iProTopia   -  Jun 21, 2011

Well yea you can, but this one gets you there faster then the mIRC's build in one.

 Respond  
napa182   -  Jun 21, 2011

you could use mIRC's built in function for this.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.