# * PoiXons * SIMPLE * Slots

### By PoiXon on Nov 28, 2004

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 }
}
Slots
.on { set %slots on }
.off { unset %slots }
}
``````

globus   -  Jul 14, 2005

samcobra wrote :Why don\'t you just use if (%b == %d) && (%d == %f)
i made like you said and now its working! :D

globus   -  Jul 14, 2005

hmz... it doesn\'t says when you win...

PoiXon   -  Jan 12, 2005

lucifer1 paste this new script there was a problem with the first one

PoiXon   -  Jan 12, 2005

Click in the menu nicklist and click on slots and then \"on\" then when someone types !slots in the channel it will play

Lucifer1   -  Jan 12, 2005

how do i turn this on?

Marius_Craciunoiu   -  Dec 01, 2004

nice

samcobra   -  Nov 30, 2004

Why don\'t you just use if (%b == %d) && (%d == %f)

DarthReven   -  Nov 28, 2004

Interesting

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.