How to Auto Using Scar/SRL

Discussion in 'Archives' started by WhoCares357, Apr 4, 2007.

How to Auto Using Scar/SRL
  1. Unread #1 - Apr 4, 2007 at 7:39 PM
  2. WhoCares357
    Joined:
    Jan 21, 2007
    Posts:
    608
    Referrals:
    1
    Sythe Gold:
    0

    WhoCares357 Forum Addict

    How to Auto Using Scar/SRL

    How to Auto Using Scar/SRL

    by WhoCares357


    In this tutorial, I will teach you how to auto (macro) using Scar. I will further this by teaching you how to setup a script that uses SRL.
    To describe Scar in a few sentences: Scar is a program used by lazy RuneScape players. Scar is a compiler that looks for a color in RuneScape and acts upon that (Clicks it or Waits etc.). Each color has a number. You have to tell Scar which numbers (colors) to look for.

    First of all, you will need to get Scar 2.03 (or later version) at www.dylock.net/scar.
    Once you install Scar and open it, the program will prompt you with an option to download includes. Say yes and wait a bit (minute or two on dial-up) for Scar to download the includes.
    Now I and you will take a closer look at all those buttons in Scar mean.

    You will first see something like this:
    [​IMG]

    First think you should notice are two text boxes. The top one looks like this:
    [​IMG]
    This is the main text box. This is where you will fill in all you options for the script before starting it.

    The smaller text area is called the Debug Box:
    [​IMG]
    This is where all the information about the autoing will be. After you stop the script or it stops itself, check down there. You will most likely see a bunch of information about the autoing session. It will be made up of information like the amount of time the script has run, how many randoms it has seen, and other such information.

    Next you will see two toolbars.

    The first one should look familiar to you:

    [​IMG]

    This is where you can Exit, Save, Load, and perform other such actions. There are also some options there for scripters. You shouldn’t worry about that.

    If you accidentally canceled the Download Includes prompt or if the prompt didn’t show, you can do download the includes manually.
    Go to File-Download Includes. You will see this:
    [​IMG]

    Just press Overwrite and wait until Scar downloads all the files.

    One more thing you should check in the toolbar is Silent Mouse. RuneScape can detect Silent Mouse so you should make sure it’s unchecked. To do this, go to Tools. Make sure that Silent Mouse does not have a check next to it. If it does, click on Silent Mouse and it will get unchecked.

    The next toolbar will look like this:

    [​IMG]

    You will use this toolbar more than the top one. I will describe each button individually:

    [​IMG]

    Those are the shortcuts to the options from File in the top toolbar.
    The first button will clear the top text box.
    The next button is used to open a .scar or .txt file (a script).
    The third button is Open From Web. The creators of Scar created a few extra scripts that they allow you to use. I do not recommend using these, for they are pretty old. Press Open From Web, wait for the list to load, and press on the script you want. It will take a little while to download the script.
    The fourth button will save the script.
    The fifth button cuts the highlighted text. (you can paste it after you cut it)
    The sixth button copies the highlighted text.
    The seventh button pastes the already copied or cut text.
    The eighth button searches for a word or phrase in the script.

    These first buttons are simple. You should know most of them from other app’s you used before.

    The next few buttons look like this:

    [​IMG]

    These buttons are used to run, pause, or stop the script. You should memorize the shortcut keys for these three.

    Run: ctrl+alt+r (start script)
    Pause: ctrl+alt+a (pause)
    Stop: ctrl+alt+s (stop)

    Don’t worry about the next two buttons:

    [​IMG]

    They are useless unless you’re a scripter.

    The next button is very important:

    [​IMG]

    This is called the Color Picker. It’s shortcut is ctrl+alt+p. Remember how I said that Scar uses color numbers to work? This is how you find the color of a rock or tree or whatever the script options ask for:

    Click the Color Picker or press ctrl+alt+p.
    Click on the color you want to get the number of. (click the rock or tree etc.)
    Look in the Debug Box; (lower text box) You will see something like:
    Code:
    Color Picked: 16777215 at (206, 310)
    The first big number (1677…) is the color number. (206, 310) are the coordinates at which you picked the color.

    The next button is not very important:

    [​IMG]

    This button simple clears the Debug Box.

    The Toggle Report button is next:

    [​IMG]

    This button adds a new text area to the Debug Box. (lower text box)
    If you click it, you will see this:

    [​IMG]

    Notice the Debug Box is split in two at the bottom. To undo this, just click the button again.

    The next button is the News button:

    [​IMG]

    All this button does is fill the Debug Box with the “News” about Scar. This appears automatically when you first open Scar.

    This next button is the most important of them all. It will also require a little more explanation:

    [​IMG]

    You cannot simply click this button. You must drag it over to the RuneScape window and let go of the mouse button. You should see a square enclose RuneScape. You MUST do this every time you open up Scar to auto. If you don’t care about the how and why, skip this next part.

    The reason you “enclose” Scar with the box is to make Scar see the RuneScape window as the whole screen. You see, Scar uses coordinates to click. It finds the color at a coordinate and clicks the coordinate. This becomes a problem when the RuneScape window appears in different locations on the screen. (if you’re using a client like SwiftSwitch to play RuneScape, Runescape is on the left of the screen while if you use Internet Explorer, it appears in the center) To fix this problem, the creators of Scar made Scar only see the RuneScape window. This guarantees that Scar will not miss-click.

    Now that you have all those buttons down, let’s look at the way we set options.

    Try searching www.sythe.org or www.srl-forums.com for some free scripts. I recommend finding one that uses SRL. Check for something like {.include SRL\SRL.scar} in the beginning of the script to see if it uses SRL.

    You can download and install the SRL include from www.srl-forums.com. A guide to do this can be found at http://www.sythe.org/showthread.php?t=148512.

    Once you open a script, you should see something like program Name;. This is the name of the script. Don’t touch that part. Next, you will see lots of green stuff. These are comments left by the author of the script (creator). They will provide you with information about the script. (version, author, etc.)

    Look down until you find a bolded black word, const. This is the first part of the options. Under/beside the word const will be something like this:

    Code:
    const
    Type = '';//What to type
    MonsterColor = ;//Color of monster
    Eat = ;//Eat? true = eat, false = not eat
    These are options. Yours will depend on the kind of script you use, and the amount of options the creator of the script set. There are four types of options:

    The first (Type in example) is a string. This kind of options is used to set what you want to use for text (auto-typing). You must set what you want to type between the ''. So in my example, I would put:

    Code:
    const
    Type = 'I hungry.';//What to type
    The next type of option is called an integer (MonsterColor). This type of option is used for numbers. In this example, I have to set the color number of the monster I want the script to kill. Use the color picker to pick the color of the monster and paste the color after the = sign.

    Code:
    const
    Type = 'I hungry.';//What to type
    MonsterColor =6734524342;//Color of monster
    The final type of option is called a boolean. This type of option has two choices: true, false. In my example, I used Eat as a boolean option. The user (you) would have to put in true if you want the script to eat the food or false if you do not want the script to eat.

    Code:
    const
    Type = 'I hungry.';//What to type
    MonsterColor =6734524342;//Color of monster
    Eat = true;//Eat? true = eat, false = not eat
    You must always remember to look at the name of the option (Type) or the comment next to it (//What to type) for clues on what the option is asking you.

    Remember this very important piece of information! If you set a color number for something in one world and go to another world, you must pick the color again. RuneScape changes the colors with a new world.

    Now I will teach you how to setup a script that uses SRL. Scroll down in the script a little until you find something like this:

    Code:
     procedure DeclarePlayers;
    begin
         HowManyPlayers := 2; //Amount of Players you will use
    
         CurrentPlayer := StartPlayer;
         NumberOfPlayers(HowManyPlayers);
    
         Players[0].Name    :='Username'; //Your username
         Players[0].Pass    :='Password'; //Your Password
         Players[0].Nick    :='sern';  // 3-4 letters from your name, NO CAPITALS (that includes the first character)
         Players[0].Loc :='Fally';  //Don’t worry about this one (Don’t touch it)
         Players[0].Active:= True;  //Will you use this player?
    
         Players[1].Name    :='Username';
         Players[1].Pass    :='Password';
         Players[1].Nick    :='sern';
         Players[1].Loc :='Fally';
         Players[1].Active:= True;
    end;
    This is pretty simple. These are the things you need to change:

    HowManyPlayers: How many players will you use? Put the number after :=.

    You must set options for each player. Set the Username and Password. The “Nick” is used for randoms. Instead of looking for the whole random, it will see if it finds the random calling out your name. For this option, set 3-4 letters of your Username. Do not put a capital letter.

    The next option is Location. Do not touch this one. Most scripts won’t even have this. Finally, there is the option Active. This just tells Scar if the character is going to participate in this autoing session. (True = will work; False = will not work)

    After you set all the options and ID the Window (Drag the CrossHair over RuneScape) press Run (ctrl+alt+r). Remember that to stop you must press ctrl+alt+s. (to pause ctrl+alt+a)

    Have fun cheating.
     
< lol meow meow | Create Your Own Commands >

Users viewing this thread
1 guest


 
 
Adblock breaks this site