• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Topic Options
Rate This Topic
#3815 - 12/28/08 05:23 PM Topic script
Dark_Aaron Offline
n00b

Registered: 12/28/08
Posts: 6
Loc: Tennessee US
OK guys this is my first script im posting on here.

usage:

!topic <topic>
!status <status>
!divider <divider>
!static <static>
!owner <owner>

Code:

on *:TEXT:!topic *:#: {
  if ($nick isop # || $nick ishop #) {
   writeini topic.ini # topic $2-
   set %topic $readini(topic.ini, #, topic)
   topic # %topic %divider %owner %status %divider %static
  }
 elseif ($nick !isop # || $nick !ishop #) {
  msg # Sorry $nick $+ , You must be op or hop to use this command.
 }
}

on *:TEXT:!status *:#: {
  if ($nick isop # || $nick ishop #) {
   writeini topic.ini # status $2-
   set %status $readini(topic.ini, #, status)
   topic # %topic %divider %owner %status %divider %static
  }
 elseif ($nick !isop # || $nick !ishop #) {
  msg # Sorry $nick $+ , You must be op or hop to use this command.
 }
}

on *:TEXT:!static *:#: {
  if ($nick isop # || $nick ishop #) {
   writeini topic.ini # static $2-
   set %static $readini(topic.ini, #, static)
   topic # %topic %divider %owner %status %divider %static
  }
 elseif ($nick !isop # || $nick !ishop #) {
  msg # Sorry $nick $+ , You must be op or hop to use this command.
 }
}

on *:TEXT:!divider *:#: {
  if ($nick isop # || $nick ishop #) {
   writeini topic.ini # divider $2-
   set %divider $readini(topic.ini, #, divider)
   topic # %topic %divider %owner %status %divider %static
  }
 elseif ($nick !isop # || $nick !ishop #) {
  msg # Sorry $nick $+ , You must be op or hop to use this command.
 }
}

on *:TEXT:!owner *:#: {
  if ($nick isop # || $nick ishop #) {
   writeini topic.ini # owner $2-
   set %owner $readini(topic.ini, #, owner)
   topic # %topic %divider %owner %status %divider %static
  }
 elseif ($nick !isop # || $nick !ishop #) {
  msg # Sorry $nick $+ , You must be op or hop to use this command.
 }
}



Enjoy!


Edited by Dark_Aaron (12/28/08 05:28 PM)
Edit Reason: bug in elseif
_________________________
Don't mess with the Best.

Top
Sponsored Links
Sponsored Links
Member
*****

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


Moderator:  Jeff, mandy, usrbingeek