Ghost-writer commented on a Page, Magic 8-ball  -  Oct 31, 2009
on *:TEXT:!8ball*:#: {
  set %8ball $rand(1,12)
  msg $chan Original question: $2- Answer:
  if(%8ball == 1) { msg $chan No! }
  if(%8ball == 2) { msg $chan Yes! }
  if(%8ball == 3) { msg $chan Of course }
  if(%8ball == 4) { msg $chan Have you gone mad?! I think you have }
  if(%8ball == 5) { msg $chan How should I know? Its not like I'm magic }
  if(%8ball == 6) { msg $chan Heck no! }
  if(%8ball == 7) { msg $chan Maybe... yeah }
  if(%8ball == 1) { msg $chan Why should I tell you? | .timer 1 2 msg $chan BTW don't try and bribe me! }
  if(%8ball == 8) { msg $chan If I say yes will you be quiet? }
  if(%8ball == 9) { msg $chan Yes... that will be 30 dollars }
  if(%8ball == 10) { msg $chan How should I say this? Um... no }
  unset %8ball
}

Why are there so many 8balls on hawkee!!! argh! You should also use var %8ball so you dont need to unset it.
i guess you could try sockets but for purposes of this, you dont need the brackets. so like.

on *:TEXT:!8ball*:#: {
  var %8ball $rand(1,12)
  msg $chan Original question: $2- Answer:
  if %8ball == 1 msg $chan No! 
  if %8ball == 2  msg $chan Yes! 
  if %8ball == 3  msg $chan Of course 
  if %8ball == 4 msg $chan Have you gone mad?! I think you have 
  if %8ball == 5  msg $chan How should I know? Its not like I'm magic 
  if %8ball == 6  msg $chan Heck no! 
  if %8ball == 7 msg $chan Maybe... yeah 
  if %8ball == 1 msg $chan Why should I tell you? | .timer 1 2 msg $chan BTW don't try and bribe me!
  if %8ball == 8 msg $chan If I say yes will you be quiet?
  if %8ball == 9 msg $chan Yes... that will be 30 dollars
  if %8ball == 10 msg $chan How should I say this? Um... no
}

And theres your code improved and 100% working.

 Respond  
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.