I'm New Here This is my very First Script so Tell me if you like it..
on *:TEXT:!8ball*:#:{
/set %8ball $rand(1,6)
if (%8ball == 1) .msg $chan 7,1No
if (%8ball == 2) .msg $chan 7,1Yes
if (%8ball == 3) .msg $chan 8,1Maybe
if (%8ball == 4) .msg $chan 8,1Lol No
if (%8ball == 5) .msg $chan 8,1Are You Retarted Or Something
if (%8ball == 6) /msg $chan 8,1Are You Serious..?
}
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. :)
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.
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 }
}
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.
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 }
}