Results 1 to 5 of 5

Thread: Clicking a small space problem

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

    Default Clicking a small space problem

    I just improved my alcher, but the problem is, is that after 5 or so clicks. It goes too far north and clicks the wrong spell. Why does it do that, and whats a good way to fix it?

  2. #2
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you can allways ditch the high alch bmp, and replace the casting with a mousebox, or even better use CastSpell(35) you can find that one in magic.scar in the skills folder

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

    Default

    The thing with CastSpell(35) is that its not really humanlike...
    When I alch without a bot, I don't move my mouse at all, with CastSpell(35) you do (randomisation).

  4. #4
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You want it to click somewhere, which could be random, then continue clicking and alching at that coordinate? Like this?

    SCAR Code:
    procedure Alch;
    var
      x, y : Integer;
    begin
      Mouse(coordx, coordy, ranx, rany, true);
      GetMousePos(x, y);
      wait(100);
      Mouse(x, y, 0, 0, true);
      wait(1000); //put whatever the time between alchs is, its def not 100.
      repeat
        Mouse(x, y, 0, 0, true);
        wait(100);
        Mouse(x, y, 0, 0, true);
        alchs := alchs + 1;
        wait(100); //put whatever the time between alchs is, its def not 100.
      until(alched >= alchs); //alched = how many done, alchs = total
    end;
    Temporarily inactive.

  5. #5
    Join Date
    Jun 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, if you looked I have something similair.

    SCAR Code:
    Procedure Navigation;
    begin
      Gametab(7);
      HighAlch := BitmapFromString(8, 7, 'z78DA8D8C410E80300' +
                '804BF4401518F4ACBFF9FA4662F18522387095966594CBB323DD3' +
                '868D35EC74672710F96DA86CE0CC0485BCC9AB559D6C66A205D6E' +
                '43FE30823CFAC57EC9D3BD35EFDD907F8DFAD0B7B9148EE');
      if FindBitmapToleranceIn(HighAlch, x1, y1, MIX1, MIY1, MIX2, MIY2, 50)
        then Cleardebug else
          begin
            TerminateScript;
            writeln('HighAlch not found!')
          end;
        MMouse(x1,y1,5,5);
        FreeBitMap(HighAlch);
    end;

    This determines the clicking spot, wiht a Bitmap.

    SCAR Code:
    Procedure Alching;
    begin
      GetMousePos(x2,y2);
      Mouse(x2, y2, 0, 0, true);
      wait(1650+random(100));
      Mouse(x2, y2, 0, 0,true);
      wait(800+random(100));
      AlchTimes:=AlchTimes + 1
    end;

    Perhaps the problem is, is that it keep doing "GetMousePos" which causes the mouse to move slightly?

    --EDIT--
    Moved the GetMousePos to the Navigation. Now it doesn't repeat that part and the mouse doesn't start acting weird. Thanks for helping.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Small problem within SRL
    By petrock6 in forum OSR Help
    Replies: 6
    Last Post: 01-19-2007, 08:58 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
  •