![]() |
|
|
How do I make text Bold/Underlined/Colored? |
|
Color: 3Hello! 12[1]Isn't
this interesting? |
|
How can I auto greet people when they join my channel? |
|
The
line below goes in your Remotes: |
|
How do I auto unban myself? |
|
There are 2 ways you can go at this. You can use ChanServ to unban you(If
services exist on your network) or you can unban yourself without using
ChanServ. |
|
How do I auto ping people and tell them their ping time? |
|
For
this subject, you'll need 2 simple lines. When a user says !ping in
any channel you're on, you will automatically ping them, and then notice
them with their ping reply time. |
|
How do I auto respond to something someone says? |
|
This
is probably one of the most commonly used events in mIRC scripts. The
On Text event is a very useful tool. Here you'll be shown how to use
this event when people speak, and you want to do something automatically
when someone says something matching your keyword(s). |
|
How do I auto kick Guest nicks when they join? |
|
For
those of you who wish to keep those annoying Guest12345 nicks out of your
channel, this section is exactly what you need. Whenever someone with
GUEST in their nick join's your channel, you can automatically kick them
out. |
|
Why wont $parm work anymore? |
|
This
was probably one of the most asked questions I've seen when mIRC 5.7 first
came out. The identifier $parm has been obsolete for quite some time now
and the time has come that it has been removed from mIRC. mIRC now uses a
more efficient identifier to refer to parameters in a line. |
|
I want to use $$?="Question" for my dialog. Is it possible? If yes, how? |
|
Although mIRC says it doesn't allow $$?="Question" in remotes, you
can trick mIRC into allowing it. Basically, all you need is an
alias and a timer. Here's how we do it: |
|
How do I make an cool away script? |
|
It seems that away systems have worked its way up so that now almost every average IRC user needs or wants an away system. Well this is a breif example of an away system you can feel free to use. Here's what we need in remotes: alias aw {
if ($away) { echo -a You're already away! | return }
if ($1 isnum) { set %away.timer $1 }
else { set %away.timer 180 }
if ($2) { set %reason $2- }
else { set %reason None Set }
unset %aw.time inc -c %aw.time away %reason .timer_away 0 %away.timer amsg ( Away )-( Reason: %reason )-( Gone: $!duration(%aw.time) ) } alias bk {
if ($away) {
away amsg ( Back )-( Reason: %reason )-( Gone: $duration(%aw.time) ) .timer_away off unset %reason %aw.time %away.timer } else { echo -a Set yourself away first before using this command! }
}
|
|
How can I get a bot for my channel? |
|
This requires a second question.. do you want an mIRC bot or a shell account bot? There is a difference. mIRC bots are just a second copy of mIRC running on a computer programmed with automatic commands which respond to its owner(s). You can get these types of bots at almost any major scripting site. Try checking out http://www.mircx.com , http://www.mircscripts.com , and http://www.xcalibre.com The second type of bot requires you to purchase a shell account. A shell account is simply an account on a unix or linux ran computer which allows you to run programs. They can cost you anywhere from 5 dollars a month and up. It all depends on the service and how many background processes(programs) it will let you run. The most popular of these bots is the eggdrop bot. There are a variety of them out there, different versions, and alterations to the code. For shell accounts check out:
http://www.shellreview.com For download eggdrop source as well as information: |
|
I downloaded a script, now what? |
|
With premade scripts, and knowing that there are literally thousands of scripts or addons for mIRC available, we can only say that any decent script should include a readme.txt or some sort of documentation in which it should instruct you on what to do to load the script up, install it, and how to use it...etc. Any script or addon without the proper documentation usually turns out to be a waste of your time. So look for the documentation, if it's included, take a look at it, or else go download another one. |
|
How can I get brb to automatically be said as Be Right Back when I type brb? |
|
This
is probably one of the most frequently asked question I've seen so here's
a quick way to do it. Keep in mind that On Input events may
conflict with other On Input events such as Nick Completers or such
which may cause you to repeat, if so, disable your other Input events to
stop the repeating. Here's what we need in remotes: |
|
How do I auto ignore certain files people send me? |
|
The event to try is ctcp DCC SEND. Place this code snip into your remote section of your mIRC. The following code below can be used to block the links.vbs trojan... ctcp *:DCC SEND:{ Replace *.vbs
with the filename or matching file type you want to reject. If the
filename ($3 gives the filename) matches *.vbs in any way then it cancels
the send by using the haltdef command. Very similar to the example
provided in the mirc.hlp file for the DCCSERVER event. *Note* if
you want to block a specific file, replace *.vbs with the filename
and change the iswm to == |
|
How do I auto identify to NickServ when it asks me for my password? |
|
You will need to use the on NOTICE event. As with all events, this scripting marvel goes into your remote file. It will allow you to receive the nickserv notice, then respond with your identify command. on ^*:NOTICE:*nick is owned by someone*:?:{ if ($nick == nickserv) { nickserv identify password } } Above, replace the word password with your nickserv identify password or you may use a variable that contains your password for every time a nickserv notice is sent containing the words "Nick is owned by someone". |
|
How do I quote a random line from a text file? |
|
One of the greatest identifiers you can have in your scripts is $read. For this questions solution, you will need to use the $read identifier. The format of this identifier is simply $read(filename.txt). Without any switches or anything, $read by default, picks a random line from the text file. Below is a simple on TEXT event that responds using a random line from the quotes.txt file in the mIRC directory.... on *:TEXT:!read*:#:{ msg $chan $read(quotes.txt) } With the code above, whenever someone on a channel you are on types !read at the beginning of a line, it will say in the channel a random line from quotes.txt. *NOTE*: If the text file is outside the mIRCdirectory, make sure to specify a path to it by typing it out, using $mircdir or $scriptdir identifiers. |
|
How can I speed up my DCC transfers? |
|
To speed up your DCC transfers, you can use the undocumented mIRC /pdcc command. Below is the combination of commands you can have that will give you optimal performance in your DCC transfers.... Commands (Doesn't have to be in order): /pdcc 2147483647 All nines doesn't work, unlike popular belief, 2147483647 is the max.Those commands will turn your fast send on, make the largest packets of data as possible, and send them ahead of comfirmation. Sometimes the effects are more noticeable to certain people and not others. |
|
How do I make a swear kicker? |
|
Swear kicking scripts are pretty popular these days so for you chatters out there who want those people out of the room, here's what you need in your remotes: on @*:text:*:#: {
if (badword1 isin $strip($1-) || badword2 isin $strip($1-) || badword3 isin $strip($1-)) {
ban # $nick 2 kick # $nick Please don't swear. } } What this does is first it checks if you are an op on the channel it took place in, then if you are op'd and a word from a users text matches a badword you have listed, it kicks the user and bans their address. Now you have a swear kicker which bans! Enjoy it! |
|
How do I block all those auto greet msg's when I join a channel? |
|
Tired of spam? Or maybe its you just don't want people to message you when
you first join a channel. Well, either way, here's how to do it. Put this
into remotes: |
|
How do I show my Windows OS uptime to the channel? |
|
The special specific identifier to determine OS system uptime is $ticks. $ticks gives you, in millisecond form, the overall uptime of your Windows OS. To display this in days, hours, minutes, seconds format, you need to use $uptime. Here's the basic syntax: $uptime(system,1) Then to display it to the channel, just use a command like this... //say My Windows $+ $os uptime: $uptime(system,1) You can use this or set it to a variable first and use the variable as you would like. You may replace 1 with 2 to show the uptime up to minutes only. |
|
How would I show the mp3 song title I am playing in the channel? |
|
There are many ways of doing this in various mp3 players etc. Here is a very straight forward basic one that gives the "Title" only. If you are looking for bitrate, duration, etc.. those are done with custom identifiers and can be read about at: http://www.voxx.demon.co.uk/gcont/mp3form.htm Now to get the title, we first select the file to play and set a local variable to it. Then display the variable with a $nopath identifier and place it in popups or aliases. First to set the variable: var %song.title = $$dir="Select a song" (mp3 directory) Replace (mp3 directory) with the path to your mp3 files. Example: c:\mirc\mp3\*.mp3 and then another command such as: /me is playing $nopath(%song.title) |
|
I have seen colored nicklists, how do I do that? |
|
To color the nicklist of a channel, you will have to think of it as a custom window for a second. How would you color a line in a custom window? With the command /cline. We will do the exact same thing, replacing the custom window name with the channel and specifying a nickname. You can apply this to loops, testing if they are ops or voices and coloring them accordingly. Below is the basic command: //cline 4 #channel $me This will color your own nickname in red on the specified channel you type in. You can attach this to while loops, notify events, on joins, and more. If you want it to update occassionally, I suggest a small timer that recolors the list every X seconds. |
|
Revolving door bans, how do I do those? |
|
Revolving door bans is just like it sounds. It will ban those who join and leave and join again within a short amount of time. Basically telling them to either decide if they are coming in or out and shut the door behind them. To do it will involve the /set command with the -uN switch which will unset the variable after the "N" number of seconds. Then we test to see if the nickname has already been here before the variable unsets. on *:JOIN:#:{
if (%revolve. [ $+ [ $nick ] ] == $null) {
set -u30 %revolve. [ $+ [ $nick ] ] 1 } else { inc %revolve. [ $+ [ $nick ] ] }
if (%revolve. [ $+ [ $nick ] ] >= 3) {
ban -30 $chan $nick 3 kick $chan $nick Come or go. (30 second ban) unset %revolve. [ $+ [ $nick ] ] } } This checks to see if they have been there before. If they haven't, sets a variable for them when they join and will unset in 30 secs. If they leave and join again within 30 secs, it will increment their variable 1. It will do this till it hits 3 and then ban kick them for 30 secs and unsets their variable. So if they do three joins in 30 seconds, this will trigger. |
|
How do I scan a users channels and kick them if offensive? |
|
When the user joins the channel, first do a whois on them. There is an option in mIRC general options to have mIRC do this automatically or you can script one real quick using an on JOIN event to trigger a /whois $nick. The second half of the solution is to use raw events and check raw number 319. If you are unfamiliar with raw events, type /help raw events to open up the help file and read it. You can then use the information from raw 319 to kick offensive nicks whenever a whois is done on them. Below is some example code for doing a raw 319: raw 319:*:{
if (*offensive* iswm $3-) {
ban -60 #channelhere $2 kick #channelhere $2 -Reason- } haltdef } Replace "offensive" with a word or partially offensive word (Keep the astericks if partial word). And where it says #channelhere place a channel name that they are in or use a loop and $comchan to kick them out of all channels you have op in. (Remember to check if you or they are ops in the channels first!) |
|
How do I modify whois information? |
|
To modify how whois information comes out, you first need to understand how raw events work. Don't let the name scare you. They are simply events that respond to what the server sends you. In this case, the response to a whois command. We do this example in our articles section titled "Understanding Raw Events" The place to look for raw event numbers is in Jeepsters Raw numeric guide at Ircworks.com and its raw numbers 311-319 roughly. |
|
How do I do channel stats? |
|
Channel stats are pretty simple if you know how to use a few identifiers... Mainly $nick. Below is how you get the various channel statistics... For Total Users:
$nick(#,0) Other information you may want to include would be: $chan or $active, and the use of echo. |
|
How can I kick/ban offensive nick/address's when they join? |
|
Here's a rather simple but yet effective method to remove users with
offensive nicknames or address's when they enter your channel. Of course,
you will need to be a channel operator to do so. Here's what we do, put
this in remotes: |
|
How do I autovoice someone who joins my channel? |
|
Autovoice can be done in 2 ways, by script or we can just have mIRC do it. With mIRC 5.9, mIRC has a built in autovoice system. Here's the script method, put this in remotes: on @*:join:#mychannel: {
if ($nick == Kintar0) { mode # +v $nick }
if ($nick == Martyr2) { mode # +v $nick }
}
First, be sure to turn on Avoice: /avoice on Next, we add a nickname to the list: /avoice Kintar0 #clan-x-scripterz - This adds Kintar0 to your Avoice list on #clan-x-scripterz If you want to add a host instead of a nickname: /avoice Kintar0 #clan-x-scripterz 3 - This adds Kintar0 to Avoice on #clan-x-scripterz - The only difference is, we added Kintar0's hostmask type 3 - Now we would autovoice anyone matching (*!*xyz@*.aol.com) For more information on /avoice, check out the help file. It explains Avoice pretty well if you still cannot get it to work with this section. For a list of hostmask types, in mIRC type: /help $mask and you'll find a list of host mask types. |