Results 1 to 3 of 3

Thread: Just a plain WCing script [Need help][RSPS]

  1. #1
    Join Date
    Jan 2014
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default Just a plain WCing script [Need help][RSPS]

    So whenever I click play it goes to the top left of my screen and right clicks up there.
    I was following this guide;
    http://villavu.com/forum/showthread.php?t=94909

    But put in a OS at the top.. Sometimes it just sits there after I click play and it shows it's playing (from the play button being selected)
    but will just sit there...
    Here's my code

    Program ChopTree;
    {$I SRL-OSR/SRL.simba}
    Procedure ClickTree;
    var
    X,Y:Integer;
    begin
    FindColorTolerance(X, Y, 10336, 262, 91, 289, 116, 5)
    begin
    mmouse(x, y,1,1);
    wait(250);
    ClickMouse(X, Y, mouse_Left)
    end;
    end;
    Begin
    MouseSpeed := 15;
    SetupSRL;
    ClickTree;
    end.

    I'm really new to this so any help is very much appreciated sorry I sound so dumb lol.

  2. #2
    Join Date
    Jan 2014
    Location
    New Found Land
    Posts
    108
    Mentioned
    3 Post(s)
    Quoted
    21 Post(s)

    Default

    is it for a private server and your testing it on osrs? i cant help with the code because i will damage it beyond any repair even trying to script (no joke) but make sure your SMART is enabled (if your using it) that may be why the script will load, but becomes unresponsive. hope this helps =]

    "When all government, domestic and foreign, in little as in great things, shall be drawn to Washington as the center of all power, it will render powerless the checks provided of one government on another, and will become as venal and oppressive as the government from which we separated."

  3. #3
    Join Date
    Jun 2013
    Posts
    147
    Mentioned
    2 Post(s)
    Quoted
    41 Post(s)

    Default

    This will help a little bit, I took out the mmouse and clickmouse, and replaced with Mouse. It does all of it, but in one function.

    Keep in mind that you're only calling the procedure once in your script at the bottom, so it will run the Procedure ChopTree only one time through then end, meaning if it doesn't find it, it will just end.

    Simba Code:
    Program ChopTree;
    {$I SRL-OSR/SRL.simba}

    Procedure ClickTree;
      var
    X,Y:Integer;
    begin
     if FindColorTolerance(X, Y, 10336, 262, 91, 289, 116, 5) then  //Changed to an if...then statement because it's better
      begin
      `Mouse(x, y, 0, 0);
      End;
    End;

    Begin
    MouseSpeed := 15;
    SetupSRL;
        ClickTree;
    end.

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
  •