Top

chuck norris fact snippet


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  5.5
Scores Submitted  4
Date Added  Jan 13, 2007
Last Updated  Feb 02, 2007
Tags  chuck  fun  games 
  Bookmark and Share

Introduction

chuck norris facts and other stuff :P

!chuck - random chuck quote
!chuck [number] - selected quote

*edit I cut the color down a lot
**edit massive overhaul



Grab the Code

Comments

  (32)  RSS
RussellReal
Comments: 40
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 13, 2007 5:29 pm
oh boy ;) I'd say thats pretty fun, but just a suggestion: use a local variable: /var %chuck = $r(1,9) reason being is that it will unset after it reaches the last bracket of the currently executing script and also will not be messed up if 2 people use the same script at da same time ;)
Aaron
Comments: 104
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 13, 2007 5:57 pm
changed :)
RussellReal
Comments: 40
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 13, 2007 7:06 pm
you need to space it =$r(1,9) != = $r(1,9)

make it = $r(1,9)
not =$r(1,9)
RoninWarrior
Comments: 252
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 13, 2007 8:47 pm
Be carefull with the chuck norris snippets folks you will end up with a CNRHK to the head!!!!!!
Aaron
Comments: 104
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 13, 2007 8:47 pm
upgraded it a little, read edit
Noutrious
Comments: 358
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 14, 2007 10:40 am
This could be 1 line script using $read(chuck.txt) function.
Acid-Religion
Comments: 62
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 14, 2007 12:19 pm
Would be better with a socket script connecting to chucknorrisfacts.com or better yet http://4q.cc/index.php?pid=fact&person=chuck (<--- Random CN fact)
Aaron
Comments: 104
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 14, 2007 12:29 pm
acid i went to first site, its pretty nice lol

how would i put it into a text and read it? :\
Aaron
Comments: 104
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 14, 2007 12:30 pm
sorry lol im not that good with txt and sockets :P
Noutrious
Comments: 358
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 14, 2007 12:36 pm
Go to forum, if i remember right then RusselB writed a good socks tutorial.
Aaron
Comments: 104
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 14, 2007 3:24 pm
ill just leave this as is for right now, ill update it later
Aaron
Comments: 104
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 20, 2007 1:44 am
BIG update, put in a text read

hope you liek the 700+ quotes :P
Death_first
Comments: 3
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 28, 2007 11:51 am
cant get jokes.txt to work

:((
Aaron
Comments: 104
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 28, 2007 1:45 pm
did you put it in your mirc file?
PowerDragon
Comments: 32
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 28, 2007 4:49 pm
Hey I love it.
Can you do me a favor and make it so that theres only 1 file for this? Using the rand thing.
PowerDragon
Comments: 32
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jan 28, 2007 5:01 pm
i gave it a 10/10
Firedog150
Comments: 11
 
mIRC Snippet:  chuck norris fact snippet
Posted on May 9, 2007 11:18 am
I can't get it to work once I type !chuck nothing happens at all...
Spamsci
Comments: 5
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 8, 2008 3:08 am
I'm a bit new to this, so I need a little help.

I've saved it how you said where you said, but how do i upload it to my IRC channel?
mountaindew
Comments: 1,762
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 8, 2008 10:10 am
1) Download mIRC
2) Go to remotes (Alt+R)
3) Paste on *:text:!chuck*:#:{ .msg $chan $iif(($2 isnum 1- $+ $lines(Jokes.txt)),$read(Jokes.txt,$2),$read(Jokes.txt)) } } into the space
4) Close remotes and type /write jokes.txt | run jokes.txt
5) Paste all the chuck norris stuff in it and save

Aaron, you could just do $iif($read(jokes.txt,$2),$v1,$read(jokes.txt))
BlueThen
Comments: 349
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 8, 2008 2:03 pm
Waow. That's a lot of facts. I had my own little file, but I only saved ones that I thought were funny. :/
Spamsci
Comments: 5
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 8, 2008 5:08 pm
Sorry, but I got lost after step 4.

Where do I type "/write jokes.txt | run jokes.txt"???

And where do I paste the facts?

I've got all the facts saved as jokes.txt in the mIRC folder, and added the remote.

I'm an op in this server, is that enough to upload the script?

mountaindew
Comments: 1,762
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 8, 2008 5:19 pm
Oh, well if the facts are already in the txt, then you're all set. Make sure you have this is your remotes though:
Code:

on *:text:!chuck*:#:{ .msg $chan $iif(($2 isnum 1- $+ $lines(Jokes.txt)),$read(Jokes.txt,$2),$read(Jokes.txt)) } }

And just have someone type !chuck
Spamsci
Comments: 5
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 8, 2008 5:29 pm
It doesn't seem to be working...

Theres a bracket mismatch apparently.
mountaindew
Comments: 1,762
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 8, 2008 5:34 pm
Code:

on *:text:!chuck*:#:{
  msg $chan $iif(($2 isnum 1- $+ $lines(Jokes.txt)),$read(Jokes.txt,$2),$read(Jokes.txt))
}
Spamsci
Comments: 5
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 8, 2008 5:43 pm
Thanks for the fast replies.

I'm an op on the channel i want to upload it to, is that enough? Or do i need to be admin?
mountaindew
Comments: 1,762
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 8, 2008 5:48 pm
What do you mean "upload"?
Spamsci
Comments: 5
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 9, 2008 7:45 pm
Well, if I follow all those steps, does that mean that any IRC channel I open will read my a fact if I type !chuck???
mountaindew
Comments: 1,762
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 9, 2008 7:52 pm
If some else types !chuck. On Text events are for other people, not yourself. If you would like you use it yourself, you would need to turn it into an alias or an on text event.
Anti
Comments: 317
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 9, 2008 7:59 pm
Oh wow talk about flood issues why not turn it into a notice kinda thing... its nice but whats up with the IFF wtf is that? isnt it if....
mountaindew
Comments: 1,762
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 9, 2008 8:09 pm
$iif is kind of like an if and else combined

$iif(if statement,if true do this,if false do this)

//echo -a $iif(MountainDew == Anti,yes,no) --> no
//echo -a $iif(3 isnum 1-9,yup,no) --> yup
Anti
Comments: 317
 
mIRC Snippet:  chuck norris fact snippet
Posted on Jul 9, 2008 8:19 pm
Hah okay here i am rusty me.
Dragon1-9-8-4
Comments: 29
 
mIRC Snippet:  chuck norris fact snippet
Posted on Dec 1, 2008 3:03 pm
make sure it works dude cuz i couldnt get it to work either.i type !chuck and nuthin happens.i put the facts in a .txt file named jokes.txt in my Mirc folder and put on *:text:!chuck*:#:{ .msg $chan $iif(($2 isnum 1- $+ $lines(Jokes.txt)),$read(Jokes.txt,$2),$read(Jokes.txt)) } }

in my bots script editor and i typed typed !chuck and nuthin happened this script fails miserably.try workin on it some more.

Please Register or Login to start posting comments.