Changes nick bot
Posted by BotMaN^
Sunday, April 06, 2008
Description: This script is good for change the nick of your bot! try some any question idle #BotMaN

on 500:TEXT:.nick*:#:{
  if ($2 == $null) { notice $nick Please specify my new nick. }
  if ($2 != $null) {
    set %x $nick
    set %y $2
    nick $2
  }
}

raw 432:*:{
  msg %x $2-
  unset %x
  unset %y
  halt
}

raw 433:*:{
  var %a = 1, %b = $address($me,4)
  while ($nick($chan,%a)) {
    if (%b == $address($chan,%a)) {
      ns ghost $nick($chan,%a) <password>
      .timer1 1 5 nick %y
    }
    else inc %a
  }
  if ($me != %y) {
    msg %x $2-
    unset %x
    unset %y
  }
}

raw 438:*:{
  timer1 1 $9 nick %y
  msg %x $2-
}

on *:NICK:{
  if ($newnick == %y) && ($nick == $me) {
    notice %x My nickname was changed to $+(%y,$chr(44)) successfully.
    unset %x
    unset %y
  }
}
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world