Er, I'm new to mIRC scripting. I know some commands but I've only been scripting for about a two or three days so this bot might have some errors, anyway.. This is just a small bot a made with some commands, nicklist popups and a /Whois command. Updates will be made. Any comments or questions email me.
I saw you already know how to write files so..
why not make an 8ball file?
Saves you like 6 lines.
On $*:TEXT:/^[.!@]8ball/Si:?: { Say $read(8ball.txt) }
Make sure you\'ve got a text file called 8ball containing the 8 answers..
And dull..
-You could just use \" say \" instead of \" msg # \" or \" msg $chan \"
-You can use $r(1,5) instead of $rand(1,5)
on *:TEXT:!8Ball:#: {
var %8 $rand(1,5)
if (%8 == 1) { msg $chan $nick $+ , Yes. }
if (%8 == 2) { msg $chan $nick $+ , No. }
if (%8 == 3) { msg $chan $nick $+ , Maybe some day. }
if (%8 == 4) { msg $chan $nick $+ , I don\'t think so! }
if (%8 == 5) { msg $chan $nick $+ , Ask another time. }
}
Could also have been
on *:TEXT:!8Ball:#: {
var %8 $rand(1,5)
if (%8 == 1) { msg # Yes. }
if (%8 == 2) { msg # No. }
if (%8 == 3) { msg # Maybe some day. }
if (%8 == 4) { msg # I don\'t think so! }
if (%8 == 5) { msg # Ask another time. }
}
Still, nice script, I like it. Good for entertaining people when they are bored! 9/10
on :TEXT:!8Ball:#: {
var %8 $rand(1,5)
if (%8 == 1) { msg $chan $nick $+ , Yes. }
if (%8 == 2) { msg $chan $nick $+ , No. }
if (%8 == 3) { msg $chan $nick $+ , Maybe some day. }
if (%8 == 4) { msg $chan $nick $+ , I don\'t think so! }
if (%8 == 5) { msg $chan $nick $+ , Ask another time. }
}
You should change the first line of the 8ball to on :TEXT:!8Ball*:#: {
so people can type text after it.
it isnt hard to sift threw a couple hundred snipppets here and learn how to wrtie small addons and snippets in just a couple days and or copy and paste and change a few things around the biggest thing of all is if the person really understand what is in the snippet and what it does and by no means at all am i saying you ripped anything here ok so dont think that not bad work for starting out.