mIRC Homepage
Posted By: Question Lost all my scripts :( - 13/06/10 04:40 AM
Reinstalled windows and in the process lost all the scripts i had for IRC.

Main one i am looking for is to automatically identify my nick when i connect to a server. Anyone has any idea how to write that?
Posted By: maconga Re: Lost all my scripts :( - 13/06/10 04:45 AM
I use this script. Might be a bit much for you. It's set to identify my name on the server, then connect me to the channels on that server after i have identified.

Save it, load it in the remote tab.

This script was created by " Riamus2 ", so give him the credit

Code:
alias setconnectinfo {

  set %login.enterthegame none
  set %channels.enterthegame #tastyspleen 

  set %login.freenode ns identify PASSWORD_HERE
  set %channels.freenode #ubuntu #windows

  set %login.cyanide-x ns identify PASSWORD_HERE
  set %channels.cyanide-x #masquerade #tripcat #nGen

  set %login.globalgamers ns identify PASSWORD_HERE
  set %channels.globalgamers #tastycast

  set %login.gamesurge ns identify PASSWORD_HERE
  set %channels.gamesurge #ql.tv #quakecon

  set %login.7-indonesia ns identify PASSWORD_HERE
  set %channels.7-indonesia #7-indonesia #help #facebook #english
}

ON 1:START:{
  setconnectinfo
  server irc.enterthegame.com 5555 -i NAME_HERE
  server -m irc.freenode.net 8001 -i NAME_HERE
  server -m irc.cyanide-x.net 6667 -i NAME_HERE
  server -m irc.globalgamers.net 6667 -i NAME_HERE
  server -m irc.gamesurge.net 6667 -i NAME_HERE
  server -m irc.7-indonesia.org 6666 -i NAME_HERE
}

on *:connect: {
  if ($($+(%,login.,$network),2) != None) { $v1 }
  else { join $($+(%,channels.,$network),2) }
}

on *:notice:*:?: {
  if ($nick == NickServ || $nick == Authserv) {
    if ((password accepted isin $1-) || (you are now identified isin $1-) || (recognize you isin $1-)) {    
      massjoin $($+(%,channels.,$network),2)
    }
  }
}

alias massjoin { 
  var %i = 1, %t = $numtok($1-,32) 
  while (%i <= %t) { 
    join $gettok($1-,%i,32) 
    inc %i 
  } 
}

Posted By: argv0 Re: Lost all my scripts :( - 13/06/10 05:18 AM
Some networks allow you to put your nickserv password as the server password, freenode is one of them:

/server irc.freenode.net 6667 PASSWORD -i NICKNAME

The above will auth you with nickserv without a script (and yes, you can add it to your servers list this way too). Other networks might work the same way, otherwise use a similar script to the one provided above.
Posted By: PaiSand Re: Lost all my scripts :( - 02/08/10 11:03 PM
For GameSurge you use authserv
Is the same syntax but replace "ns identify PASSWORD_HERE
" for "authserv AUTH NAME_HERE PASSWORD_HERE"

At least on their site they ask to use that syntax. Apart from that all works perfectly.

By the way, thanks for the script, I love it.
Posted By: maconga Re: Lost all my scripts :( - 03/08/10 03:26 AM
Originally Posted By: PaiSand
For GameSurge you use authserv
Is the same syntax but replace "ns identify PASSWORD_HERE
" for "authserv AUTH NAME_HERE PASSWORD_HERE"

At least on their site they ask to use that syntax. Apart from that all works perfectly.

By the way, thanks for the script, I love it.


You don't have to replace anything for GameSurge, as I use " ns identify PASSWORD_HERE ". GameSurge, seems to use both. What you see In that script is what I use, and it works.
© mIRC Discussion Forums