on *:TEXT:.sign*:%ch: {
var %u = $getid2($nick)
if ( $userlvl(%u) >= 10 ) {
if (!%game.on) { return }
;echo -ag ok
if (%c.gameconfirmed) { return }
if (!$game.canjoin(%u)) { return }
;echo -ag ok
if ((!%c.challenge) && ($istok(%c.gameforbid,%u,46))) { return }
;echo -ag ok
if ((!%c.challenge) && ($numtok(%c.gameauths,46) >= 10)) { return }
;echo -ag ok
set %c.gameauths $addtok(%c.gameauths,%u,46)
if (!%c.challenge)
if ($timer(spamsignout)) {
set %line.signout %line.signout $getname(%u) $+ $enclose($get.exprank(%u)) signed in;
}
else {
describe %ch $getname(%u) $+ $enclose($get.exprank(%u)) signed in; $iif(!%c.challenge,$iif($calc(10 - $numtok(%c.gameauths,46)) != 0, $v1 slots remaining, $getname($gettok(%c.gameauths,1,46)) can start the game(.confirmstart)),$numtok(%c.gameauths,46) players have already signed in.)
set %line.signout $null
timerspamsignout 1 7 flush.signout
}
}
}
on *:TEXT:.adminsign*:#: {
var %u = $getid2($nick)
if ( $userlvl(%u) >= 70) {
var %su = $getid($2)
if (!%game.on) { return }
;echo -ag ok
if (%c.gameconfirmed) { return }
if (!$game.canjoin(%su)) { return }
;echo -ag ok
if ((!%c.challenge) && ($istok(%c.gameforbid,%su,46))) { return }
;echo -ag ok
if ((!%c.challenge) && ($numtok(%c.gameauths,46) >= 10)) { return }
;echo -ag ok
set %c.gameauths $addtok(%c.gameauths,%su,46)
if (!%c.challenge)
if ($timer(spamsignout)) {
set %line.signout %line.signout $getname(%su) $+ $enclose($get.exprank(%su)) signed in;
}
else {
describe %ch $getname(%su) $+ $enclose($get.exprank(%su)) signed in; $iif(!%c.challenge,$iif($calc(10 - $numtok(%c.gameauths,46)) != 0, $v1 slots remaining, $getname($gettok(%c.gameauths,1,46)) can start the game(.confirmstart)),$numtok(%c.gameauths,46) players have already signed in.)
set %line.signout $null
timerspamsignout 1 7 flush.signout
}
}
}
on *:TEXT:.startgame*:%ch: {
var %u = $getid2($nick)
if ( $userlvl(%u) >= 10 ) {
if (%game.on) { return }
if (!$game.canjoin(%u)) { return }
set %game.on 1
if (( $2 == mode ) && ($istok($modes,$3,46))) { set %c.gamemode $3 }
else { set %c.gamemode de_inferno }
if ( $3 == quickstart ) { set %c.gamemode de_inferno }
;; quickstart compatibility added
set %c.gameauths %u
set %c.gameconfirmed 0
set %c.gameforbid $null
set %canpickhero 0
set %canpickplayer 0
set %canreply 0
set %c.pickmode 1
set %c.challenge 0
;; quickstart compatibility added
set %c.quickstartcptpick 0
set %c.quickstartplayerpick 0
;; topic %ch Welcome to my ASS! Sign-up is opened at the moment, mode is %c.gamemode $+ $chr(44) $getname(%u) hosts the game.
topic %ch $topicwelcome $topicgame $topicmode $topichosts $topicgames
;; timergamestart 1 900 gamecheck
if (!$timer(spamcensure)) { timerspamcensure 1 120 spam.censure }
;; Sign-up for challenge is open at the moment, mode is Draft, Enigma_2008 and Suspekt are the captains
;; Sign-up is open at the moment, mode is AutoDraft, traffic|Dark hosts the game.
}
}
on *:TEXT:.sg*:%ch: {
var %u = $getid2($nick)
if ( $userlvl(%u) >= 10 ) {
if (%game.on) { return }
if (!$game.canjoin(%u)) { return }
set %game.on 1
if (( $2 == mode ) && ($istok($modes,$3,46))) { set %c.gamemode $3 }
else { set %c.gamemode de_inferno }
if ( $3 == quickstart ) { set %c.gamemode de_inferno }
;; quickstart compatibility added
set %c.gameauths %u
set %c.gameconfirmed 0
set %c.gameforbid $null
set %canpickhero 0
set %canpickplayer 0
set %canreply 0
set %c.pickmode 1
set %c.challenge 0
;; quickstart compatibility added
set %c.quickstartcptpick 0
set %c.quickstartplayerpick 0
;; topic %ch Welcome to my ASS! Sign-up is opened at the moment, mode is %c.gamemode $+ $chr(44) $getname(%u) hosts the game.
topic %ch $topicwelcome $topicgame $topicmode $topichosts $topicgames
;; timergamestart 1 900 gamecheck
if (!$timer(spamcensure)) { timerspamcensure 1 120 spam.censure }
;; Sign-up for challenge is open at the moment, mode is Draft, Enigma_2008 and Suspekt are the captains
;; Sign-up is open at the moment, mode is AutoDraft, traffic|Dark hosts the game.
}
}
on *:TEXT:.challenge*:%ch: {
var %u = $getid2($nick)
if ( $userlvl($nick) >= 30 ) {
if (%game.on) { return }
;echo -ag ok
if (!$2) { return }
;echo -ag ok
var %cu = $getid($2)
if (!$game.canjoin(%u)) { return }
;echo -ag ok
if (!$game.canjoin(%cu)) { return }
;echo -ag ok
if (%u == %cu) { return }
if ( $userlvl(%cu) < 30 ) { return }
;echo -ag ok
if (!$nauth(%cu)) { return }
;echo -ag ok
set %game.on 1
set %c.gamemode de_inferno
set %c.gameauths %u $+ . $+ %cu
set %c.gameconfirmed 0
set %c.challenge 1
set %canpickhero 0
set %canpickplayer 0
set %canreply 0
;; quickstart compatibility added
set %c.quickstartcptpick 0
set %c.quickstartplayerpick 0
unset %c.voted
;; topic %ch Welcome to my ASS! Sign-up for challenge is opened at the moment, mode is %c.gamemode $+ $chr(44) $getname(%u) and $getname(%cu) are the captains.
topic %ch $topicwelcome $topicgame $topicmode $topichosts $topicgames
;; timergamestart 1 900 gamecheck
if (!$timer(spamcensure)) { timerspamcensure 1 120 spam.censure }
msg $nauth(%cu) $nauth(%cu) $+ $chr(44) $nauth(%u) Have challenged you on %ch
}
}
on *:TEXT:.cl*:%ch: {
var %u = $getid2($nick)
if ( $userlvl($nick) >= 30 ) {
if (%game.on) { return }
;echo -ag ok
if (!$2) { return }
;echo -ag ok
var %cu = $getid($2)
if (!$game.canjoin(%u)) { return }
;echo -ag ok
if (!$game.canjoin(%cu)) { return }
;echo -ag ok
if (%u == %cu) { return }
if ( $userlvl(%cu) < 30 ) { return }
;echo -ag ok
if (!$nauth(%cu)) { return }
;echo -ag ok
set %game.on 1
set %c.gamemode de_inferno
set %c.gameauths %u $+ . $+ %cu
set %c.gameconfirmed 0
set %c.challenge 1
set %canpickhero 0
set %canpickplayer 0
set %canreply 0
;; quickstart compatibility added
set %c.quickstartcptpick 0
set %c.quickstartplayerpick 0
unset %c.voted
;; topic %ch Welcome to my ASS! Sign-up for challenge is opened at the moment, mode is %c.gamemode $+ $chr(44) $getname(%u) and $getname(%cu) are the captains.
topic %ch $topicwelcome $topicgame $topicmode $topichosts $topicgames
;; timergamestart 1 900 gamecheck
if (!$timer(spamcensure)) { timerspamcensure 1 120 spam.censure }
msg $nauth(%cu) $nauth(%cu) $+ $chr(44) $nauth(%u) Have challenged you on %ch }
}