mIRC Join on Connect Guide
Edit 12/24/2009: Added ON NOTICE part. Thanks Luffy!
Many trackers have their own IRC-channel and maybe even their own IRC-server. Most of the time, it is required to identify yourself on the server before you can join any channels or before you can speak in a channel. If you want to be on several servers at the same time, it's pretty time consuming to type your identification manually every single time you start up mIRC. This guide will help you to make a script that will identify you on all servers when you start up mIRC.
Step 1
Open mIRC and open the Script Editor by pressing Alt + R or by browsing to Tools -> Scripts Editor. Go to File -> New and click on the Remote tab.
Step 2
It's best to start off with the servers you don't need to identify for, i.e. free for everyone. Enter the following code:
where of course ircserver.com should be replaced with the real irc server, Nick should be replaced with the nick you want to join the server and channel should be replaced with the channel you would like to join. You can join more channels by adding ",#channel2,#channel3" etc to the line.Code:on *:start:{ server irc.ircserver.com -i Nick -j #channel
You can enter more servers by pressing Enter and adding the following line(s):
with the same things replaced.Code:/server -m irc.ircserver.com -i Nick -j #channel
For example, it will look something like this:
Step 3
Now we can add the other trackers for which identification is necessary. Add those according to the following line(s):
For example, it will look something like this:Code:/server -m irc.ircserver.com -i Nick
Make sure to Save your script now!
Note: TL requires that you connect via port 7011, that's why I added the 7011 in between the server and the nick.
Step 4
The script that joins every server is now finished. However, when you're connected to a server, you want it to automatically identify you and join the channel(s). So we have to make seperate scripts for the servers that require identification once you are connected with them. Open a new script for every single server that needs identification and click on the Remote tab again.
Add the following line to the script:
where network should be replaced by the network, Nick by your nick name, password by your personal password for the server, and channel for the channel you would like to join.Code:on *:connect:{ if ($network == network) { nick Nick | msg NickServ identify password | join #channel } }
In some cases, the scripts is going too fast for the irc server: The script already joins the channel, but the irc server hasn't recognized you yet. You can then either build in some kind of timer, or you could trigger the join command when the irc server has recognized you. I use the latter.
The code for that is:
For example, for torrentleech:Code:on *:NOTICE:*You are now recognized*:*:{ if ($nick == NickServ && $network == Network) { join #channel } }
Of course it can be the case that the identification goes in a different way than via Nickserv. For example, for RevolutionTT the code is:
This will look like:Code:on *:connect:{ if ($network == RevolutionTT) { nick Nick | msg NickServ IDENTIFY password | RevoTT !invite Nick hashcode } }
Save all these scripts as well!
The code for other trackers are trivial. However, if you have troubles with one particular network I can look into it. Just PM me.
Step 5
Now all you have to do is activate the first script you made (the one with on *start). You do this by going to File -> Load and double-click this script. mIRC will ask you to Run initialization commands, which you should respond with Yes
That's it! If you did everything correctly, mIRC should be connecting to all servers, identifying you on every server and join the desired channel(s)!
Good luck and have fun scripting!









LinkBack URL
About LinkBacks




Reply With Quote






