Back to Topic Index

mIRC SCRIPTS Guide

By Trivium236 on 10/07/2008
okay, so earlier Mr. Spanthrax asked me about a script i had, so i gave it to him and showed him how to use it.

What i am going to show here is mainly how to ADD scripts to mIRC and maybe some basic commands.

If there is something a little off or i missed something out, just leave a comment and i will edit it in

okay so first off, i am using a MODIFIED version of mIRC called NoNameScript (NNS).

i will highlight the things you need to remember!


Adding Scripts:
user posted image

1. Aliases
user posted image

Creating an Alias

okay so i will write how to create an alias.

What is an Alias? well, in my eyes it is a quick command to do something. you type something short, it will perform a longer string of command(s).

how do i create an Alias? well this is the simple part, i will show you one of my "hug" Aliases

CODE

hug {
 inc %hug
/me lovingly hugs  $1- <3 --Hugs Given: %hug }


Wtf does this mean? okay lets start at the beginning "hug" is what you type to activate the script when writing it you dont really need to add the / on the activating text.

next the { and } signify the start and end of a string of commands.

the "inc %hug" part makes it so wherever you put %hug in the main part of the script it will show a NUMBER, every time you use the script, it will add 1 onto the number this is called a Variable aka "Var" you can use whatever you want (%hugcount %huggles %bleh %cheese) they will all work the same.

now im sure we all know what /me does. but in this case its part of the string of commands. so when i type /hug i will get
QUOTE

[12:30:35] • Trivium236 lovingly hugs <3 --Hugs Given: 13


inside the script i have "$1-" that means i can type /hug WG and it will come out with "WG" where the "$1-" is.

you can have $1 $2 $3 etc. they will copy the first, second, third words in your sentence, now what does t he "-" do? basically if you use "$1-" it will copy all words after your "/hug".

you can do ALOT with alias's, so have some fun and experiment with them hash.png









1. Remotes
user posted image

Creating Remotes

What is a Remote? NO not the kind you use for your TV or Stereo! although they all have a similar use. they all CONTROL.

SOME ways to use Remotes:
Connect
Join
Dialogs

i think i will do a basic script for Remotes.

CODE

on :CONNECT:{
/ns id mypass
/join #wg_lobby
/mode Trivium236 +p
}


all this will do is, when you connect to a server, it will do the commands in the list.
there are different things you can add onto it, but i dont really know how Remotes work confused.gif
well anyway, i learned most things i know by trial and error and using the swiftirc Forum.

3. Add-ons from people

Mark (Aardvard39)
QUOTE

And to add about Remotes, Remotes are where some very complicated scripting go like away systems and autojoins an autojoin will join you to diff servers and also to all channels on start up also an auto join will auto id you and also like if there are passes to some channels they can message the bot for you to get you in etc. Others are like farming scripts that you can type in what ever you plant and it will time it for you then notice you when its grown tongue.gif Some of these remote scripts are huge reaching way over 200+ lines. Where as others are more simple like my auto invite to #wg which is this biggrin.gif

on *:JOIN:#wg_lobby: { if ($nick = $me) { msg hash.png !invite | join #wg } }




REMEMBER TO GO BY THE WG RULES, SOME TYPES OF SCRIPTS ARE NOT ALLOWED



4. Good Threads To Use

Beginners:
Gather ideas to start you off:
http://forum.swiftirc.net/viewtopic.php?t=8578

In depth Beginners Guide to Scripting:
http://forum.swiftirc.net/viewtopic.php?t=60

Another Beginners Guide:
http://forum.swiftirc.net/viewtopic.php?t=6492



Anyone Else::

Dialogs wub.gif :
http://forum.swiftirc.net/viewtopic.php?t=7469

Regex:
http://forum.swiftirc.net/viewtopic.php?t=1250

Sockets:
http://forum.swiftirc.net/viewtopic.php?t=4378

Tokens:
http://forum.swiftirc.net/viewtopic.php?t=17384





By Troll84 on 10/07/2008
Nice guide, Triv wub.gif

By Mickey on 10/07/2008
Ohh, nice guide for begginers. I'm not so much a good scripter but I can script some stuff.

By Mr Death 13 on 10/07/2008
Good guide biggrin.gif

By For Sooth on 10/07/2008
not bad, people can ask me pretty much anything about scripts, as i have coded a full bot similar to runescript, but have decided not to launch it b/c i can't get it up 24/7

on a similar note, i'm creating a RPG game join #runepg to test it out (not fully complete)

By Aardvark39 on 10/07/2008
Nice guide Triv tongue.gif I use /say for aliases works the same i guess biggrin.gif And to add about Remotes, Remotes are where some very complicated scripting go like away systems and autojoins an autojoin will join you to diff servers and also to all channels on start up also an auto join will auto id you and also like if there are passes to some channels they can message the bot for you to get you in etc. Others are like farming scripts that you can type in what ever you plant and it will time it for you then notice you when its grown tongue.gif Some of these remote scripts are huge reaching way over 200+ lines. Where as others are more simple like my auto invite to #wg which is this biggrin.gif

on *:JOIN:#wg_lobby: { if ($nick = $me) { msg hash.png !invite | join #wg } }
and that smilie is a number sign wink.gif

By Winddancir on 12/07/2008
Maybe I might try... happy.gif Instead of bugging others to make super simple ones for me, lol

By Ansatsublade on 23/01/2009
oh nice done Triv! I was looking for something like this. thankies biggrin.gif

By Croaker90 on 12/02/2009
I use to have some bad A scripts before computer crashed and lost everything. sad.gif

Me and Bongo, and blair and remy way back in the day use to ban evade all the time. Lol good o days, IRCops couldn't keep us banned.

tongue.gif



Back to Topic Index

Developed by Mojo.