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! }
set %coolness $rand(1,100)
.timer 1 4 .msg $chan $nick is %coolness $+ % cool. 8-)
Godzilla
commented on a Snippet, 8ball - Aug 29, 2007
Mono, you didn\'t notice what napa182 said, no need of / before /set %8ball $rand(1,6)
Godzilla
commented on a Snippet, 8ball - Aug 29, 2007
Its a nice snippet if your a scripting noob, and oh yeah events have to ended with 2 brackets for example:
.
.
.
if (%8ball == 5) .msg $chan 8,1Are You Retarted Or Something
if (%8ball == 6) /msg $chan 8,1Are You Serious..?
}
}