Top

8Ball

Please Register to submit score.
Average Score  0.0
Scores Submitted  0
Date Added  Feb 22, 2008
Last Updated  Feb 22, 2008
Tags  8ball  bots  fun  games 

Introduction

All you do is type `8ball question and it will give you an answer.

Grab the Code

Comments

  (4)  RSS
humming_hi
Comments: 9
 
mIRC Snippet:  8Ball
Posted on Feb 22, 2008 5:13 am
Hi, you could also do it like this. to add more answers, add them to the var and use + for spaces.
Code:
 on *:text:`8ball *:#: {
  describe $chan is looking into the 8ball.
  var %~ = Yes. No. Maybe. Try+again+later.
  msg # $replace($gettok(%~,$r(1,$numtok(%~,32)),32),+,$chr(32))
}
mountaindew
Comments: 1,380
 
mIRC Snippet:  8Ball
Posted on Feb 22, 2008 9:41 am
humming_hi, no need for $replace, just set the var with a delimeter like "Yes.|No.|Maybe.|Try again later.|other words with spaces."

or better yet, u could $gettok 46 since they all end in periods
water_dragon
Comments: 43
 
mIRC Snippet:  8Ball
Posted on Feb 24, 2008 3:40 am
all just make it read from a text file that way people wouldnt have to edit the script and just put there own words in :)
water_dragon
Comments: 43
 
mIRC Snippet:  8Ball
Posted on Feb 24, 2008 3:41 am
oh my mistake thats wot he has done :S

Please Register or Login to start posting comments.
Bottom