Uh, 2 things wrong with this.
1) This is a snippet and should be posted under snippets.
2) If you're asking for help, post it in the help forums. http://www.hawkee.com/phpBB2/posting.php?mode=newtopic&f=9
What about a text file so people could add their own outcomes?
on *:TEXT:!spin:#:{
if $nick(#,0) > 2 {
var %t $v1,%msg,%nick $me,%r $r(1,4)
while %nick = $me || %nick = $nick {
%nick = $nick(#,$r(1,%t))
}
describe # is spinning the bottle..
.timer 1 2 msg # The bottle landed on %nick $+ !
if %r = 1 { %msg = has to kiss }
elseif %r = 2 { %msg = has to make love with }
elseif %r = 3 { %msg = has to date with }
elseif %r = 4 { %msg = has to punch }
.timer 1 3 msg # $nick %msg %nick $+ !
}
}
Could just be:
on *:TEXT:!spin:#:{
if ($nick(#,0) > 2) {
var %t $lines(stb.txt)
var %s $r(1,%t)
var %nick $nick(#,%t)
while (%nick = $me || %nick = $nick) {
var %nick $nick(#,$r(1,%t))
}
describe # is spinning the bottle..
.timer 1 2 msg # The bottle landed on %nick $+ !
.timer 1 3 msg # $nick $read(stb.txt,%s) %nick $+ !
}
}
on owner:TEXT:!add*:*:{
write stb.txt $2-
.msg $nick Added $2-
}
All I can think ryan is saying is: What the hell are these people saying that I have 40+ e-mail notifications!!!!
That has to be a bash.org quote. :D
Thank you Teen. Now maybe ryan can learn how to use regex.(and maybe he won't kill us for giving him 20 notices on his snippet) ;)
Teen: Could you please be professional? If you have issues, settle them in messages. And does it matter who explains it? You being mad at Jethro_ doesn't tell anyone anything other than that you are angry with him.
Instead of just telling people to change it to regex, how about describing it also? It might help the coder post regex rather you post comments.
It's a quote system that can be run through commands and a dialog. /quote search Searches quotes for quotes matching the term. /quote clear Clears all quotes. /quote Messages active window a random quote. /quote last Messages active window last quote added. /quote total Echoes total number of quotes. /quote Messages quote number. /addquote Adds the quote and tells the number. /quotes Opens the quote..