Kyousoukyoku commented on a Page, Quote system script  -  Oct 15, 2007

Why not use this:

alias quote { 
  if ($1 isnum && $read(quotes.txt,$1)) { 
   msg $iif($active != status window,$active,$chan) Quote number $+($chr(40),$1,$chr(41),:) $v2
  }
  else { 
   msg $iif($active != status window,$active,$chan) Total quotes:  $lines(quotes.txt)
  }
}

alias addquote { 
  if ($1- && $exists(quotes.txt)) { 
   write quotes.txt $1-
   echo $colour(info) -a Quote added.
   msg $iif($active != status window,$target,$chan) Quote $1- added.
  }
}

alias delquote { 
  if ($1 isnum && $read(quotes.txt,$1)) { 
   write -dl quotes.txt $1
   echo $colour(info) -a Quote deleted.
   msg $iif($active != status window,$target,$chan) Quote number: $1 deleted. 
  }
} 

And just make a file named quotes.txt in your mircdir. Commands: /delquote (num), /addquote (quote), /quote (num)

  • Something manually typed in this editbox btw. ;)
 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.