napa182 commented on a Page, [OLD] Announce Script 1.0  -  Sep 14, 2007

or you can just do it this way but it\'s up too you...

on *:text:*:#: {
  if (($nick isop #) || ($nick ishop #)) {
    if (($1 == !announce) && (!$2)) {
      msg $chan Please select a announcement number 1 - $lines(A.txt)
    }
    elseif (($1 == !announce) && ($read(A.txt, n) == $null)) {
      msg $chan There Are No Announcement\'s At This Time.
    }
    elseif (($1 == !announce) && ($read(A.txt, n, $2) == $null)) {
      msg $chan Sorry $nick But That Announcement Number Does Not Exist. Please Pick A Announcement Number (1 -  $lines(A.txt) $+ )
    }
    elseif ($1 == !announce) {
      msg $chan Reading Announcement $2 of $lines(A.txt) $+ : $read(A.txt, n, $2)
    }
    elseif ($1 == !a) {
      write A.txt $2-  
      msg $chan Announcement:  $2- Has Been Added! As Announcement Number $lines(A.txt)
    }
    elseif ($1 == !dela) {
      msg $chan Deleteing Announcement Number $2 $+ : Of $read(A.txt, n, $2)
      write -dl $+ $2 A.txt
    }
    elseif (($1 == !counta) && ($lines(A.txt) == 0)) {
      msg $chan There Are No Announcement\'s To Count.
    }
    elseif ($1 == !counta) {
      msg $chan $nick I Have A Total Of $lines(A.txt) Announcement\'s So Far.
    }
  }
}
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.