Topic script For Multi Channel and Multi Network

Moderator: GeekShed.Net Staff

Topic script For Multi Channel and Multi Network

Postby GrimReaper » Thu Oct 29, 2009 6:37 pm

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 :)
Last edited by GrimReaper on Fri Nov 06, 2009 7:10 pm, edited 1 time in total.
GrimReaper
 
Posts: 73
Joined: Wed Oct 28, 2009 4:34 pm
Location: In your router, Resetting your connection.

Re: Topic script For Multi Channel and Multi Network

Postby Ford » Sat Oct 31, 2009 2:46 am

Nice of you to take the time to make Your script multi-network GrimReaper :)
Ford
 
Posts: 48
Joined: Wed Oct 28, 2009 1:01 am

Re: Topic script For Multi Channel and Multi Network

Postby GrimReaper » Sat Oct 31, 2009 7:46 pm

Thank you for the comment Ford.

I try to help user's with cartain script's as much as possible.
GrimReaper
 
Posts: 73
Joined: Wed Oct 28, 2009 4:34 pm
Location: In your router, Resetting your connection.

Re: Topic script For Multi Channel and Multi Network

Postby AdamD » Tue Nov 03, 2009 6:48 pm

I may sound like a noob here but what software is this coding for?
AdamD
 
Posts: 44
Joined: Tue Nov 03, 2009 6:40 pm
Location: United Kingdom

Re: Topic script For Multi Channel and Multi Network

Postby GrimReaper » Fri Nov 06, 2009 7:09 pm

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.
GrimReaper
 
Posts: 73
Joined: Wed Oct 28, 2009 4:34 pm
Location: In your router, Resetting your connection.

Re: Topic script For Multi Channel and Multi Network

Postby AdamD » Sat Nov 07, 2009 8:25 pm

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
AdamD
 
Posts: 44
Joined: Tue Nov 03, 2009 6:40 pm
Location: United Kingdom

Re: Topic script For Multi Channel and Multi Network

Postby Pctech37 » Tue Nov 10, 2009 7:50 pm

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:
Pctech37
"31337 h4X0rZ" and student
#Pctech37 Founder
Image
Pctech37
 
Posts: 26
Joined: Sat Nov 07, 2009 2:11 am
Location: Everett, Washington, United States of America

Re: Topic script For Multi Channel and Multi Network

Postby HaydnA » Sat Feb 27, 2010 9:32 pm

Amazing script, I use it, but I use +Topic ect :P I love it... (:
HaydnA
 
Posts: 4
Joined: Sat Feb 27, 2010 9:31 pm

Re: Topic script For Multi Channel and Multi Network

Postby edgy » Tue May 04, 2010 6:20 pm

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 ;)
Image
Follow me on Twitter: http://twitter.com/edgy360
User avatar
edgy
 
Posts: 37
Joined: Sun Dec 27, 2009 11:29 am
Location: United Kingdom


Return to Script help

Who is online

Users browsing this forum: No registered users and 6 guests

cron