Hissing Worms

Welcome all members.
HomeFAQSearchRegisterLog in
Log in
Username:
Password:
Log on automatically: 
:: I forgot my password
Latest topics
» BacK BATCHES
Sun Apr 29, 2012 10:53 am by Gr33n

» Airsoft UAV
Fri Apr 13, 2012 7:14 am by nbruler

» how do you post a screenshot
Wed Mar 21, 2012 2:07 pm by Diggy

» Best Black Ops Classes
Wed Mar 21, 2012 2:05 pm by Diggy

» What is this?
Wed Mar 21, 2012 2:01 pm by Diggy

Top posters
Gr33n
 
Mitsukaru
 
Neverwinter XIII
 
HaZe
 
Zeph
 
Scrubby
 
Avogadro
 
Darkprism
 
Diggy
 
LolICU
 
SOTW WINNER(S)
SOTW #4 WINNER(S)

Winner: ZephyR

Partners
TheForumsNG NecroAccuracy PaidTheFastest

EWW


Welcome
Welcome to the Hissing Worms forum. Make sure you stay active and advertise and have some fun. The more you advertise, the more this place gets popular, and then the more everyone starts having some fun with new members.div>



Share | 
 

 Beginners Guide to Scripting in mIRC

View previous topic View next topic Go down 
Goto page : 1, 2  Next
AuthorMessage
Mitsukaru
Main Administrator


Admin '10:
GFX Crew '10:
Recruiter '10:
Posts: 1327
HWPoints: 1538
Join date: 2008-06-14

PostSubject: Beginners Guide to Scripting in mIRC   Sat Jul 10, 2010 4:16 pm



KiLLErMaN99's Beginners Guide to Scripting in mIRC

Welcome to my beginners guide to scripting in mIRC. You will learn the most basic formatting of scripting and you will get to make your own script! I hope you have a blast and learn a bunch when reading my guide. Thanks to all.


OverView

Ok. There are 2 types of script that all beginners must start out with. They are on TEXT and on INPUT. Each one works the same way but there are 2 distinctions that you must know.


Part 1: On TEXT


First off is a little explanation of what on TEXT is. You may be confused because you don't even know how to script. So what is on TEXT going to mean to you? Basically it is a
small identifier showing that whenever someone types something your script will perform whatever you say it will. So lets start with the basics to making it since this is really
difficult to explain well.


This is the basic setup for all on TEXT scripts. This setup is:

on *:TEXT:*:#: { }

Having "on" in the beginning is like saying when. So lets read the script in basic words to see if we can understand it.

on
When

*
on any window of mIRC

:TEXT:
someone says something

:*:
With any words

:#:
In any channel

{ }
Perform these commands


Now that's a little mixed up right? So lets put it in a sentence.

When someone says something with any words in any channel on any window of mIRC perform these commands.
Does that make sense now?

So lets start out with a very simple script. This will be an on TEXT script. What we want it to do is whenever someone says "hi" you want it to automatically say hi back.
So lets start out with our basic setup that I explained earlier.

on *:TEXT:*:#: { }

Now how are we going to set it so that whenever someone says hi it'll perform the commands??? Well look at the sentence above. We do this:
on *:TEXT:hi:#: { }

Another way you can put this is:

on *:TEXT:*:#: {
if ($1 == hi) { }
}

$1 is the first word in the message. So that means that $2 would be the 2nd word in the message. If you want it to be every word in the message you would use $$1-

So lets go with the first setup
on *:TEXT:hi:#: { }

We want it to say hi back correct? Lets try something with a /msg command.
on *:TEXT:hi:#: { msg $chan Hello! }

$chan makes it so that you will automatically send the message to whatever channel they say hi in. If you want it to say hi to the person who said hi you can do something
like this:

on *:TEXT:hi:#: { msg $chan Hello $nick }

Your result being:
<TheOnly1Left> Hi
<KiLLErMaN99> Hello!

Or if you used the second script:

<TheOnly1Left> Hi
<KiLLErMaN99> Hello TheOnly1Left

Congratulations! If you followed that whole thing you will be able to make an on TEXT script that will reply whenever someone says something that you specify!
You are now an official mIRC scripter Smile but it takes more than knowing this to be a good mIRC scripter. But we'll learn this stuff later since you are just now learning
how to script. Now we shall move on the the second part of scripting: on INPUT

Part 2: On INPUT


