http://www.hawkee.com/snippet/3076/
Its almost same, just the above script some more features :)
I don\'t want to explain, bunch of rubbish in it, and why not just...
on :text:!8ball:#: {
if ( %8ball == off ) {
msg $chan Sorry $nick $+ , The 8ball Game Is Currently OFF
elseif { (%8ball == on) {
msg $chan $nick $+ : $read($mircdir $+ 8ball.txt)
}
on :text:!write:#: {
if ($nick == Bot\'sOwnerNick) {
$write($mircdir $+ 8ball.txt $2-
notice $nick $2- is sucessfully added to the 8ball questions list =)
}
menu * {
8ball
.On { set %8ball on | echo -a The 8ball game has been activated! }
.Off { set %8ball off | echo -a The 8ball game has been de-activated! }