This is a slot machine all it does is give a random digit from % , & , @ , Jackpot when someone types !slots. and will message the channel saying if they are a winner !!!!!
on *:TEXT:!slots:#: {
if (%slots == on) {
set %a $rand(1,4)
if (%a == 1) { set %b % }
if (%a == 2) { set %b & }
if (%a == 3) { set %b @ }
if (%a == 4) { set %b Jackpot }
set %c $rand(1,4)
if (%c == 1) { set %d % }
if (%c == 2) { set %d & }
if (%c == 3) { set %d @ }
if (%c == 4) { set %d Jackpot }
set %e $rand(1,4)
if (%e == 1) { set %f % }
if (%e == 2) { set %f & }
if (%e == 3) { set %f @ }
if (%e == 4) { set %f Jackpot }
msg $chan $nick pulled the handle and got 2(4 $+ %b $+ 2) (4 $+ %d $+ 2) (4 $+ %f $+ 2)
if (%b == %) && (%d == %) && (%f == %) { msg $chan 2We Have a Winner 4"2 $+ $nick $+ 4" }
if (%b == &) && (%d == &) && (%f == &) { msg $chan 2We Have a Winner 4"2 $+ $nick $+ 4" }
if (%b == @) && (%d == @) && (%f == @) { msg $chan 2We Have a Winner 4"2 $+ $nick $+ 4" }
if (%b == Jackpot) && (%d == Jackpot) && (%f == Jackpot) { msg $chan 2We Have a Winner 4"2 $+ $nick $+ 4" 2!4!2!4! }
unset %a | unset %b | unset %c | unset %d | unset %e | unset %f }
}
menu nicklist {
Slots
.on { set %slots on }
.off { unset %slots }
}