on *:join:#: notice $nick Hi $nick We are glad that you joined us! Ask an active admin to start Scrim Organizer now! type !Help for more information TESTING
on *:text:!help:#:{
msg $nick The help contents for IRC Scrim Commands
msg $nick !Scrim on/off - Use this command in an active Scrim channel to start/stop a game. ONLY OPERATORS CAN START SCRIM ORGANIZER.
.msg $nick !Join - Use this command to get in a list for the next available match.
.msg $nick !Leave - Someone just go bored? use this command to leave.
msg $nick !Players - To get a list of players that are ready to play.
on *:text:!scrim on:#:{
if %scrim.channel { .msg $chan $nick Yes sir, Scrim is already active check out for registered players for available slots "!players" }
else {
if !$nick($chan,$nick,a,hrv) { msg $chan Sorry $nick $+ , but only ops can start it. }
else {
set %scrim.channel $chan
describe $chan sees that $nick has started the Game. 4,99 Type !join in order to play.
timer 1 178 describe $chan Scrim has now started, Go go go!
timer 1 179 describe $chan 5 Players are ready join a server!
timer 1 180 scrim_game
}
}
}
alias -l scrim_game {
.enable #testgamers
var %a = 1, %b = $nick(%scrim.channel,0)
while %a <= %b {
if $istok(%sluts,$nick(%scrim.channel,%a),44) {
set %scrim.asker %a
msg %scrim.channel $nick(%scrim.channel,%a) Ready?
msg %slut.channel Lock,n,Load !
%a = %b
}
inc %a
}
}
on *:text:!scrim off:%scrim.channel:{
if !$nick($chan,$nick,a,hrv) { msg $nick Sorry, but only ops can stop it. }
else {
describe $chan $nick has stopped Scrim.
unset %scrim.channel
.disable #testgamers
}
}
on *:text:!players:%scrim.channel:{
.msg $chan $nick Current players are %scrims
}
on *:text:!join:#:{
if !%scrim.channel {
msg $chan Scrim isn't active. Ask an Op to start it.
}
elseif $chan == %scrim.channel && $group(#testgamers) == off {
set %scrims $addtok(%scrims,$nick,44)
set $+(%,scrim.points,.,$nick) 5
.msg $chan Thank you $nick for signing up. LOCK'N'LOAD!
}
elseif $group(#testgamers) == on {
.msg $nick Sorry, no more players until next game
}
}
#testgamers on
#testgamers end
on *:exit:{
unset %scrim*
}
on *:disconnect:{
unset %scrim*