Its simple, just read the whole script before installing.
YOU NEED TO EDIT IT FOR YOUR OWN NEEDS!!!
For help join #mircscripting on irc.undernet.org and talk to Seb
or email xplorer@mircscripting.info
(EDITED) for channels with +k modes
###############
#Auto join/login/start script from xplo
# some lines are commented with ;
# remove the ; to use them.
#for help email xplorer@mircscripting.info
###############
#This is the START event, triggered when you start mirc.
#change the lines with ; if you want to join multiple networks.
###########
on *:START:{
server irc.undernet.org
;server -m irc.SOMEOTHERNETWORK.org
;server -m IRC.SOMEWHEREELSE.org
}
#here you can set your username and pass
#Add more lines for other network using X.
#if its not X just change the loging line as you like
##########
alias xloginundernet { .msg x@channels.undernet.org login USERNAME PASS }
;alias xloginOTHERNET { .msg nickserv login USERNAME PASS }
;alias xloginOTHERNET2 { .msg nickserv login USERNAME PASS }
#here you need to put your channels (max 9)
##########
alias joinchannels {
if (Undernet == $network) { .join -n #chan1,#chan2,#chan3,#chan4 }
;if (OTHERNETWORK == $network) { .join -n #chan1,#chan2,#chan3,#chan4 }
;if (OTHERNETWORK2 == $network) { .join -n #chan1,#chan2,#chan3,#chan4 }
}
#Join +k Channels
##################
alias joinKchans {
if (UNDERNET == $network) {
.join -n #chan <key here>
.join -n #chan <key here>
}
if (OTHERNET == $network) {
.join -n #chan <key here>
.join -n #chan <key here>
}
if (OTHERNET2 == $network) {
.join -n #chan <key here>
.join -n #chan <key here>
}
}
#This is the inviting alias
#made to invite you in the channels where you have 100+ access to bypass targets.
#make sure not to add more then 8 invites
###########
alias invitemein {
if (Undernet == $network) { .msg x invite #chan1 | .msg x invite #chan2 | .msg x invite #chan3 }
;if (OTHERNET == $network) { .msg x invite #chan1 | .msg x invite #chan2 | .msg x invite #chan3 }
}
#Connect event
################
on *:connect:{
if (Undernet == $network) { mode $me +ix | silence +*!*@*,~*!*@*undernet.org | xloginundernet }
;if (OTHERNETWORK == $network) { mode $me +ix | xloginOTHERNET }
}
#This is the RAW used to see you connected to the server
#it will trigger the auto join of channels only if you connected proprelly.
###########
raw 001:*:{
.timerjoin $+ $network 1 10 joinchannels
.timerjoin $+ $network 1 10 joinKchans
}
#this line is important. if X invites you. you will join.
#just don't erase it.
###########
on *:invite:#:{ if ($nick == x) { join -n $chan | halt } }
;EOF