Page 1 of 1

Topic script For Multi Channel and Multi Network

PostPosted: Thu Oct 29, 2009 6:37 pm
by GrimReaper
Here is my topic script that I use for my mIRC bot TheDevil.

Code: Select all
on *:text:!topic*:#: {
  if ($2 == off && $3 == $null) {
    if ( $nick isop $chan ) {
      set % [ $+ [ $chan ] $+ topicon ] off
      msg $chan Topic/Status/Static OFF!
      halt
    }
  }
  if ($2 == hops) {
    if ( $nick isop $chan ) {
      if ($3 == on) {
        set % [ $+ [ $chan ] $+ hopschange ] on
        msg $chan HalfOps may now change the topic/status/static.
        halt
      }
      if ($3 == off) {
        set % [ $+ [ $chan ] $+ hopschange ] off
        msg $chan HalfOps may now not change the topic/status/static.
        halt
      }
    }
  }
  if ($2 == on && $3 == $null) {
    if ( $nick isop $chan ) {
      set % [ $+ [ $chan ] $+ topicon ] on
      msg $chan Topic/Status/Static ON!
      halt
    }
  }
  if (% [ $+ [ $chan ] $+ topicon ] == off) { halt }
  if (% [ $+ [ $chan ] $+ update ] == on) {
    if (% [ $+ [ $chan ] $+ hopschange ] == on) {
      if ( $nick ishop $chan ) {
        { /set % [ $+ [ $chan ] $+ topic ] $2- | /set % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ topic ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
        }
        halt
      }
    }
    if ( $nick isop $chan ) {
      { /set % [ $+ [ $chan ] $+ topic ] $2- | /set % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ topic ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
      }
      halt
    }
  }
  if (% [ $+ [ $chan ] $+ hopschange ] == on) {
    if ( $nick ishop $chan ) {
      { /set % [ $+ [ $chan ] $+ topic ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      }
    }
  }
  if ( $nick isop $chan ) {
    { /set % [ $+ [ $chan ] $+ topic ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]   
    }
  }
}
on *:text:!update*:#: {
  if ( $nick isop $chan ) {
    if ($2 == off) {
      set % [ $+ [ $chan ] $+ update ] off
      msg $chan $me will no longer update the topic on all networks.
    }
    if ($2 == on) {
      set % [ $+ [ $chan ] $+ update ] on
      set % [ $+ [ $chan ] $+ topic2 ] %updatefront $chan %updatemiddle topic %updatelast
      set % [ $+ [ $chan ] $+ status2 ] %updatefront $chan %updatemiddle status %updatelast
      set % [ $+ [ $chan ] $+ static2 ] %updatefront $chan %updatemiddle static %updatelast
      set % [ $+ [ $chan ] $+ owner2 ] %updatefront $chan %updatemiddle owner %updatelast
      set % [ $+ [ $chan ] $+ verb2 ] %updatefront $chan %updatemiddle verb %updatelast
      set % [ $+ [ $chan ] $+ prepend2 ] %updatefront $chan %updatemiddle prepend %updatelast
      set % [ $+ [ $chan ] $+ divider2 ] %updatefront $chan %updatemiddle divider %updatelast
      scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
      msg $chan $me will now update the topic on all networks.
    }
  }
}
on *:text:!status*:#: {
  if (% [ $+ [ $chan ] $+ topicon ] == off) { halt }
  if (% [ $+ [ $chan ] $+ update ] == on) {
    if (% [ $+ [ $chan ] $+ hopschange ] == on) {
      if ( $nick ishop $chan ) {
        { /set % [ $+ [ $chan ] $+ status ] $2- | /set % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ status ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
        }
        halt
      }
    }
    if ( $nick isop $chan ) {
      { /set % [ $+ [ $chan ] $+ status ] $2- | /set % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ status ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
      }
      halt
    }
  }
  if ( $nick isop $chan ) {
    { /set % [ $+ [ $chan ] $+ status ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
    }
  }
  if (% [ $+ [ $chan ] $+ hopschange ] == on) {
    if ( $nick ishop $chan ) {
      { /set % [ $+ [ $chan ] $+ status ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      }
    }
  }
}
on *:text:!static*:#: {
  if (% [ $+ [ $chan ] $+ topicon ] == off) { halt } 
  if (% [ $+ [ $chan ] $+ update ] == on) {
    if (% [ $+ [ $chan ] $+ hopschange ] == on) {
      if ( $nick ishop $chan ) {
        { /set % [ $+ [ $chan ] $+ static ] $2- | /set % [ $+ [ $chan ] $+ static2 ] % [ $+ [ $chan ] $+ static ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
        }
        halt
      }
    }
    if ( $nick isop $chan ) {
      { /set % [ $+ [ $chan ] $+ static ] $2- | /set % [ $+ [ $chan ] $+ static2 ] % [ $+ [ $chan ] $+ static ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
      }
      halt
    }
  }
  if ( $nick isop $chan ) {
    { /set % [ $+ [ $chan ] $+ static ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
    }
  }
  if (% [ $+ [ $chan ] $+ hopschange ] == on) {
    if ( $nick ishop $chan ) {
      { /set % [ $+ [ $chan ] $+ static ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      }
    }
  }
}
on *:text:!owner*:#: {
  if (% [ $+ [ $chan ] $+ topicon ] == off) { halt }
  if (% [ $+ [ $chan ] $+ update ] == on) {
    if (% [ $+ [ $chan ] $+ hopschange ] == on) {
      if ( $nick ishop $chan ) {
        { /set % [ $+ [ $chan ] $+ owner ] $2- | /set % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ owner ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
        }
        halt
      }
    }
    if ( $nick isop $chan ) {
      { /set % [ $+ [ $chan ] $+ owner ] $2- | /set % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ owner ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
      }
      halt
    }
  }
  if ( $nick isop $chan ) {
    { /set % [ $+ [ $chan ] $+ owner ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
    }
  }
  if (% [ $+ [ $chan ] $+ hopschange ] == on) {
    if ( $nick ishop $chan ) {
      { /set % [ $+ [ $chan ] $+ owner ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      }
    }
  }
}
on *:text:!verb*:#: {
  if (% [ $+ [ $chan ] $+ topicon ] == off) { halt }
  if (% [ $+ [ $chan ] $+ update ] == on) {
    if (% [ $+ [ $chan ] $+ hopschange ] == on) {
      if ( $nick ishop $chan ) {
        { /set % [ $+ [ $chan ] $+ verb ] $2- | /set % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ verb ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
        }
        halt
      }
    }
    if ( $nick isop $chan ) {
      { /set % [ $+ [ $chan ] $+ verb ] $2- | /set % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ verb ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
      }
      halt
    }
  }
  if ( $nick isop $chan ) {
    { /set % [ $+ [ $chan ] $+ verb ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
    }
  }
  if (% [ $+ [ $chan ] $+ hopschange ] == on) {
    if ( $nick ishop $chan ) {
      { /set % [ $+ [ $chan ] $+ verb ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      }
    }
  }
}
on *:text:!divider*:#: {
  if (% [ $+ [ $chan ] $+ topicon ] == off) { halt }
  if (% [ $+ [ $chan ] $+ update ] == on) {
    if (% [ $+ [ $chan ] $+ hopschange ] == on) {
      if ( $nick ishop $chan ) {
        { /set % [ $+ [ $chan ] $+ divider ] $2- | /set % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ divider ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
        }
        halt
      }
    }
    if ( $nick isop $chan ) {
      { /set % [ $+ [ $chan ] $+ divider ] $2- | /set % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ divider ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
      }
      halt
    }
  }
  if ( $nick isop $chan ) {
    { /set % [ $+ [ $chan ] $+ divider ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
    }
  }
  if (% [ $+ [ $chan ] $+ hopschange ] == on) {
    if ( $nick ishop $chan ) {
      { /set % [ $+ [ $chan ] $+ divider ] $2- | /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      }
    }
  }
}
on *:text:!prepend*:#: {
  if (% [ $+ [ $chan ] $+ topicon ] == off) { halt }
  if (% [ $+ [ $chan ] $+ update ] == on) {
    if (% [ $+ [ $chan ] $+ hopschange ] == on) {
      if ( $nick ishop $chan ) {
        if ($2 == on) {
          { /set % [ $+ [ $chan ] $+ prepend ] Topic: | /set % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ prepend ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
          }
          halt
        }
        if ($2 == off) {
          { /set % [ $+ [ $chan ] $+ prepend ] | /set % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ prepend ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
          }
          halt
        }
        if ($2 !== $null) {
          { /set % [ $+ [ $chan ] $+ prepend ] $2- | /set % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ prepend ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
          }
          halt
        }
      }
    }
    if ( $nick isop $chan ) {
      if ($2 == on) {
        { /set % [ $+ [ $chan ] $+ prepend ] Topic: | /set % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ prepend ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
        }
        halt
      }
      if ($2 == off) {
        { /set % [ $+ [ $chan ] $+ prepend ] | /set % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ prepend ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
        }
        halt
      }
      if ($2 !== $null) {
        { /set % [ $+ [ $chan ] $+ prepend ] $2- | /set % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ prepend ] | /scon -a /topic $chan % [ $+ [ $chan ] $+ prepend2 ] % [ $+ [ $chan ] $+ topic2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ owner2 ] % [ $+ [ $chan ] $+ verb2 ] % [ $+ [ $chan ] $+ status2 ] % [ $+ [ $chan ] $+ divider2 ] % [ $+ [ $chan ] $+ static2 ]
        }
        halt
      }
    }
  }
  if ( $nick isop $chan ) {
    if ($2 == on) {
      /set % [ $+ [ $chan ] $+ prepend ] Topic:
      /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      halt
    }
    if ($2 == off) {
      /unset % [ $+ [ $chan ] $+ prepend ]
      /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      halt
    }
    if ($2 !== $null) {
      /set % [ $+ [ $chan ] $+ prepend ] $2-
      /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      halt
    }
  }
  if (% [ $+ [ $chan ] $+ hopschange ] == on) {
    if ($2 == on) {
      /set % [ $+ [ $chan ] $+ prepend ] Topic:
      /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      halt
    }
    if ($2 == off) {
      /unset % [ $+ [ $chan ] $+ prepend ]
      /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      halt
    }
    if ($2 !== $null) {
      /set % [ $+ [ $chan ] $+ prepend ] $2-
      /topic $chan % [ $+ [ $chan ] $+ prepend ] % [ $+ [ $chan ] $+ topic ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ owner ] % [ $+ [ $chan ] $+ verb ] % [ $+ [ $chan ] $+ status ] % [ $+ [ $chan ] $+ divider ] % [ $+ [ $chan ] $+ static ]
      halt
    }
  }
}


Trigger Syntax is:
!topic <on/off> (Turns topic in the channel on or off)
!topic <topic here> (Set's the topic in the channel)
!topic <hops> <on/off> (Makes it so Halfops can change the topic or not)
!prepend <on/off/Custom Prepend> (Set's the start of the topic, Default is: Topic:)
!Divider <Divider here> (Set's the divider you would like in your topic)
!owner <Nick> (Set's the owner of the channel)
!verb <Verb here> (Set's the verb within your topic)
!status <Status here> (Set's the status in your topic)
!static <Static here> (Set's the status/url/link or whatever you want it to be at the end of the topic)
!update <on/off> (Set's it to update on all networks depending on if the same channel name is used, Although I would set this first)

I hope you all like this script, It took me a while to make.. but I got there :)

Re: Topic script For Multi Channel and Multi Network

PostPosted: Sat Oct 31, 2009 2:46 am
by Ford
Nice of you to take the time to make Your script multi-network GrimReaper :)

Re: Topic script For Multi Channel and Multi Network

PostPosted: Sat Oct 31, 2009 7:46 pm
by GrimReaper
Thank you for the comment Ford.

I try to help user's with cartain script's as much as possible.

Re: Topic script For Multi Channel and Multi Network

PostPosted: Tue Nov 03, 2009 6:48 pm
by AdamD
I may sound like a noob here but what software is this coding for?

Re: Topic script For Multi Channel and Multi Network

PostPosted: Fri Nov 06, 2009 7:09 pm
by GrimReaper
AdamD wrote:I may sound like a noob here but what software is this coding for?


This code is for a mIRC bot.

It's not a noobish question, I didn't really explain it in the description very well.

Re: Topic script For Multi Channel and Multi Network

PostPosted: Sat Nov 07, 2009 8:25 pm
by AdamD
Thanks for notifying me,

I love this topic script in the way that it has loads of settings and features added on to it thanks for this Grim

Re: Topic script For Multi Channel and Multi Network

PostPosted: Tue Nov 10, 2009 7:50 pm
by Pctech37
Nothing like 25 lines of code so that you can save 5 letters each topic change.
-------
Sounds like a "PAS IT ON" commercial. hehe :lol:

Re: Topic script For Multi Channel and Multi Network

PostPosted: Sat Feb 27, 2010 9:32 pm
by HaydnA
Amazing script, I use it, but I use +Topic ect :P I love it... (:

Re: Topic script For Multi Channel and Multi Network

PostPosted: Tue May 04, 2010 6:20 pm
by edgy
I changed this a bit because if it was in use in 2 (or more) channels with the same name across different networks it would conflict. I have just gone through and quoted the $network variable in all of the set commands so that it was fixed.

Apart from that, great script. Keep up the good coding ;)