8ball
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 2.5 |
| Scores Submitted | 2 |
| Date Added | Aug 29, 2007 |
| Last Updated | Aug 29, 2007 |
|
|
Introduction
mIRC Snippet:
8ball
Posted on Aug 29, 2007 8:30 pm
Posted on Aug 29, 2007 8:30 pm
nice for Ur first scritp but you dont need to use the / and you can also do it this way put the answers in a text file and you can also add more messages to it in the channel menu. Just a thought... But well done on Ur first script.
| Code: |
| on *:text:!8ball *:%8ballchan: { if (%8ball == on) { describe %8ballchan Shake\'s Up The 8ball!! 12\"11,1What Will Be The Answer?12\" .timer 1 2 msg %8ballchan $read(8Ballmessages.txt) } } menu channel { .8Ball ..Set Chan:{ set %8ballchan $?\"Enter Channel\" | echo -a Channel Is Set To %8ballchan } ..Add Msg:{ write 8Ballmessages.txt $?\"Enter New 8Ball Message\" | echo -a 8Ball Message Has been set } ..ON:{ set %8Ball on | echo -a 8Ball Is ON } ..OFF:{ unset %8Ball | echo -a 8Ball Is OFF } } |
mIRC Snippet:
8ball
Posted on Aug 29, 2007 11:10 pm
Posted on Aug 29, 2007 11:10 pm
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..?
}
}
.
.
.
if (%8ball == 5) .msg $chan 8,1Are You Retarted Or Something
if (%8ball == 6) /msg $chan 8,1Are You Serious..?
}
}
mIRC Snippet:
8ball
Posted on Aug 30, 2007 12:21 am
Posted on Aug 30, 2007 12:21 am
Oh heres another way to do it so it loads the txt file when you load the script and you still can add more answers to the txt file by right clicking in the channel. Just to give you an idea on diff ways.
| Code: |
| on *:text:!8ball *:%8ballchan: { if (%8ball == on) { describe %8ballchan Shake\'s Up The 8ball!! .timer 1 1 msg %8ballchan $read(8Ballmessages.txt) } } on *:load:{ write 8Ballmessages.txt 7,1No write 8Ballmessages.txt 7,1Yes write 8Ballmessages.txt 8,1Maybe write 8Ballmessages.txt 8,1Lol No write 8Ballmessages.txt 8,1Are You Retarted Or Something write 8Ballmessages.txt 8,1Are You Serious..? } menu channel { .8Ball ..Set Chan:{ set %8ballchan $?\"Enter Channel\" | echo -a Channel Is Set To %8ballchan } ..Add Msg:{ write 8Ballmessages.txt $?\"Enter New 8Ball Message\" | echo -a 8Ball Message Has been set } ..ON:{ set %8Ball on | echo -a 8Ball Is ON } ..OFF:{ unset %8Ball | echo -a 8Ball Is OFF } } |
mIRC Snippet:
8ball
Posted on Aug 30, 2007 10:51 am
Posted on Aug 30, 2007 10:51 am
well i think what you did is fine for your first snippet, great job!
mIRC Snippet:
8ball
Posted on Sep 4, 2007 12:59 pm
Posted on Sep 4, 2007 12:59 pm
| Code: |
on *:TEXT:!8ball*:#:{ set %8ball No|Yes|Maybe|Lol No|Are You Retarded Or Something?|Are you serious...? msg $chan 7,1 $gettok(%8ball,$r(1,6),124) } |
instead of writin to a txt it just picks a random token from the variable :P
mIRC Snippet:
8ball
Posted on Sep 5, 2007 6:02 pm
Posted on Sep 5, 2007 6:02 pm
Mono - As I showed WIRED, there is a wonderful program called mScriptBox 1.20 :3 It has tips on just about all there is to mIRC Scripts. It can be found here: ( http://www.mirc.net/projects.php?go=1102015506&get_desc=1 ) I found this a bit ago and have been using it. :) Hopefully you\'ll reconsider quitting. :)








