Sacro
Gunny - 168gr SMK Shooter
This is a very basic intro to IRC scripting. I personally have created scripts over 10,000 lines of text. This is a small dose to possibly show people their next hobby. The 3 major parts of IRC scripting are:
Aliases
Popups
Remotes
Aliases:
Aliases are, in my oppinion, the easiest/best way learn IRC scripting. They can save alot of time when you need it. Let's start with something simple. For example, those who use SytheIRC and register, will be messaged every login to identify themselves as the owner of the nickname being used, to avoid typing a line of text every time you sign on, you can do a script. This will not only save time, but will conceal your password. Open up your aliases by clicking Tools->Script Editor->Then the "alias" tab. Put this on a open line of text.
/id /msg nickserv identify PASSWORD
}
The first word on a line in aliases is always treated as a new command. Anything after that is what the command does. So, /id is the new command, and /msg nickserv identify YourPassword is what it does. Followed by a "}" to end that script.
Popups:
Popup menu definitions use the format menu item:commands, so Help Me!:/join #help would take you to #help the same as if you had typed /join #help. To start a menu, put whatever you want the menu to say at the top of the page. This is the easiest, you can rearrange it later as you please. To create a submenu, use a "." fullstop. To make more submenus, use "..", "...", etc. In my oppinion this is a waste of time, but i feel it needed anyway.
Remotes:
I think remotes are the most useful, and can be the most complicated scripts used on IRC. But this doesnt mean that all of them are hard.
Remote Script's just mean that they use triggers to run the script, this means that unlike Alias's, you can use multiple triggers, Ban, Join, Part, Text, Input, Highlight etc.
First lets try a simple onjoin message.
on *:JOIN:#mychan:/msg $chan Hi $nick $+ , welcome to $chan $+
}
Now on a join to your channel, your bot will message them a greeting of "Hi whoever, welcome to #mychan"
*Note* This is a very Generic Join script
IDENTIFIERS:
A identifier is something that identifies a variable in a script. Here are some common ones:
$me - used when you want the bot to do something to itself
$nick - $nick is whoever triggered script.
$chan - channel in which script was triggered
$2, $3,- second, third, etc word in command (ex. !kick loser scans for a $2, find that $2 = loser, and kicks it)
$null - when referring to a variable that doesn't exist
$$? - used in popups to create options
This is only a beginner guide, if you would like to learn more about scripting, feel free to message me on ZypurIRC, and SytheIRC. (Irc.zypur.com and Irc.sythe.org)
Aliases
Popups
Remotes
Aliases:
Aliases are, in my oppinion, the easiest/best way learn IRC scripting. They can save alot of time when you need it. Let's start with something simple. For example, those who use SytheIRC and register, will be messaged every login to identify themselves as the owner of the nickname being used, to avoid typing a line of text every time you sign on, you can do a script. This will not only save time, but will conceal your password. Open up your aliases by clicking Tools->Script Editor->Then the "alias" tab. Put this on a open line of text.
/id /msg nickserv identify PASSWORD
}
The first word on a line in aliases is always treated as a new command. Anything after that is what the command does. So, /id is the new command, and /msg nickserv identify YourPassword is what it does. Followed by a "}" to end that script.
Popups:
Popup menu definitions use the format menu item:commands, so Help Me!:/join #help would take you to #help the same as if you had typed /join #help. To start a menu, put whatever you want the menu to say at the top of the page. This is the easiest, you can rearrange it later as you please. To create a submenu, use a "." fullstop. To make more submenus, use "..", "...", etc. In my oppinion this is a waste of time, but i feel it needed anyway.
Remotes:
I think remotes are the most useful, and can be the most complicated scripts used on IRC. But this doesnt mean that all of them are hard.
Remote Script's just mean that they use triggers to run the script, this means that unlike Alias's, you can use multiple triggers, Ban, Join, Part, Text, Input, Highlight etc.
First lets try a simple onjoin message.
on *:JOIN:#mychan:/msg $chan Hi $nick $+ , welcome to $chan $+
}
Now on a join to your channel, your bot will message them a greeting of "Hi whoever, welcome to #mychan"
*Note* This is a very Generic Join script
IDENTIFIERS:
A identifier is something that identifies a variable in a script. Here are some common ones:
$me - used when you want the bot to do something to itself
$nick - $nick is whoever triggered script.
$chan - channel in which script was triggered
$2, $3,- second, third, etc word in command (ex. !kick loser scans for a $2, find that $2 = loser, and kicks it)
$null - when referring to a variable that doesn't exist
$$? - used in popups to create options
This is only a beginner guide, if you would like to learn more about scripting, feel free to message me on ZypurIRC, and SytheIRC. (Irc.zypur.com and Irc.sythe.org)