If you followed the first part of the guide like you are supposed to then you should be able to learn on INPUT very easily. On INPUT incorporates and messages sent by you and
performs the given commands. Like last time, lets start out with a the basic setup of an on INPUT script.

on *:INPUT:*: { }

Now wait! Where is the :#: at?!? Well with on INPUT scripts you don't need to have :#: at all. Because wherever you type something it will be in that channel and nowhere else!

So lets go over the sentence structure of an on INPUT script.

on
When

*
on any window of mIRC

:INPUT:
You say something

:*:
With any words

{ }
Perform these commands

Now it's also mixed up like last time. So lets put this in sentence format:
When you say something with any words on any window of mIRC perform these commands.

How much more similar can you get! You can make a script so easily like on TEXT with on INPUT. So why not start to make your very first one now? Lets go through it.

What we will do is make a script so that whenever you type !hi it will message the channel saying hello to the entire channel. If it doesn't make sense now lets just go over
it and make the script.


Now we start with out basic structure for an on INPUT script:

on *:INPUT:*: { }

We add it so that whenever you type !hi it will perform whatever you say.

on *:INPUT:!hi: { }

Another way you can put this is:

on *:INPUT:*: {
if (!hi == $1) { }
}

Lets work with the first setup as it is easier for a beginner to learn. So now that you have it all setup for the !hi command lets add the msg part of it.

on *:INPUT:!hi: { msg $chan Hello everyone in $chan }

Now wait! I just said that $chan will message the channel. So why would I have $chan at the end of the script?

Well whenever you have $chan in the script it will replace that WITH the channel that the script is being activated it. Now that was one heck of a sentence to understand. Lets
explain it with some examples.

People are talking in #Channel
You say !hi
<TheOnly1Left> So I was talking the other day...
<KiLLErMaN99> !hi
<KiLLErMaN99> Hello everyone in #Channel
<TheOnly1Left> WHOA THAT IS SO COOL!

Now people are talking in #TheForums
You say !hi
<TheOnly1Left> So I was posting the other day...
<KiLLErMaN99> !hi
<KiLLErMaN99> Hello everyone in #TheForums
<TheOnly1Left> WHOA THAT IS SO COOL!

It should make more sense now if you read it over carefully.



Congratulations! You have now learned the very basics of making on TEXT and on INPUT scripts! You should be proud of yourself now. It isn't that easy learning how to become
a scripter and it takes a lot of work too. There are many more things that you can learn but for this guide we will just stick with the basics. Thanks everyone for reading
and I hope you have a great time making those scripts!


CREDITS

TheOnly1Left: He wanted me to teach him some stuff which inspired me to make this guide. Thanks a lot!
FirstMate: I couldn't have done it without you teaching me a lot of what I know today. You where the one that got me started on scripting. Thanks Smile
Neo: You inspired me to learn more when you tell me to try and make it instead of you making it for me. That helped me a whole lot when I was learning thanks Very Happy
KiLLErMaN99: I couldn't have done it without myself of course. Some credit has to be given. THIS IS MADNESS!


~KiLLErMaN99

_________________
Back to top Go down
http://hissingworms.co.nr
Gr33n
Golden Gamer
Golden Gamer


Gaming Mod '10:
Posts: 1513
HWPoints: 29439
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sat Jul 10, 2010 4:19 pm

Quite interested, but don't have time to read it ATM. I shall be your apprentice!
Back to top Go down
TheOnly1Left
•The Master•


Retired Staff '10:
Posts: 490
HWPoints: 6528
Join date: 2010-07-10

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 5:15 am

No me =[
Back to top Go down
IC3CRE4M
Earth Worm


Posts: 9
HWPoints: 75
Join date: 2010-07-11

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 5:20 am

The hell .. you wasted your time .
Back to top Go down
Mitsukaru
Main Administrator


Admin '10:
GFX Crew '10:
Recruiter '10:
Posts: 1327
HWPoints: 1538
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 5:39 am

IC3CRE4M wrote:
The hell .. you wasted your time .


Not really. I do a LOT of mIRC scripting and for the people that actually want to learn they can. TheOnly1Left learned very fast.

_________________
Back to top Go down
http://hissingworms.co.nr
TheOnly1Left
•The Master•


Retired Staff '10:
Posts: 490
HWPoints: 6528
Join date: 2010-07-10

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 10:25 am

I did learn some new scripts Smile
Back to top Go down
Gr33n
Golden Gamer
Golden Gamer


Gaming Mod '10:
Posts: 1513
HWPoints: 29439
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 10:30 am

I am planning on learning asap.

_________________
Hey, I'm Gr33n. You may know me as Linkshadow47. I love Zelda, Pokemon, Kingdom Heart, Final Fantasy, and Ratchet and Clank games the most. I'm pretty much the gaming guru here. Talk to me if you have any questions.

<-- My egg is gonna die.Click it to save it!
Back to top Go down
Mitsukaru
Main Administrator


Admin '10:
GFX Crew '10:
Recruiter '10:
Posts: 1327
HWPoints: 1538
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 11:39 am

Well right now I'm teaching TheOnly1Left how to do things so yea.

_________________
Back to top Go down
http://hissingworms.co.nr
Gr33n
Golden Gamer
Golden Gamer


Gaming Mod '10:
Posts: 1513
HWPoints: 29439
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 11:51 am

NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!!!!!!!!

_________________
Hey, I'm Gr33n. You may know me as Linkshadow47. I love Zelda, Pokemon, Kingdom Heart, Final Fantasy, and Ratchet and Clank games the most. I'm pretty much the gaming guru here. Talk to me if you have any questions.

<-- My egg is gonna die.Click it to save it!
Back to top Go down
Gr33n
Golden Gamer
Golden Gamer


Gaming Mod '10:
Posts: 1513
HWPoints: 29439
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 11:53 am

Ok, so I understand the TEXT, haven't read INPUT, and have a single question. What kind of progran should I be scripting in?

_________________
Hey, I'm Gr33n. You may know me as Linkshadow47. I love Zelda, Pokemon, Kingdom Heart, Final Fantasy, and Ratchet and Clank games the most. I'm pretty much the gaming guru here. Talk to me if you have any questions.

<-- My egg is gonna die.Click it to save it!
Back to top Go down
Mitsukaru
Main Administrator


Admin '10:
GFX Crew '10:
Recruiter '10:
Posts: 1327
HWPoints: 1538
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 11:55 am

mIRC :| Do you have teamviewer? If so I'll show you.

_________________
Back to top Go down
http://hissingworms.co.nr
Gr33n
Golden Gamer
Golden Gamer


Gaming Mod '10:
Posts: 1513
HWPoints: 29439
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 11:57 am

no, but I mean like do I have to download something or is it on my computer?

_________________
Hey, I'm Gr33n. You may know me as Linkshadow47. I love Zelda, Pokemon, Kingdom Heart, Final Fantasy, and Ratchet and Clank games the most. I'm pretty much the gaming guru here. Talk to me if you have any questions.

<-- My egg is gonna die.Click it to save it!
Back to top Go down
Mitsukaru
Main Administrator


Admin '10:
GFX Crew '10:
Recruiter '10:
Posts: 1327
HWPoints: 1538
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 11:58 am

You can get a temp download for it. It's not big at all and if you get the quick version you don't even need to install. It'll be very useful.

_________________
Back to top Go down
http://hissingworms.co.nr
Gr33n
Golden Gamer
Golden Gamer


Gaming Mod '10:
Posts: 1513
HWPoints: 29439
Join date: 2008-06-14

PostSubject: Re: Beginners Guide to Scripting in mIRC   Sun Jul 11, 2010 11:58 am

kk. I'll look.

_________________
Hey, I'm Gr33n. You may know me as Linkshadow47. I love Zelda, Pokemon, Kingdom Heart, Final Fantasy, and Ratchet and Clank games the most. I'm pretty much the gaming guru here. Talk to me if you have any questions.

<-- My egg is gonna die.Click it to save it!
Back to top Go down
D3molish3R
♥ Pink ♥


Posts: 338
HWPoints: 2051
Join date: 2010-07-13

PostSubject: Re: Beginners Guide to Scripting in mIRC   Tue Jul 13, 2010 7:31 pm

Great Guide! Smile
Back to top Go down
http://www.pawngame.com/forum/member.php?u=1811700 - http://s4.zetaboards.com/PGSlaughterLeague/site/
 

Beginners Guide to Scripting in mIRC

View previous topic View next topic Back to top 
Page 1 of 2Goto page : 1, 2  Next

 Similar topics

-
» For All The Beginners :)
» MEL Scripting for Maya Animators PDF
» Boarding Guide
» Strategical Guide
» FORCE BLADER GUIDE

Permissions in this forum:You cannot reply to topics in this forum
Hissing Worms :: The Desk :: Tutorials and Guides-
Free forum | © phpBB | Free forum support | Report an abuse | Free forums