Results 1 to 5 of 5

Thread: Scripting Help!

  1. #1
    Join Date
    Oct 2007
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Scripting Help!

    Is there a command to click on a certain color? Thanks!

  2. #2
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    FindColor(xvariable, yvariable, color);
    Mouse(xvariable, yvariable, 4, 4, true);
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Jun 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    heres a way, to like fish. old rsc code

    Code:
         
         repeat
              x:=300
              y:=200
              findcolor(x,y,16578808,278,165,366,219)
              MoveMouse(x,y);
              Wait(200 + Random(300));
           until(IsTextAt(6,26,'fish:'))
            ClickMouse(x - 100,y,true);
    Shows how to find a color, and clicks.
    Can be easy to convert to rs2

  4. #4
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    just look in your SRL folder and you can see all of the includes, which contain almost every function you will ever need...

    and for normal scar functions you can look in the scar manual
    METAL HEAD FOR LIFE!!!

  5. #5
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    SCAR Code:
    procedure FindTheColor;
    var x, y: Integer;

    FindColor(x, y, <Color>, 0, 0, 500, 336);
    Mouse(x, y, 1, 1, true);

    Don't be scared, ille explain it all.

    I hope you understand the 'procedure FindTheColor'...
    And these vars arent as hard as they look:

    FindColor : The name of the command that will find a color for you.

    (x, y) : These are empty cordinates awaiting to be filled, this means that the cordinates will be stored, at the place of the color.

    (0, 0, 500, 336) : I use these personally to find a color IN the RS applet, these cordinates are excactly between the most Upper-Left Corner if the RS applet, and the Lower-Right Corner. This Excludes the inventory.

    Mouse : A command that will move the mouse and click on the given coordinates.

    (x, y) : Here we are again, now, the cordinates stored in the (x, y) of FindColor, will be found IN the mouse command, so the mouse clicks Exactly
    the given Color in FindColor.

    (1, 1) : This means that WITH the (x, y) of FindColor, there will be added a random 1, wich makes not very much difference, but it can come in handy sometimes.


    I hope you understand a little more of it now?

    ` - Floor66
    Ce ne sont que des gueux


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I need scripting help
    By PvH in forum OSR Help
    Replies: 2
    Last Post: 12-07-2007, 12:37 PM
  2. rsc scripting help?
    By owntpls in forum OSR Help
    Replies: 0
    Last Post: 11-23-2007, 11:57 AM
  3. need help for scripting
    By utot na grin in forum OSR Help
    Replies: 2
    Last Post: 01-07-2007, 04:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •