Oh, and I forgot to say, you should probably take out those two big blocks of code and put this:
on *:TEXT:*:#: {
if ($1- != 2) && ($1- != 3) { halt }
if (%numgame == 1) && (%lastnick == $nick) { msg $chan 4You may not take 2 turns in a row!! }
if (%numgame == 1) && (%lastnick != $nick) {
set %currentnum %currentnum + $1-
set %lastnick $nick
if (%currentnum < %end) { msg $chan 12The number is now4 %currentnum }
if (%currentnum >= %end) {
msg $chan 12 $nick has won!!
unset %end
unset %currentnum
unset %lastnick
unset %ender
set %numgame 0
}
}
}
There\'s always little sill things you could do to shorten the script. I\'d review it and see if it works, but it seems you need 2 people to play, and nobody else is on right now ;P
if (%numgame == 1) { msg $chan 12Game already in progress. }
if (%numgame != 1) {
can simply be
if (%numgame == 1) { msg $chan 12Game already in progress. | HALT }
and
if (%currentnum < %end) { msg $chan 12The number is now4 %currentnum }
if (%currentnum >= %end) {
could simply be
if (%currentnum < %end) { msg $chan 12The number is now4 %currentnum | HALT }
This is a Channel Record Script. It simply will /msg a channel that has a new record of users in the channel. You can use !record, @record, or /record to see whats in your current channel or $2's channel. You can use /recordchange,/rdc,/rcc,/rec to change the list of channels that the script uses Not much else to say. Echos from script: " Record information: Commands: !Record,@record,/record To see..
http://www.hawkee.com/snippet/3012/
^NEW VERSION.
PLEASE READ LATEST UPDATE!
\"Update: Thursday, July 26, 2007. 12:53am EST time :
Currently going to make a SCRIPT (instead of SNIPPET) version of this because it is too long for this box. When uploaded I will have a link here showing where you can get the script.
Anotherwards, this script doesnt work.\"
Hawkee doesnt allow so many characters in a snippet so i must go to make a script version.
As for now all you can do is wait, I will have a link here and you can click on my profile whenever to see if I uploaded it yet.
I \'would\' right this instant, but I am over a relatives house and will not be back in a week or so, so to use this script you must wait until then.
i dont see what the problem is with the script, but i updated it anyway.
as for spamming, i dont see a problem without timers, its fine the way it is in my opinion.
if somebody tries to spam you out, it wont work anyway, seeing that theres a timer preventing people from saying spam commands such as !dmcommands many times.