Star Fury mIRC
IRC Commands
mIRC Scripting
Home
VR Networks - mIRC Scripting
 
Basics
 
it was my original intent to provide a full on tutorial for this however time has come against me so now i will provide a quick example along with a brief explaination

The most common script i get asked about is the one i'm going to example here, A simple Slap auto resonder.
The script syntax is very sensative and needs to be copied very carefully.

on *:action:$( $+( *slap* , $me , * ) ):#: { /describe $chan nukes $nick and laughs }

The script is made up of a several parts which is easily explained below

on *
 
This is basically the start of the script, It defines it's event generally on * will be the start for your script so we won't go into detail

on *:action:$( $+( *slap* , $me , * ) ):#: { /describe $chan nukes $nick and laughs }


:action:
 
This is quite an important bit, this defines what TYPE of event the script is looking for, in this case it is an action
(what you get when someone does /me I.E /me slaps dom)

Here you could have:
  • Input - something YOU type in
  • Text - Something someone else types in
  • Action - something someone describes
and many more (type /help on in your mIRC window for a complete list)

on *:action:$( $+( *slap* , $me , * ) ):#: { /describe $chan nukes $nick and laughs }


$( $+( *slap* , $me , * ) )
 
This is the other important bit that you need to know about, this defines WHAT the script it looking for in this case it is searching for the text 'slap' and your nick ($me)

on *:action:$( $+( *slap* , $me , * ) ):#: { /describe $chan nukes $nick and laughs }


#
 
just a small thing, this is WHERE it's looking for the text your options are:
  • # - in a channel
  • ? - in a private message
  • * - either in a chan or a PM
on *:action:$( $+( *slap* , $me , * ) ):#: { /describe $chan nukes $nick and laughs }


/describe $chan nukes $nick and laughs
 
This final bit is your responses
  • /describe - the command of your reply, Describe is the equivilent of /me and /msg is sent as normal text
  • $chan - is needed by describe and basically says to do the command in the channel the script was activited
  • nukes $nick and laughs - is the text sent, $nick is replaced by the person who activated your script
on *:action:$( $+( *slap* , $me , * ) ):#: { /describe $chan nukes $nick and laughs }


summery
 
So as we've seen this script activates on a slap action event in a channel and respones by doing 'nukes dom and laughs' in the same channel

on *:action:$( $+( *slap* , $me , * ) ):#: { /describe $chan nukes $nick and laughs }