Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;ALIASES;
- alias grid return 1,12 B 12,12 1,0|4,4 1,4 I 4,4 1,0|8,8 1,8 N 8,8 1,0|9,9 1,9 G 9,9 1,0|7,7 1,7 O 7,7
- alias bingo return 1,12 B12,12 1,0|4,4 1,4I4,4 1,0|8,8 1,8N8,8 1,0|9,9 1,9G9,9 1,0|7,7 1,7O7,7
- alias -l blogo { return $+($c1([),$c2($1),$c1(])) }
- alias -l plogo { return $+($c1($chr(40)),$c2($1),$c1($chr(41))) }
- alias -l blogo2 { return $+($c2([),$c1($1),$c2(])) }
- alias -l plogo2 { return $+($c2($chr(40)),$c1($1),$c2($chr(41))) }
- alias -l logins { if (!$hget(Logins,$nick)) { .notice $nick $plogo(STATUS) $c1(Currently verifying) $c2(your) $c1(authentication with NickServ) $+ $c2(.) | .ns status $nick | halt } }
- alias incwins { writeini BingoStatistics.ini Wins $1 $iif($readini(BingoStatistics.ini,Wins,$1),$calc($v1 + 1),1) }
- alias inctotalgames { writeini BingoStatistics.ini total-played $1 $iif($readini(BingoStatistics.ini,total-played,$1),$calc($v1 + 1),1) }
- alias -l EngBingo {
- if ($1 == $null) {
- .msg #BingoStaff $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $c1($nick) $+($c2(Tried to end a game of Bingo without specifying a correct channel),$c1(!))
- return
- }
- unset $+(%bingo.,$1,.,*)
- }
- alias ReadyBingo {
- if ($1 == #FastBingo) {
- timer 1 20 StartBingo $1
- msg $1 $iif($r(1,2) == 1,$blogo2(BINGO),$plogo2(BINGO)) $c1(A game of) $bingo $c1(will start in) $c2(60) $+($c1(Seconds),$c2(.)) $c1(Type) $c2(!Join) $c1(to join the current) $c2(#FastBingo) $+($c1(Game),$c2(.))
- }
- else {
- .timer 1 120 StartBingo $1
- .msg $1 $iif($r(1,2) == 1,$blogo2(BINGO),$plogo2(BINGO)) $c1(A game of) $bingo $c1(will start in) $c2(120) $+($c1(Seconds),$c2(.)) $c1(Type) $c2(!Join) $c1(to join the current) $c1(Game of) $+($c2(Bingo),$c1(.))
- }
- set $+(%,bingo.,$1,.starting) true
- }
- alias -l StartBingo {
- if ($numtok($eval($+(%,bingo.,$1,.users),2),44) <= 1 || $eval($+(%,bingo.,$1,.users),2) == $null) { msg $1 Not enough users | endgame $1 | HALT }
- if ($1 == #FastBingo) {
- msg #FastBingo $iif($r(1,2) == 1,$blogo2(BINGO),$plogo2(BINGO)) $c1(The Game of) $bingo $+($c1(is now starting),$c2(!)) $c1(The first number will be drawn in) $c2(5) $+($c1(seconds),$c2($chr(44))) $c1(and consecutive draws will be) $c2(10) $+($c1(seconds apart),$c2(.))
- timer 1 5 GetNumber #FastBingo
- set $+(%,bingo.,$1,.Game) true
- }
- else {
- .msg $1 $iif($r(1,2) == 1,$blogo2(BINGO),$plogo2(BINGO)) $c1(The Game of) $bingo $+($c1(is now starting),$c2(!)) $c1(The first number will be drawn in) $c2(10) $+($c1(seconds),$c2($chr(44))) $c1(and consecutive draws will be) $c2(15) $+($c1(seconds apart),$c2(.))
- .timer 1 10 GetNumber $1
- set $+(%,bingo.,$1,.Game) true
- }
- var %x 1
- while (%x <= $numtok(%bingo. [ $+ [ $1 ] $+ .users ],44)) {
- var %user $gettok(%bingo. [ $+ [ $1 ] $+ .users ],%x,44)
- b1 $eval(%user,1)
- i1 $eval(%user,1)
- n1 $eval(%user,1)
- g1 $eval(%user,1)
- o1 $eval(%user,1)
- inc %x
- var %m $iif($readini(UserOptions.ini,msgornotice,$eval(%user,1)) == msg,msg $eval(%user,1),notice $eval(%user,1))
- %m $bingo
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b1,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b1,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b1,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i1,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i1,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i1,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n1,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n1,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n1,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g1,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g1,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g1,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o1,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o1,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o1,%user),2))),$chr(31))
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b2,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b2,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b2,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i2,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i2,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i2,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n2,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n2,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n2,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g2,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g2,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g2,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o2,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o2,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o2,%user),2))),$chr(31))
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b3,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b3,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b3,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i3,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i3,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i3,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n3,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n3,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n3,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g3,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g3,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g3,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o3,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o3,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o3,%user),2))),$chr(31))
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b4,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b4,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b4,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i4,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i4,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i4,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n4,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n4,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n4,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g4,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g4,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g4,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o4,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o4,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o4,%user),2))),$chr(31))
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b5,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b5,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b5,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i5,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i5,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i5,%user),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n5,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n5,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n5,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g5,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g5,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g5,%user),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o5,%user),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o5,%user),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o5,%user),2))),$chr(31))
- }
- unset $+(%,bingo.,$1,.starting)
- }
- alias GetNumber {
- if (!$eval($+(%,bingo.,$1,.gnums),3)) {
- var %bnum 1
- while (%bnum <= 75) {
- set $+(%,bingo.,$1,.gnums) $eval($+(%,bingo.,$1,.gnums),3) %bnum
- inc %bnum }
- }
- var %ball $gettok($eval($+(%,bingo.,$1,.gnums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.gnums),3),0,32)),32)
- set $+(%,bingo.,$1,.gnums) $remtok($eval($+(%,bingo.,$1,.gnums),3),%ball,1,32)
- if (%ball isnum 1-15) { set %call $+ $1 $+($chr(3),12,$chr(44),12,$chr(3),0,$chr(44),12,B,$chr(40),%ball,$chr(41)) }
- if (%ball isnum 16-30) { set %call $+ $1 $+($chr(3),4,$chr(44),4,$chr(3),0,$chr(44),4,I,$chr(40),%ball,$chr(41)) }
- if (%ball isnum 31-45) { set %call $+ $1 $+($chr(3),8,$chr(44),8,$chr(3),1,$chr(44),8,N,$chr(40),%ball,$chr(41)) }
- if (%ball isnum 46-60) { set %call $+ $1 $+($chr(3),9,$chr(44),9,$chr(3),0,$chr(44),9,G,$chr(40),%ball,$chr(41)) }
- if (%ball isnum 61-75) { set %call $+ $1 $+($chr(3),7,$chr(44),7,$chr(3),0,$chr(44),7,O,$chr(40),%ball,$chr(41)) }
- set %ballscalled $+ $1 $eval($+(%,ballscalled,$1),2) $+ . $+ %ball
- msg $1 $iif($r(1,2) == 1,$blogo2(CALL),$plogo2(CALL)) $+($c1(A new number has been called),$c2(!)) $c1(The new number is) $+($eval($+(%,call,$1),2),$chr(3),$c2(!)) $c1(If you have this number type) $+($c2(!mark),$c1(.))
- if ($1 == #FastBingo) .timerGetBall $+ $1 1 10 getnumber #FastBingo
- if ($1 != #FastBingo) .timerGetBall $+ $1 1 15 getnumber $1
- if ($eval($+(%,bingo.,$eval($1,1),.gnums),3) == $null) { endgame $1 | timergetball $+ $1 off }
- }
- alias endgame {
- unset %call $+ $1
- var %x 1
- while (%x <= $numtok(%bingo. [ $+ [ $1 ] $+ .users ],44)) {
- echo -a $numtok(%bingo. [ $+ [ $1 ] $+ .users ],44)
- unset $+(%,bingo.,*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44),*)
- unset $+(%,B1*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,B2*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,B3*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,B4*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,B5*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,I1*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,I2*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,I3*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,I4*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,I5*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,N1*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,n2*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,n3*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,n4*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,n5*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,g1*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,g2*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,g3*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,g4*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,g5*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,o1*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,o2*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,o3*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,o4*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- unset $+(%,o5*,$gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44))
- echo -a %x $gettok($eval($+(%,bingo.,$1,.users),2),%x,44)
- inctotalgames $gettok($eval($+(%,bingo.,$1,.users),2),$eval(%x,1),44)
- inc %x
- }
- unset $+(%*,$1,*)
- unset %ballscalled $+ $1
- .timerGetBall $+ $1 off
- unset $+(%,bingo.,$1,.gnums)
- if ($2) {
- incwins $2
- inctotalgames $2
- msg $1 $blogo2(WINNER) $c1(It seems we have a winner $+ $chr(44)) $c2($2) $c1(has gotten a line of) $c2(5) $+($c1(and now has a bingo),$c2(!)) $c1(They currently have) $c2($bytes($readini(BingoStatistics.ini,wins,$2),db)) $c1($+(Win,$iif($readini(BingoStatistics.ini,wins,$2) > 1,$+ s,$+ $null)) out of) $c2($bytes($readini(Bingostatistics.ini,Total-Played,$2),db)) $+($c1(Total $+(Game,$iif($readini(BingoStatistics.ini,total-played,$2) > 1,$+ s,$+ $null))),$c2(.))
- }
- }
- alias b1 {
- if (!$eval($+(%,bingo.,$1,.gnums),2)) {
- var %bnum 1
- while (%bnum <= 15) {
- set $+(%,bingo.,$1,.gnums) $eval($+(%,bingo.,$1,.gnums),2) %bnum
- inc %bnum }
- }
- var %ball $gettok($eval($+(%,bingo.,$1,.gnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.gnums),2),0,32)),32)
- set $+(%,bingo.,$1,.gnums) $remtok($eval($+(%,bingo.,$1,.gnums),2),%ball,1,32)
- set $+(%,b1,$1) $gettok($eval($+(%,bingo.,$1,.gnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.gnums),2),0,32)),32)
- set $+(%,bingo.,$1,.gnums) $remtok($eval($+(%,bingo.,$1,.gnums),2),$eval($+(%,b1,$1),2),1,32)
- set $+(%,b2,$1) $gettok($eval($+(%,bingo.,$1,.gnums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.gnums),2),0,32)),32)
- set $+(%,bingo.,$1,.gnums) $remtok($eval($+(%,bingo.,$1,.gnums),2),$eval($+(%,b2,$1),2),1,32)
- set $+(%,b3,$1) $gettok($eval($+(%,bingo.,$1,.gnums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.gnums),2),0,32)),32)
- set $+(%,bingo.,$1,.gnums) $remtok($eval($+(%,bingo.,$1,.gnums),2),$eval($+(%,b3,$1),2),1,32)
- set $+(%,b4,$1) $gettok($eval($+(%,bingo.,$1,.gnums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.gnums),2),0,32)),32)
- set $+(%,bingo.,$1,.gnums) $remtok($eval($+(%,bingo.,$1,.gnums),2),$eval($+(%,b4,$1),2),1,32)
- set $+(%,b5,$1) $gettok($eval($+(%,bingo.,$1,.gnums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.gnums),2),0,32)),32)
- set $+(%,bingo.,$1,.gnums) $remtok($eval($+(%,bingo.,$1,.gnums),2),$eval($+(%,b5,$1),2),1,32)
- unset $+(%,bingo.,$1,.gnums)
- }
- alias i1 {
- if (!$eval($+(%,bingo.,$1,.inums),2)) {
- var %inum 16
- while (%inum <= 30) {
- set $+(%,bingo.,$1,.inums) $eval($+(%,bingo.,$1,.inums),2) %inum
- inc %inum }
- }
- var %ball $gettok($eval($+(%,bingo.,$1,.inums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.inums),2),0,32)),32)
- set $+(%,bingo.,$1,.inums) $remtok($eval($+(%,bingo.,$1,.inums),2),%ball,1,32)
- set $+(%,i1,$1) $gettok($eval($+(%,bingo.,$1,.inums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.inums),2),0,32)),32)
- set $+(%,bingo.,$1,.inums) $remtok($eval($+(%,bingo.,$1,.inums),2),$eval($+(%,i1,$1),2),1,32)
- set $+(%,i2,$1) $gettok($eval($+(%,bingo.,$1,.inums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.inums),2),0,32)),32)
- set $+(%,bingo.,$1,.inums) $remtok($eval($+(%,bingo.,$1,.inums),2),$eval($+(%,i2,$1),2),1,32)
- set $+(%,i3,$1) $gettok($eval($+(%,bingo.,$1,.inums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.inums),2),0,32)),32)
- set $+(%,bingo.,$1,.inums) $remtok($eval($+(%,bingo.,$1,.inums),2),$eval($+(%,i3,$1),2),1,32)
- set $+(%,i4,$1) $gettok($eval($+(%,bingo.,$1,.inums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.inums),2),0,32)),32)
- set $+(%,bingo.,$1,.inums) $remtok($eval($+(%,bingo.,$1,.inums),2),$eval($+(%,i4,$1),2),1,32)
- set $+(%,i5,$1) $gettok($eval($+(%,bingo.,$1,.inums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.inums),2),0,32)),32)
- set $+(%,bingo.,$1,.inums) $remtok($eval($+(%,bingo.,$1,.inums),2),$eval($+(%,i5,$1),2),1,32)
- unset $+(%,bingo.,$1,.inums)
- }
- alias n1 {
- if (!$eval($+(%,bingo.,$1,.nnums),2)) {
- var %nnum 31
- while (%nnum <= 45) {
- set $+(%,bingo.,$1,.nnums) $eval($+(%,bingo.,$1,.nnums),2) %nnum
- inc %nnum }
- }
- var %ball $gettok($eval($+(%,bingo.,$1,.nnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.nnums),2),0,32)),32)
- set $+(%,bingo.,$1,.nnums) $remtok($eval($+(%,bingo.,$1,.nnums),2),%ball,1,32)
- set $+(%,n1,$1) $gettok($eval($+(%,bingo.,$1,.nnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.nnums),2),0,32)),32)
- set $+(%,bingo.,$1,.nnums) $remtok($eval($+(%,bingo.,$1,.nnums),2),$eval($+(%,n1,$1),2),1,32)
- set $+(%,n2,$1) $gettok($eval($+(%,bingo.,$1,.nnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.nnums),2),0,32)),32)
- set $+(%,bingo.,$1,.nnums) $remtok($eval($+(%,bingo.,$1,.nnums),2),$eval($+(%,n2,$1),2),1,32)
- set $+(%,n3,$1) $gettok($eval($+(%,bingo.,$1,.nnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.nnums),2),0,32)),32)
- set $+(%,bingo.,$1,.nnums) $remtok($eval($+(%,bingo.,$1,.nnums),2),$eval($+(%,n3,$1),2),1,32)
- set $+(%,n4,$1) $gettok($eval($+(%,bingo.,$1,.nnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.nnums),2),0,32)),32)
- set $+(%,bingo.,$1,.nnums) $remtok($eval($+(%,bingo.,$1,.nnums),2),$eval($+(%,n4,$1),2),1,32)
- set $+(%,n5,$1) $gettok($eval($+(%,bingo.,$1,.nnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.nnums),2),0,32)),32)
- set $+(%,bingo.,$1,.nnums) $remtok($eval($+(%,bingo.,$1,.nnums),2),$eval($+(%,n5,$1),2),1,32)
- unset $+(%,bingo.,$1,.nnums)
- }
- alias g1 {
- if (!$eval($+(%,bingo.,$1,.ggnums),2)) {
- var %gnum 46
- while (%gnum <= 60) {
- set $+(%,bingo.,$1,.ggnums) $eval($+(%,bingo.,$1,.ggnums),2) %gnum
- inc %gnum }
- }
- var %ball $gettok($eval($+(%,bingo.,$1,.ggnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.ggnums),2),0,32)),32)
- set $+(%,bingo.,$1,.ggnums) $remtok($eval($+(%,bingo.,$1,.ggnums),2),%ball,1,32)
- set $+(%,g1,$1) $gettok($eval($+(%,bingo.,$1,.ggnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.ggnums),2),0,32)),32)
- set $+(%,bingo.,$1,.ggnums) $remtok($eval($+(%,bingo.,$1,.ggnums),2),$eval($+(%,g1,$1),2),1,32)
- set $+(%,g2,$1) $gettok($eval($+(%,bingo.,$1,.ggnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.ggnums),2),0,32)),32)
- set $+(%,bingo.,$1,.ggnums) $remtok($eval($+(%,bingo.,$1,.ggnums),2),$eval($+(%,g2,$1),2),1,32)
- set $+(%,g3,$1) $gettok($eval($+(%,bingo.,$1,.ggnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.ggnums),2),0,32)),32)
- set $+(%,bingo.,$1,.ggnums) $remtok($eval($+(%,bingo.,$1,.ggnums),2),$eval($+(%,g3,$1),2),1,32)
- set $+(%,g4,$1) $gettok($eval($+(%,bingo.,$1,.ggnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.ggnums),2),0,32)),32)
- set $+(%,bingo.,$1,.ggnums) $remtok($eval($+(%,bingo.,$1,.ggnums),2),$eval($+(%,g4,$1),2),1,32)
- set $+(%,g5,$1) $gettok($eval($+(%,bingo.,$1,.ggnums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.ggnums),2),0,32)),32)
- set $+(%,bingo.,$1,.ggnums) $remtok($eval($+(%,bingo.,$1,.ggnums),2),$eval($+(%,g5,$1),2),1,32)
- unset $+(%,bingo.,$1,.ggnums)
- }
- alias o1 {
- if (!$eval($+(%,bingo.,$1,.onums),2)) {
- var %onum 61
- while (%onum <= 75) {
- set $+(%,bingo.,$1,.onums) $eval($+(%,bingo.,$1,.onums),2) %onum
- inc %onum }
- }
- var %ball $gettok($eval($+(%,bingo.,$1,.onums),2),$r(1,$gettok($eval($+(%,bingo.,$1,.onums),2),0,32)),32)
- set $+(%,bingo.,$1,.onums) $remtok($eval($+(%,bingo.,$1,.onums),2),%ball,1,32)
- set $+(%,o1,$1) $gettok($eval($+(%,bingo.,$1,.onums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.onums),3),0,32)),32)
- set $+(%,bingo.,$1,.onums) $remtok($eval($+(%,bingo.,$1,.onums),2),$eval($+(%,o1,$1),2),1,32)
- set $+(%,o2,$1) $gettok($eval($+(%,bingo.,$1,.onums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.onums),3),0,32)),32)
- set $+(%,bingo.,$1,.onums) $remtok($eval($+(%,bingo.,$1,.onums),2),$eval($+(%,o2,$1),2),1,32)
- set $+(%,o3,$1) $gettok($eval($+(%,bingo.,$1,.onums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.onums),3),0,32)),32)
- set $+(%,bingo.,$1,.onums) $remtok($eval($+(%,bingo.,$1,.onums),2),$eval($+(%,o3,$1),2),1,32)
- set $+(%,o4,$1) $gettok($eval($+(%,bingo.,$1,.onums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.onums),3),0,32)),32)
- set $+(%,bingo.,$1,.onums) $remtok($eval($+(%,bingo.,$1,.onums),2),$eval($+(%,o4,$1),2),1,32)
- set $+(%,o5,$1) $gettok($eval($+(%,bingo.,$1,.onums),3),$r(1,$gettok($eval($+(%,bingo.,$1,.onums),3),0,32)),32)
- set $+(%,bingo.,$1,.onums) $remtok($eval($+(%,bingo.,$1,.onums),2),$eval($+(%,o5,$1),2),1,32)
- unset $+(%,bingo.,$1,.onums)
- }
- alias brank {
- filter -ffrcuetg 2 $+ - $+ $calc($ini(bingostatistics.ini,wins,0) +1) 2 61 bingostatistics.ini brank.txt
- if ($isfile(brank.txt)) {
- var %rank $iif($1 isnum,$read(brank.txt,$1),$read(brank.txt, w, $+($1,=,*)))
- if ($gettok(%rank,1,32) >= 1) {
- return $readn $replace(%rank,=,$chr(32))
- }
- else return $null
- }
- }
- alias toprank {
- filter -ffrcuetg 2 $+ - $+ $calc($ini(bingostatistics.ini,wins,0) +1) 2 61 bingostatistics.ini btop.txt
- if ($isfile(btop.txt)) {
- var %t $blogo2(TOP TEN) $c1(1:) $c2($gettok($read(btop.txt,1),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,1),2,61),db)) $c2($chr(124)) $c1(2:) $c2($gettok($read(btop.txt,2),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,2),2,61),db)) $c2($chr(124)) $c1(3:) $c2($gettok($read(btop.txt,3),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,3),2,61),db)) $c2($chr(124)) $c1(4:) $c2($gettok($read(btop.txt,4),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,4),2,61),db)) $c2($chr(124)) $c1(5:) $c2($gettok($read(btop.txt,5),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,5),2,61),db)) $c2($chr(124)) $c1(6:) $c2($gettok($read(btop.txt,6),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,6),2,61),db)) $c2($chr(124)) $c1(7:) $c2($gettok($read(btop.txt,7),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,7),2,61),db)) $c2($chr(124)) $c1(8:) $c2($gettok($read(btop.txt,8),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,8),2,61),db)) $c2($chr(124)) $c1(9:) $c2($gettok($read(btop.txt,9),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,9),2,61),db)) $c2($chr(124)) $c1(10:) $c2($gettok($read(btop.txt,10),1,61)) $plogo(Wins: $bytes($gettok($read(btop.txt,10),2,61),db))
- return %t
- }
- }
- ;LOGIN;
- on $*:TEXT:/^[!.@]login/Si:#:{
- if (bingo !isin $chan) { RETURN }
- if (!$hGet(Logins,$nick)) {
- if (!$hGet(Waiting,$nick)) {
- hAdd -mz Waiting $nick 10
- ns status $nick
- }
- }
- else { .notice $nick $plogo(STATUS) $c2(You) $c1(are already logged in) $+ $c2(!) | .ignore -u3 $nick }
- }
- on ^*:NOTICE:Status*:?:{
- if ($nick == NickServ) {
- if (!$hget(logins,$2)) {
- if ($3 >= 2) {
- notice $2 $plogo(STATUS) $c2(NickServ) $c1(authentication was a success with the nick) $c2($2) $+ $c1(!)
- hadd -m logins $2 $ctime
- watch $+(+,$2)
- haltdef
- }
- else {
- notice $2 $plogo(STATUS) $c2(NickServ) $c1(authentication failed) $+ $c2(!) $c1(Please identify with NickServ) $+ $c2(.)
- haltdef
- }
- }
- else { .notice $2 $plogo(STATUS) $c1(You are already logged in) $+ $c2(.) | ignore -u3 $nick }
- }
- }
- raw 601:*:{
- if ($hGet(Logins,$gettok($2,1,126))) {
- hdel Logins $gettok($2,1,126)
- watch $+(-,$gettok($2,1,126))
- }
- }
- on 1:NICK:{ if ($hGet(Logins,$nick)) { hdel Logins $nick } }
- on 1:QUIT:{ if ($hGet(Logins,$nick)) { hdel Logins $nick } }
- ;BINGO STUFF;
- On $*:TEXT:/^[.!]Endbingo\b/Si:#Bingo,#BingoStaff,#FastBingo,#Bingo2,#Bingo3: {
- logins
- var %m $iif($readini(UserOptions.ini,msgornotice,$nick) == msg,msg $nick,notice $nick)
- if ($readini(BingoStaff.ini,Admins,$nick)) {
- if ($2 == $null || $2 != #Bingo || $2 != #Bingo2 || $2 != #bingo3) { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $+($c1(You have not specified a correct channel),$c2(!)) | RETURN }
- .msg $2 $iif($r(1,2) == 1,$blogo2(Admin End),$plogo2(Admin End)) $c1(Administrator) $c2($nick) $+($c1(just ended the game in this channel),$c2(.))
- .msg #BingoStaff $iif($r(1,2) == 1,$blogo2(Force End),$plogo2(Force End)) $c1(Administrator) $c2($nick) $c1(just ended the game in) $+($c2($2),.)
- EndBingo $2
- }
- else { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $c1(You must be an) $c2(Administrator) $+($c1(to end a game),$c2(!)) | return }
- }
- On $*:TEXT:/^[.!]Startbingo\b/Si:#FastBingo,#Bingo2,#Bingo3: {
- var %m $iif($readini(UserOptions.ini,msgornotice,$nick) == msg,msg $nick,notice $nick)
- if ($eval($+(%,bingo,.,$chan,.game),2) == true) { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $c1(There is already a game of) $c2(BINGO) $+($c1(going),!) | RETURN }
- logins
- ReadyBingo #
- }
- On $*:TEXT:/^[.!]join\b/Si:#Bingo,#FastBingo,#Bingo2,#Bingo3: {
- logins
- var %m $iif($readini(UserOptions.ini,msgornotice,$nick) == msg,msg $nick,notice $nick)
- if ($eval($+(%,bingo.,$chan,.starting),2) == true) {
- if ($eval($+(%,bingo.,all,.user,$nick),2) == true) { %m $c1($+(Sorry,$chr(44)) but you've already joined a game of) $+($bingo,$c2(!)) | RETURN }
- set $+(%,bingo.,all,.user,$nick) true
- set $+(%,bingo.,$chan,.users) $+($eval($+(%,bingo.,#,.users),2),$iif($+(%,bingo.,#,.users),$iif($eval($+(%,bingo.,#fastbingo,.users),3),$chr(44),$null),$null),$nick)
- %m $plogo2(JOIN) $c1(You have joined the game of) $bingo $c1(in) $+($c2(#),$c1(!))
- }
- else { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $c1(Nobody has started a game yet in) $+($c2(#),$c2(!)) $c1(You can start a game by typing) $c2(!Startgame) $+($c1(in the channel you wish to play in),$c2(.))
- }
- }
- On $*:TEXT:/^[.!](board|grid)\b/Si:#Bingo,#FastBingo,#Bingo2,#Bingo3: {
- var %m $iif($readini(UserOptions.ini,msgornotice,$nick) == msg,msg $nick,notice $nick)
- if ($eval($+(%,bingo.,all,.user,$nick),2) == true) {
- %m $bingo
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b1,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b1,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b1,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i1,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i1,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i1,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n1,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n1,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n1,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g1,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g1,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g1,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o1,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o1,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o1,$nick),2))),$chr(31))
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b2,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b2,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b2,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i2,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i2,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i2,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n2,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n2,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n2,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g2,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g2,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g2,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o2,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o2,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o2,$nick),2))),$chr(31))
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b3,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b3,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b3,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i3,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i3,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i3,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n3,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n3,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n3,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g3,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g3,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g3,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o3,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o3,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o3,$nick),2))),$chr(31))
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b4,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b4,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b4,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i4,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i4,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i4,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n4,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n4,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n4,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g4,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g4,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g4,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o4,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o4,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o4,$nick),2))),$chr(31))
- %m $+($+($eval($+($chr(3),01,$chr(44),12),1)),$iif($len($eval($+(%,b5,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,b5,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,b5,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$chr(31),$+($eval($+($chr(3),01,$chr(44),04),1)),$iif($len($eval($+(%,i5,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,i5,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,i5,$nick),2))),$chr(31),$chr(3),$chr(31),$chr(124),$+($eval($+($chr(3),01,$chr(44),08),1)),$chr(31),$iif($len($eval($+(%,n5,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,n5,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,n5,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),09),1)),$chr(31),$iif($len($eval($+(%,g5,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,g5,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,g5,$nick),2))),$chr(3),$chr(124),$+($eval($+($chr(3),01,$chr(44),07),1)),$chr(31),$iif($len($eval($+(%,o5,$nick),2)) == 1,$+($chr(160),$chr(31),$eval($+(%,o5,$nick),2),$chr(31),$chr(160),$chr(31)),$+($chr(160),$chr(31),$eval($+(%,o5,$nick),2))),$chr(31))
- }
- else { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $+($c1(You are not in a game),$c2($chr(33)))
- }
- }
- On $*:TEXT:/^[.!]bingo\b/Si:#Bingo,#FastBingo,#Bingo2,#Bingo3: {
- var %m $iif($readini(UserOptions.ini,msgornotice,$nick) == msg,msg $nick,notice $nick)
- if ($eval($+(%,bingo.,all,.user,$nick),2) == true) {
- if ($eval($+(%,b1,$nick),2) == x) && ($eval($+(%,b2,$nick),2) == x) && ($eval($+(%,b3,$nick),2) == x) && ($eval($+(%,b4,$nick),2) == x) && ($eval($+(%,b5,$nick),2) == x) { var %bbingo yes }
- if ($eval($+(%,i1,$nick),2) == x) && ($eval($+(%,i2,$nick),2) == x) && ($eval($+(%,i3,$nick),2) == x) && ($eval($+(%,i4,$nick),2) == x) && ($eval($+(%,i5,$nick),2) == x) { var %ibingo yes }
- if ($eval($+(%,n1,$nick),2) == x) && ($eval($+(%,n2,$nick),2) == x) && ($eval($+(%,n3,$nick),2) == x) && ($eval($+(%,n4,$nick),2) == x) && ($eval($+(%,n5,$nick),2) == x) { var %nbingo yes }
- if ($eval($+(%,g1,$nick),2) == x) && ($eval($+(%,g2,$nick),2) == x) && ($eval($+(%,g3,$nick),2) == x) && ($eval($+(%,g4,$nick),2) == x) && ($eval($+(%,g5,$nick),2) == x) { var %gbingo yes }
- if ($eval($+(%,o1,$nick),2) == x) && ($eval($+(%,o2,$nick),2) == x) && ($eval($+(%,o3,$nick),2) == x) && ($eval($+(%,o4,$nick),2) == x) && ($eval($+(%,o5,$nick),2) == x) { var %obingo yes }
- if ($eval($+(%,b1,$nick),2) == x) && ($eval($+(%,i2,$nick),2) == x) && ($eval($+(%,n3,$nick),2) == x) && ($eval($+(%,g4,$nick),2) == x) && ($eval($+(%,o5,$nick),2) == x) { var %dlrbingo yes }
- if ($eval($+(%,b5,$nick),2) == x) && ($eval($+(%,i4,$nick),2) == x) && ($eval($+(%,n3,$nick),2) == x) && ($eval($+(%,g2,$nick),2) == x) && ($eval($+(%,o1,$nick),2) == x) { var %drlbingo yes }
- if ($eval($+(%,b1,$nick),2) == x) && ($eval($+(%,i1,$nick),2) == x) && ($eval($+(%,n1,$nick),2) == x) && ($eval($+(%,g1,$nick),2) == x) && ($eval($+(%,o1,$nick),2) == x) { var %r1bingo yes }
- if ($eval($+(%,b2,$nick),2) == x) && ($eval($+(%,i2,$nick),2) == x) && ($eval($+(%,n2,$nick),2) == x) && ($eval($+(%,g2,$nick),2) == x) && ($eval($+(%,o2,$nick),2) == x) { var %r2bingo yes }
- if ($eval($+(%,b3,$nick),2) == x) && ($eval($+(%,i3,$nick),2) == x) && ($eval($+(%,n3,$nick),2) == x) && ($eval($+(%,g3,$nick),2) == x) && ($eval($+(%,o3,$nick),2) == x) { var %r3bingo yes }
- if ($eval($+(%,b4,$nick),2) == x) && ($eval($+(%,i4,$nick),2) == x) && ($eval($+(%,n4,$nick),2) == x) && ($eval($+(%,g4,$nick),2) == x) && ($eval($+(%,o4,$nick),2) == x) { var %r4bingo yes }
- if ($eval($+(%,b5,$nick),2) == x) && ($eval($+(%,i5,$nick),2) == x) && ($eval($+(%,n5,$nick),2) == x) && ($eval($+(%,g5,$nick),2) == x) && ($eval($+(%,o5,$nick),2) == x) { var %r5bingo yes }
- msg # $nick just got a bingo with $iif(%bbingo == yes, column 1,$null) $iif(%ibingo == yes, column 2,$null) $iif(%nbingo == yes, column 3,$null) $iif(%gbingo == yes, column 4,$null) $iif(%obingo == yes, column 5,$null) $iif(%r1bingo == yes, row 1,$null) $iif(%r2bingo == yes, row 2,$null) $iif(%r3bingo == yes, row 3,$null) $iif(%r4bingo == yes, row 4,$null) $iif(%r5bingo == yes, row 5,$null)
- endgame $chan $nick
- }
- else { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $c1(you are not currently in a game of) $+($bingo,$c2(!)) }
- }
- On $*:TEXT:/^[.!]mark\b/Si:#Bingo,#FastBingo,#Bingo2,#Bingo3: {
- var %m $iif($readini(UserOptions.ini,msgornotice,$nick) == msg,msg $nick,notice $nick)
- if ($2) { if ($remove($strip($2),b,i,n,g,o) !isnum 1-75) { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $+($c1(The numbers range from 1),$c2($chr(45)),$c1(75),$c2(!)) | RETURN } }
- if ($eval($+(%,bingo.,all,.user,$nick),2) == true) {
- var %allnums $+($eval($+(%,b1,$nick),2),.,$eval($+(%,b2,$nick),2),.,$eval($+(%,b3,$nick),2),.,$eval($+(%,b4,$nick),2),.,$eval($+(%,b5,$nick),2),.,$eval($+(%,i1,$nick),2),.,$eval($+(%,i2,$nick),2),.,$eval($+(%,i3,$nick),2),.,$eval($+(%,i4,$nick),2),.,$eval($+(%,i5,$nick),2),.,$eval($+(%,n1,$nick),2),.,$eval($+(%,n2,$nick),2),.,$eval($+(%,n3,$nick),2),.,$eval($+(%,n4,$nick),2),.,$eval($+(%,n5,$nick),2),.,$eval($+(%,g1,$nick),2),.,$eval($+(%,g2,$nick),2),.,$eval($+(%,g3,$nick),2),.,$eval($+(%,g4,$nick),2),.,$eval($+(%,g5,$nick),2),.,$eval($+(%,o1,$nick),2),.,$eval($+(%,o2,$nick),2),.,$eval($+(%,o3,$nick),2),.,$eval($+(%,o4,$nick),2),.,$eval($+(%,o5,$nick),2))
- var %mball $iif($2,$remove($strip($2),b,i,n,g,o),$remove($strip($eval($+(%,call,#),2)),b,i,n,g,o,$chr(40),$chr(41)))
- if (!$istok(%allnums,%mball,46)) { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $c1(You do) $c2(not) $+($c1(have that number on your board),$c2(!)) | HALT }
- if ($istok($eval($+(%,ballscalled,$chan),2),%mball,46) == $true) {
- if (%mball isnum 1-15) { var %let B | if ($eval($+(%,b1,$nick),2) == %mball) set $+(%,b1,$nick) x | if ($eval($+(%,b2,$nick),2) == %mball) set $+(%,b2,$nick) x | if ($eval($+(%,b3,$nick),2) == %mball) set $+(%,b3,$nick) x | if ($eval($+(%,b4,$nick),2) == %mball) set $+(%,b4,$nick) x | if ($eval($+(%,b5,$nick),2) == %mball) set $+(%,b5,$nick) x }
- if (%mball isnum 16-30) { var %let I | if ($eval($+(%,i1,$nick),2) == %mball) set $+(%,i1,$nick) x | if ($eval($+(%,i2,$nick),2) == %mball) set $+(%,i2,$nick) x | if ($eval($+(%,i3,$nick),2) == %mball) set $+(%,i3,$nick) x | if ($eval($+(%,i4,$nick),2) == %mball) set $+(%,i4,$nick) x | if ($eval($+(%,i5,$nick),2) == %mball) set $+(%,i5,$nick) x }
- if (%mball isnum 31-45) { var %let N | if ($eval($+(%,n1,$nick),2) == %mball) set $+(%,n1,$nick) x | if ($eval($+(%,n2,$nick),2) == %mball) set $+(%,n2,$nick) x | if ($eval($+(%,n3,$nick),2) == %mball) set $+(%,n3,$nick) x | if ($eval($+(%,n4,$nick),2) == %mball) set $+(%,n4,$nick) x | if ($eval($+(%,n5,$nick),2) == %mball) set $+(%,n5,$nick) x }
- if (%mball isnum 46-60) { var %let G | if ($eval($+(%,g1,$nick),2) == %mball) set $+(%,g1,$nick) x | if ($eval($+(%,g2,$nick),2) == %mball) set $+(%,g2,$nick) x | if ($eval($+(%,g3,$nick),2) == %mball) set $+(%,g3,$nick) x | if ($eval($+(%,g4,$nick),2) == %mball) set $+(%,g4,$nick) x | if ($eval($+(%,g5,$nick),2) == %mball) set $+(%,g5,$nick) x }
- if (%mball isnum 61-75) { var %let O | if ($eval($+(%,o1,$nick),2) == %mball) set $+(%,o1,$nick) x | if ($eval($+(%,o2,$nick),2) == %mball) set $+(%,o2,$nick) x | if ($eval($+(%,o3,$nick),2) == %mball) set $+(%,o3,$nick) x | if ($eval($+(%,o4,$nick),2) == %mball) set $+(%,o4,$nick) x | if ($eval($+(%,o5,$nick),2) == %mball) set $+(%,o5,$nick) x }
- %m $iif($r(1,2) == 1,$blogo2(BINGO),$plogo2(BINGO)) $c1(You have just marked the number) $c2(%mball) $c1(in column) $+($c2(%let),$c1(. To see your board type)) $c2(!Board) $c1(or) $+($c2(!grid),$c1(.))
- }
- else { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $c1(%mball) $+($c1(did not match any balls that have been called),$c2(!)) }
- }
- else { %m $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $+($c1(You are not currently in a game),$c2(!))
- }
- }
- on $*:TEXT:/^[!@.]rank/Si:#Bingo,#FastBingo,#Bingo2,#Bingo3:{
- var %n $iif($2,$2,$nick), %msg $iif($left($1,1) == @,msg #,$iif($readini(UserOptions.ini,msgornotice,$nick) == msg,msg $nick,notice $nick)), %rank $brank($replace(%n,$chr(91),$chr(126),$chr(93),$chr(126)))
- if ($2 isnum) && ($2 > $ini(bingostatistics.ini,wins,0)) { %msg $iif($r(1,2) == 1,$blogo2(ERROR),$plogo2(ERROR)) $+($c1(I do not have that many users),$c2(.)) | RETURN }
- if (%rank) {
- var %rankb4 $calc($gettok(%rank,1,32) - 1)
- var %rankb4wins $gettok($brank(%rankb4),3,32)
- var %winsneed4rank $calc(%rankb4wins - $gettok(%rank,3,32) + 1)
- %msg $blogo(RANK) $c2($gettok(%rank,2,32)) $c1(is ranked) $+($c2($gettok(%rank,1,32)),$c1(/),$c2($ini(bingostatistics.ini,wins,0))) $c1(with) $c2($bytes($gettok(%rank,3,32),db)) $c1(win $+ $iif($gettok(%rank,3,32) == 1,$null,s)) $+ $c2(.) $iif($readn >= 1,$c1(They need) $c2($bytes(%winsneed4rank,db)) $c1(more win $+ $iif(%winsneed4rank == 1,$+ $null,$+ s) for rank) $c2(%rankb4) $+ $c1(.))
- }
- else { %m $plogo(ERROR) $c1(Sorry) $+ $c2($chr(44)) $c1(but I could not find a rank for) $c2(%n) $+ $c1(.) }
- }
- on $*:TEXT:/^[!@.](top$|top10$)/Si:#Bingo,#n0drama,#bingostaff,#Fastbingo,#bingo.support:{
- var %msg $iif($left($1,1) == @,msg #,$iif($readini(UserOptions.ini,msgornotice,$nick) == msg,msg $nick,notice $nick))
- if ($ini(bingostatistics.ini,wins,0) >= 10) {
- %msg $toprank
- }
- else { %msg $plogo(ERROR) $c1(Sorry) $+ $c2($chr(44)) $c1(but this command is currently offline due to not having enough users) $+ $c1(.) }
- }
- on $*:TEXT:/^[!@.]addvip/Si:#bingostaff:{
- if ($istok(Admin.Helper.Supporter,$2,46) != $true || $3 == $null) { .notice $nick Correct syntax: !addvip Admin/Helper/Staff Nick | RETURN }
- if ($readini(BingoStaff.ini,Admin,$address($nick,2)) == yes) {
- msg # $nick just added $3 to the $+($2,s) list!
- writeini BingoStaff.ini $2 $address($3,2) yes
- }
- }
- ;JOIN/QUIT/PART;
- on 1:JOIN:#Bingo,#Bingo2,#Bingo3,#FastBingo,#bingo.support:{
- if ($chan != #bingo.support) {
- if ($readini(BingoStatistics.ini,Wins,$nick) >= 50) {
- mode # +v $nick
- }
- if ($gettok($brank($nick),1,32) <= 3) {
- msg # $iif($r(1,2) == 1,$plogo(TOP PLAYER),$blogo(TOP PLAYER)) $c2($nick) $+($c1($chr(40)),$c2(Rank),$c1(:),$chr(32),$c2($brank($nick)),$c1($chr(41))) $c2(has joined) $+($c1(#),$c2(.)) $c2(Wins:) $c1($readini(bingostatistics.ini,wins,$nick)) $c2(Games:) $c1($readini(bingostatistics.ini,total-played,$nick))
- }
- }
- if ($readini(BingoStaff.ini,Admin,$address($nick,2)) == yes) {
- msg # $plogo2(STAFF JOIN) $c1(Admin) $c2($nick) $c1(has joined) $+($c2(#),$c1(.))
- }
- if ($readini(Bingostaff.ini,Helper,$address($nick,2)) == yes) {
- msg # $plogo2(STAFF JOIN) $c1(Helper) $c2($nick) $c1(has joined) $+($c2(#),$c1(.))
- }
- if ($readini(Bingostaff.ini,Supporter,$address($nick,2)) == yes) {
- msg # $plogo2(VIP JOIN) $c1(Supporter) $c2($nick) $c1(has joined) $+($c2(#),$c1(.))
- }
- }
- on $*:TEXT:/^[!@.]set/Si:#bingo,#bingo.support,#fastbingo,#bingostaff:{
- logins
- var %m $iif($readini(UserOptions.ini,msgornotice,$nick) == msg,msg $nick,notice $nick)
- if ($2 == notify) {
- if ($3 == $null) { .notice $nick $plogo2(SYNTAX) $c1(The correct syntax is) $c2(!set notify msg/message/query/pm/privmsg/notice) | RETURN }
- if ($istok(msg.message.query.pm.privmsg,$3,46) == $true) {
- writeini useroptions.ini msgornotice $nick msg
- %m $plogo2(SETTINGS) $c1(You have changed your) $c2(notify) $c1(setting to) $+($c2(message),$c1(/),$c2(query)) $+($c1(you),$c2(.))
- }
- if ($3 == notice) {
- %m $plogo2(SETTINGS) $c1(You have changed your) $c2(notify) $c1(setting to) $c2(notice) $+($c1(you),$c2(.))
- remini useroptions.ini msgornotice $nick
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement