mIRC Home    About    Download    Register    News    Help

Print Thread
#117135 13/04/05 04:10 AM
Joined: Mar 2005
Posts: 41
P
pUff Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 41
I need help with a !8ball script because I cant figure out how to make it say random text. How do I make it say something different every time someone asks something when they say !8ball ?

#117136 13/04/05 04:32 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
there isnt normally a totally random text everytime, its one of a set
you could try something like this

on *:text:!8ball:#channel:{ notice $nick Usage for 8ball is !8ball <your question> }
on *:text:!8ball *:#channel { describe $chan answers $nick with a $read(!8ball.txt) }

Then in !8ball.txt file just have lines that it might reply, ie:
yes
no
not today
not maybe another time
not maybe not
not mostly
mostly not
mostly
rarely
sometimes
always
never

This is the simplest i could think of.

#117137 13/04/05 05:40 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I'm not sure about using the ! in the filename !8ball.txt
Although it would work just as well using 8ball.txt rather than !8ball.txt

#117138 13/04/05 06:42 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Theres no problem with using a ! in a filename.

#117139 13/04/05 11:12 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
!<tab> won't work with autocomplete in a cmd window unless you type "!"<tab> :tongue: (ok I don't know any other problems)

For the OP: You can probably find more !8ball scripts on this forum by using the search feature, make sure to expand search range to a few years...

#117140 13/04/05 07:33 PM
Joined: Mar 2005
Posts: 41
P
pUff Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Mar 2005
Posts: 41
thank you all... i made a script that works with your ideas... thank you smile

on *:TEXT:!8ball*:#:/msg $chan $read(8ball.txt)


Link Copied to Clipboard