Top

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
  Bookmark and Share

Introduction

I'm New Here This is my very First Script so Tell me if you like it..

Grab the Code

Comments

  (23)  RSS
Mono
Comments: 43
 
mIRC Snippet:  8ball
Posted on Aug 29, 2007 8:01 pm
I Like It Lol.
napa182
Comments: 1,007
 
mIRC Snippet:  8ball
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 }
}
warrock
Comments: 23
 
mIRC Snippet:  8ball
Posted on Aug 29, 2007 10:49 pm
Lol napa182 you re-write a lot of ppl\'s scripts and help them...btw this is Champ from irc.dejatoons.net
napa182
Comments: 1,007
 
mIRC Snippet:  8ball
Posted on Aug 29, 2007 10:58 pm
hey Champ hows it going? well i try to help the best i can. I just wanted to show them a diff way of doing this script.

warrock
Comments: 23
 
mIRC Snippet:  8ball
Posted on Aug 29, 2007 10:59 pm
It\'s ok for your first script just start looking at others and learning from then and you can learn how to make more complex scripts and more complex games than your 8ball one
Godzilla
Comments: 91
 
mIRC Snippet:  8ball
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..?
}
}
Godzilla
Comments: 91
 
mIRC Snippet:  8ball
Posted on Aug 29, 2007 11:11 pm
Mono, you didn\'t notice what napa182 said, no need of / before /set %8ball $rand(1,6)
napa182
Comments: 1,007
 
mIRC Snippet:  8ball
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 }
}
mountaindew
Comments: 1,547
 
mIRC Snippet:  8ball
Posted on Aug 30, 2007 10:51 am
well i think what you did is fine for your first snippet, great job!
Mono
Comments: 43
 
mIRC Snippet:  8ball
Posted on Aug 30, 2007 4:58 pm
Thank Everyone And Ok Napa
mountaindew
Comments: 1,547
 
mIRC Snippet:  8ball
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
napa182
Comments: 1,007
 
mIRC Snippet:  8ball
Posted on Sep 4, 2007 2:11 pm
yeah you could do it that way but i would change one thing i would change the set %8ball to var %8ball
mountaindew
Comments: 1,547
 
mIRC Snippet:  8ball
Posted on Sep 4, 2007 3:00 pm
wat does that do
napa182
Comments: 1,007
 
mIRC Snippet:  8ball
Posted on Sep 4, 2007 4:45 pm
it\'s a temp variable that unsets after each uses
napa182
Comments: 1,007
 
mIRC Snippet:  8ball
Posted on Sep 4, 2007 4:47 pm
Local variables are variables that exist only for the duration of the script in which they are created and can only be accessed from within that script. They can be created with the /var command:
mountaindew
Comments: 1,547
 
mIRC Snippet:  8ball
Posted on Sep 4, 2007 4:50 pm
ok thanks
Scakk
Comments: 218
 
mIRC Snippet:  8ball
Posted on Sep 4, 2007 8:05 pm
Question. Since you ripped your other two snippets Mono did you rip this one as well?
napa182
Comments: 1,007
 
mIRC Snippet:  8ball
Posted on Sep 4, 2007 8:07 pm
i think he may have took bit\'s from other scripts to make this one
mountaindew
Comments: 1,547
 
mIRC Snippet:  8ball
Posted on Sep 4, 2007 8:13 pm
probably...
Mono
Comments: 43
 
mIRC Snippet:  8ball
Posted on Sep 5, 2007 5:56 pm
:((((((((((((((((( IM QUITING I CANT MAKE A SCRIPT WITHOUT USING OTHERS D:
napa182
Comments: 1,007
 
mIRC Snippet:  8ball
Posted on Sep 5, 2007 5:57 pm
you cant think for Ur self?
Mono
Comments: 43
 
mIRC Snippet:  8ball
Posted on Sep 5, 2007 5:58 pm
I\'m New here so im not good \"ok\" thats why im quiting
Akishoot
Comments: 145
 
mIRC Snippet:  8ball
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. :)

Please Register or Login to start posting comments.
Bottom