This is meant to be used in a bot. Copy the code, then in bot's mirc, click "alt R", goto new, then paste. Make sure you change "#channel" to the channel you want this script to trigger in. Then goto "save-as" and save the file.
All done. Now just type "!wheel" in the channel and have fun! :D
on :text:!wheel:#: {
set %victim $nick($chan,$rand(1,$nick($chan,0)))
if ($me !isreg $chan) {
msg $chan $nick Wants to play "Wheel of MissFortune"!
timerspin1 1 3 msg $chan $nick spins the Wheel of MissFortune
timerspin2 1 5 msg $chan Spinning...
timerspin3 1 7 msg $chan Spinning......
if (%victim == $me) {
timerspin4 1 9 msg $chan I Am immune to the Wheel of MissFortune | goto end
}
if ($nick == %victim) {
timerspin4 1 9 msg $chan %victim spun the Wheel of MissFortune,7 %victim $+ just owned himself!
}
else {
timerspin4 1 9 msg $chan $nick spun the Wheel of MissFortune, it lands on7 %victim $+ . WE HAVE A WINNER!!!
}
timerspin5 1 11 kick # %victim HERE IS YOUR CONSOLATION PRIZE!!!
}
else {
timerspin5 1 11 kick # %victim HERE IS YOUR CONSOLATION PRIZE!!!
}
:end
halt
}