Jump to content

Command For When Opening Mirc


mcdanielnc89

Recommended Posts

alias koach /server irc.koach.com

on *:CONNECT: { 
  if ($network == Koach.com) {
    /ns identify *password*
    /join #tg007
    /join #koachsworkshop
    /join #bruce
    /join #irchainscriptz
    /join #essex_house
    /join #test
    /join #irpg
  }
}

 

This is mine, its not on Start but when mirc opens i just type /koach and it joins the rooms. Replace *password* w/ your pass for most irc servers, (Unreal) i believe is used on koach. All you havta do is replace 'alias koach' w/ the on START coding and itll connect then :)

Link to comment
Share on other sites

So you would just say:

 

on *:start:koach

 

or

 

on *:start:{
if (%koach) { koach }
}

menu menubar {
-
$iif(!%koach,$style(1)) Koach:{ $iif(!%koach,set,unset) %koach $true }
}

 

 

Edit:

Hey Kronic, you know you can say: /join #chan1,#chan2,#chan3,#chan4

Edited by Travis
Link to comment
Share on other sites

Ok, I needed somethign a lil different, LOL.. I got it to partially work,but can't get he others to work. When I connect i want it to join the following servers, Somehow i believe I'm goign to hsve to sit up an If/elseif statemtn.

 

on *:START: {

/server -m irc.wyldryde.org

/ns identify forevermore

/join #geekstogo

}

on *:START: {

/server -m irc.mozilla.org

/ns identify forevermore

/join #firefox,#addons

}

on *:START: {

/server -m irc.freenode.com

/ns identify forevermore

/join #xhtml,#html,#css,#php,#javascript,#phpBB

}

on *:START: {

/server -m irc.deviantart.com

/ns identify forevermore

/join #devart

}

Link to comment
Share on other sites

You can only have one event per file.

 

What you need to do is use /scon and $scon.

 

You connect to a server, then you connect to another server and set scon or scid to that connection which makes mIRC focus on that connection. Otherwise it will be doing the commands to the first connection.

 

When you want to write scripts that switch around to your different connections (different servers) you have to make the connection you want active first using /scid or /scon. Then after it's active you can do any commands for that connection.

 

When you type server thats attempting to connect to a server. It doesnt mean you are connected and unless you are connected and that server is the active server you cannot send nameserv requests.

 

Typically you monitor a connect event for that server and auth on this.

Link to comment
Share on other sites

 

Here is a 1 minute code, should work perfect as long as the networks names are right, so thatll be where to change if their different...

:) goodluck

 

on *:START: {
  /wyldryde
  /mozilla
  /freenode
  /deviantart
}

alias wyldryde /server irc.wyldryde.org
alias mozilla /server -m irc.mozilla.org
alias freenode /server -m irc.freenode.com
alias deviantart /server -m irc.deviantart.com

on *:CONNECT: {
  if ($network == wyldryde) {
    /join #geekstogo
  }
  elseif ($network == mozilla) {
    /join #firefox,#addons
  }
  elseif ($network == freenode) {
    /join #xhtml,#html,#css,#php,#javascript,#phpbb
  }
  elseif ($network == deviantart) {
    /join #devart
  }
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...