Quote Script
Posted by Century0
Wednesday, February 09, 2005
Description: Quick and simple quote script

; Basic Quote Script by Century0
on *:text:.AddQuote *:#: { inc %counter | write quotes.txt  - $+ $nick $+ - " $+ $+ $2- $+ " | /msg $chan Your quote has been added to the database. There are %counter quotes in the database. }
on *:text:.Quote:#: { msg $chan $read(quotes.txt) There are %counter quotes in the Quote Database }

Notes
Posted by Century0
Wednesday, February 09, 2005 02:58pm PST
Feel free to mod it as you want. See me on #script if you have trouble understanding it...however, you shouldn't.

~Century0
Hmm
Posted by knightrage
Thursday, February 10, 2005 10:11am PST
Why would you use a variable to keep track of the number of lines in the text file? $lines(quotes.txt)
Hmm
Posted by Century0
Thursday, February 10, 2005 01:30pm PST
Dunno really, variable works too. I probably just didn't feel like doing $lines(quotes.txt). Least if you wanted to reset the counter, you could.

~Century0
hmm
Posted by JcD
Friday, September 02, 2005 01:03am PDT
Insted of just compiling it all into 2 lines.
Make it bigger. :P idk im bored

on *:TEXT:.AddQuote *:#channel: {
  inc %counter
  write quote - $+ $nick $+ - " $+ $+ $2- $+ "
  msg $chan Your quote has been added to the quote database.
}
on *:TEXT:*:#channel:{
  if ($1 == .quote) { msg $chan $read(quotes.txt) There are %counter quotes in the Quote Database }
}
Better one
Posted by Ryan
Thursday, November 24, 2005 10:58am PST
on *:TEXT:$(%quotetrigger $+ *):#chan:{ if ($mid($1,2) == addquote) { write quotes.txt $3 by $nick | msg $chan Quote added }
elseif ($mid($1,2) == quote) { msg $chan $read(quotes.txt,$3) }
ELSE { .halt } } It could be fixed up a little.
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world