• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Topic Options
Rate This Topic
#3905 - 01/03/09 04:56 AM A simple topic script.
Sam Ferry Offline
Over 50 posts

Registered: 02/08/08
Posts: 56
Loc: Illinois, USA
Hey All. Here is a simple topic script, that can easily be implemented into one, or many channels. I saw a few topic scripts here, so I thought I'd make one up real quick, and post it.

Normally used for one channel only:
Code:
on 1:TEXT:*:#: {
  if ($nick isop $chan || $nick ishop $chan) {
    if ($1 == !topic) {
      set %topic $2-
      topic $chan %topic %divider %status %divider %static
    }
    if ($1 == !status) {
      set %status $2-
      topic $chan %topic %divider %status %divider %static
    }
    if ($1 == !static) {
      set %static $2-
      topic $chan %topic %divider %status %divider %static
    }
    if ($1 == !divider) {
      set %divider $2-
      topic $chan %topic %divider %status %divider %static
    }
  }
}


Now this next one, I haven't tried yet, but I'm pretty sure it'll work alright. You can use it for multiple channels...
Code:
on 1:TEXT:*:#: {
  if ($nick isop $chan || $nick ishop $chan) {
    if ($1 == !topic) {
      set % $+ $chan $+ topic $2-
      topic $chan % $+ $chan $+ topic % $+ $chan $+ divider % $+ $chan $+ status % $+ $chan $+ divider % $+ $chan $+ static
    }
    if ($1 == !status) {
      set % $+ $chan $+ status $2-
      topic $chan % $+ $chan $+ topic % $+ $chan $+ divider % $+ $chan $+ status % $+ $chan $+ divider % $+ $chan $+ static
    }
    if ($1 == !static) {
      set % $+ $chan $+ static $2-
      topic $chan % $+ $chan $+ topic % $+ $chan $+ divider % $+ $chan $+ status % $+ $chan $+ divider % $+ $chan $+ static
    }
    if ($1 == !divider) {
      set % $+ $chan $+ divider $2-
      topic $chan % $+ $chan $+ topic % $+ $chan $+ divider % $+ $chan $+ status % $+ $chan $+ divider % $+ $chan $+ static
    }
  }
}


Well... that's all... rotfl

---Sam
_________________________
Sam Ferry (samferry)
http://www.samferry.com

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top


Moderator:  Jeff, mandy, usrbingeek