This is a pretty good start. There are better ways of doing this without having to resort to copy/pasting the same type of information to add new content. One way I'd recommend is to think about it logically and make things that repeat themselves put on a single line, such as msg $chan $nick. Since these lines all share this trait in common, making it so it only has to use it once will save a lot of space when it's used a bunch of times.
Another thing that you can do is to set the new sentences to a single variable and just return the variable. This will also save space. The best way is to use tokens or a file for something as simple as this. Files can sometimes be a pain in the butt, since you have to edit a separate thing, but in the long run, it's a lot more manageable and makes your code a lot cleaner. If you don't want to attach a file with your script, which many people opt not to do, you could use tokens. Check out the Token Identifiers file in the help.
There's an easier way to achieve this. Since your responses all have the same prefix "has to", you can just toss that into the response itself and create a list of items you want to add using tokens. Then you wouldn't need to keep track of how many tokens you have, since you can just use $numtok(text, C) to get the number of tokens and comparing it to %r. After doing this, you just append the returned token to your response and it makes the script much more usable. You can also use a text file and allow people to add their own responses via a command if you'd like.
/bin This is an example returns:
010101000110100001101001011100110010000001101001011100110010000001100001011011100010000001100101011110000110000101101101011100000110110001100101
/bin 010101000110100001101001011100110010000001101001011100110010000001100001011011100010000001100101011110000110000101101101011100000110110001100101 returns:
This is an example
/txt2hex This is an example returns:
5468697320697320616E206578616D706C65
/hex2txt 5468697320697320616E206578616D706C65 returns:
This is an example
I actually am working on an RGB HEX converter like Hawkee mentioned using some of the stuff already available with mIRC.
A few things to note here:
if ($2 ison $chan)
if (%me. $+ $2)
on *:text:*:#:{
if (%me. $+ $nick) msg $chan $1-
The popular $noHTML, as used on zigwap.com
alias noHTML return $regsubex($1, /<[^>]+(?:>|$)|^[^<>]+>/g, $null)
Couple things you can add is making a default channel and a channel list for the same message.
/massPM This is a mass message
This would make it send a message to all the people in the channel you're already in
/massPM #chan1,#chan2,#chan3 This is a mass message
This would make it send a message to all the people in these channels, as long as you're in them.
"A cryptogram is a type of puzzle that consists of a short piece of encrypted text. Generally the cipher used to encrypt the text is simple enough that cryptogram can be solved by hand. Frequently used are substitution ciphers where each letter is replaced by a different letter or number. To solve the puzzle, one must recover the original lettering. Though once used in more serious applications, they..