Results 1 to 4 of 4

Thread: Scripting on RSPS.

  1. #1
    Join Date
    Jan 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Lightbulb Scripting on RSPS.

    I am currently trying to script on an RSPS (ProjectRS06) and I followed a tutorial on this website.

    Simba Code:
    Program ChopTree;
    {$i srl/srl.simba}
    Procedure ClickTree;
    var
      X,Y:Integer;
    begin
      if FindColorTolerance(X, Y, 3166827 , 370, 177, 382, 208, 5) then
      begin
       mmouse(x, y,1,1); // moves the mouse to were the color is found
       wait(250); // waits one fourth of a second
       ClickMouse(X, Y, mouse_Left)// clicks
      end;
    end;
    begin
    SetupSRL;
    end.

    That was the code I ended up with, but whenever I execute it, nothing happens.
    It tells me it was successfully executed, though.

  2. #2
    Join Date
    Dec 2012
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by TuSaliHai View Post
    I am currently trying to script on an RSPS (ProjectRS06) and I followed a tutorial on this website.

    Simba Code:
    Program ChopTree;
    {$i srl/srl.simba}
    Procedure ClickTree;
    var
      X,Y:Integer;
    begin
      if FindColorTolerance(X, Y, 3166827 , 370, 177, 382, 208, 5) then
      begin
       mmouse(x, y,1,1); // moves the mouse to were the color is found
       wait(250); // waits one fourth of a second
       ClickMouse(X, Y, mouse_Left)// clicks
      end;
    end;
    begin
    SetupSRL;
    end.

    That was the code I ended up with, but whenever I execute it, nothing happens.
    It tells me it was successfully executed, though.
    you forgot to put ClickTree into your main loop. so it would be
    Simba Code:
    begin
    SetupSRL;
    ClickTree;
    end.

  3. #3
    Join Date
    Jan 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by doxin View Post
    you forgot to put ClickTree into your main loop. so it would be
    Simba Code:
    begin
    SetupSRL;
    ClickTree;
    end.
    Ah, well, that's quite useful.
    Is there a way to make it based of off not just color** Let's say it looks for the color, but it also looks for "Oak" and only cuts then.
    Any suggestions**

  4. #4
    Join Date
    Dec 2012
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by TuSaliHai View Post
    Ah, well, that's quite useful.
    Is there a way to make it based of off not just color** Let's say it looks for the color, but it also looks for "Oak" and only cuts then.
    Any suggestions**
    you can make your own CheckUpText function, but you'd also have to make your own font. if you're lazy like me, you could just make the function check for the blue uptext at the top left of the screen. i'd suggest making a font and use that though, since i don't want to condone lazy scripting lol

Thread Information

Users Browsing this Thread

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

Posting Permissions

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