Log in

View Full Version : Please help me to be a scripter! :)



Riffe
12-20-2008, 02:45 PM
Hi!
I really want to be a GOOD scripter.
But the problem is...
That I don't know which tutorial is up to date and not.
And please give me a good tutorial that have everything included, antiban, antirandom, and that. Please give me a link to a good tutorial that have been very kind of you:)


Cheers,

Riffe.

Method
12-20-2008, 02:52 PM
Start reading (http://www.srl-forums.com/forum/tutorial-beginners-f176.html).

Like I said in the other topic, most of them still apply to the current revision because the theory behind them is still the same as it was when they were created.

Floor66
12-20-2008, 02:55 PM
Looking at other peoples' scripts is good too, aswell as peaking in the SRL functions every now and then ^^.

Dervish
12-20-2008, 07:43 PM
I reccomend looking around in SRL Includes folder, its an AWESOME way of learning.

However, if you seek for peculiar stuff, I reccomend Tutorial Island.

I mixed both :)

jakeyboy29
12-20-2008, 07:52 PM
study a few scripts first.

Quickmarch
12-20-2008, 07:57 PM
Try just messing around with Clickmouse, MoveMouse etc thats how i learnt :)

Blumblebee
12-20-2008, 11:15 PM
you can take a look at my how to make a simple powerminer tut, although some background knowledge would be necessary, its up to date.

(i dont have a link kuz im lazy :p)

Andyz55
12-20-2008, 11:20 PM
When I first started, I printed out the SRL Manuel and read the entire thing two times. It can be found under the help section in scar. After reading through that, I decided what kind of script I would make and what things srl had to offer that I could use in it. Things that would be worth studying are Mapwalking, Autocolor, SrlStats, SMART, TPAs, DTMs, Bitmaps, etc. They can all be found with the search button. Anything else you may need can easily be found on tutorial island. Any tut using examples that don't use SRL functions is OUTDATED! DONT USE THOSE TUTS! I did and my first script was crap because of it.. Anyway, I hope I helped.

-Andy

Riffe
12-21-2008, 08:07 AM
When I first started, I printed out the SRL Manuel and read the entire thing two times. It can be found under the help section in scar. After reading through that, I decided what kind of script I would make and what things srl had to offer that I could use in it. Things that would be worth studying are Mapwalking, Autocolor, SrlStats, SMART, TPAs, DTMs, Bitmaps, etc. They can all be found with the search button. Anything else you may need can easily be found on tutorial island. Any tut using examples that don't use SRL functions is OUTDATED! DONT USE THOSE TUTS! I did and my first script was crap because of it.. Anyway, I hope I helped.

-Andy


You know what Andy? You're best! WOW THANKS!:)
Rep+ to you:)

Andyz55
12-21-2008, 03:25 PM
You know what Andy? You're best! WOW THANKS!:)
Rep+ to you:)


Lol thanks Rifle. Just trying to help :p I have half a mind to put your comment in my sig if you dont mind lol :)

Markus
12-21-2008, 03:50 PM
When I first started, I printed out the SRL Manuel and read the entire thing two times. It can be found under the help section in scar. After reading through that, I decided what kind of script I would make and what things srl had to offer that I could use in it. Things that would be worth studying are Mapwalking, Autocolor, SrlStats, SMART, TPAs, DTMs, Bitmaps, etc. They can all be found with the search button. Anything else you may need can easily be found on tutorial island. Any tut using examples that don't use SRL functions is OUTDATED! DONT USE THOSE TUTS! I did and my first script was crap because of it.. Anyway, I hope I helped.

-Andy
You know, that's one of the ways I learned SRL too :p Except I didn't print it out, but studied it every night an hour @ my PSP.

boberman
12-21-2008, 04:18 PM
My recommendation is to start out slow. If you get caught up in the Anti-ban, anti-random, anti-SuperAwesome-whatever to soon it will just be discouraging to you.

The first thing is to make sure you understand the basics. Start by making sure you understand the available data types, what they are used for, and what they aren't used for (IE. booleans store true false, integers store number, extended stores numbers with decimal points in them).

The next step is to learn about control structures. Learn about if then else statements and case statements, what they do, and when to use them. At this point it is often helpful to learn about and, or, and not operators as well as boolean algebra really determines how your program will behave.

After learning the basic control structures, learn about loops. I've seen way to many applications that do in 30 lines what 2 loop lines could have done. If you want to do the same thing more then once, consider using a loop.

After that, learn about functions and procedures. Many new programmers have a hard time with them, however they are vital to your ability to program. The most helpful tip I learned was that functions should be simple enough to be contained in one sentence with no ands, ors, or buts. For example. "This function returns the first 100 primes in an array" That would be a valid function, however "This function returns the first 100 primes and calculates their average" Should be split up into two functions, one that finds the first 100 primes, and one that computes averages.

After you get those basics down, then consider learning about SRL, with its anti-bans and anti randoms ect. If you don't have a good foundation down, it will be hard for you to get very far.

Here are some applications I would recommend doing (in order) before starting with scripts.

1. Hello World. Just a simple application that prints out hello World. Nothing fancy.
2. Hello World, my name is "". Store you name and age in two variables, print out a sentance that says something like "Hello World my name is " + insert your name + " I am " + insert your age + " years old".
3. Make a program that will convert Fahrenheit to Celsius or vica-versa and display the results and the input. IE "0C = 32F"
4. Make a program that can take a number from 0 to 100 and give out a letter grade. IE 0-59 = F, 60-69 = D, 70-79 = C, 80-89 = B, 90+ = A. See if you can do this both with a switch case statement and if statements. If you are really ambitious, see if you can add the + or - to the grade.
5. Make a program that outputs the numbers 1 to 100 in order.
6. Make a program that calculates the first 10 Fibonacci numbers.
7. Finally, make a program that given any month and year is able to print out a calendar for that month/year (this is hard, you will have to use all the principles learned thus far. No cheating, IE don't use the doomsday algorithm)

Once you can make all those programs, you should be able to make some pretty decent scripts. Go ahead and browse the work that others have done, read the SRL manual and include files, and you should be ready to go.

Andyz55
12-22-2008, 04:54 AM
You know, that's one of the ways I learned SRL too :p Except I didn't print it out, but studied it every night an hour @ my PSP.


Cool. I wish I had a PSP. I still study the manual sometimes lol. How did all of you admins and mods learn so many computer languages at such young ages? I always forget you guy are just a little bit older than me when I see your avatars because they are usually of people who look like they are 30 or so lol. This whole community is full of people who amaze me at how much they know about programming languages and stuff at such a young age.. My goal as of now is to learn the ones that you know right now by the time i am your age. Then I'll try to learn the things that other people know like Freddy and WT-Fakawi and Wizzup?. I wanna know just as much as them when I'm their ages. Too bad they are complete geniuses. All of you guys are.. Lol

-Andy

Riffe
12-22-2008, 09:15 AM
Lol thanks Rifle. Just trying to help :p I have half a mind to put your comment in my sig if you dont mind lol :)

NP for me:)