Results 1 to 7 of 7

Thread: Mining Script, need help

  1. #1
    Join Date
    Aug 2014
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default Mining Script, need help

    So I'm making a script for OS-Scape. I get this error when I compile.
    Code:
    "Error: Don't know which overloaded method to call with params (Int32, Int32, Int32) at line 9
    Compiling failed.
    This is my script I'm trying to make.
    Code:
    Program AtaCoalMiner;
    {$i srl-6/srl.simba}
    Procedure ClickCoal
    var
      X,Y:Integer;
     begin
     if findColorTolerance(X,Y,1517608,1058,464,801,207,1) then
      begin
      moveMouse(X,Y,1,1); //moves the mouse to the coordinates of the found point
      wait(100); //waits 1/10 of a second
      clickMouse(X,Y,1); //clicks the left-side of the mouse
     end;
    end;
    
    Begin
    MouseSpeed := 15;
    SetupSRL;
    end.

  2. #2
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    moveMouse() takes x and y or a TPoint (with SRL-6)
    http://docs.villavu.com/simba/script...html#movemouse
    http://docs.villavu.com/srl-6/mouse....mouse-overload

    this will work if you don't want to use srl-6's mouse()
    Simba Code:
    1. procedure mouse(pnt: TPoint; button: integer);  override;
    2. var
    3.   x, y: integer;
    4. begin
    5.   moveMouse(pnt.x, pnt.y);
    6.   if (button = MOUSE_MOVE) then exit();
    7.   wait(22 + random(9));
    8.   holdMouse(pnt.x, pnt.y, button);
    9.   wait(69 + random(69));
    10.   getMousePos(x, y);
    11.   releaseMouse(x, y, button);
    12. end;
    Last edited by Citrus; 12-24-2015 at 03:37 AM.

  3. #3
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    You made a previous post, which confused me ; are you working on OSRS or RS3?

    <------------------>



  4. #4
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Quote Originally Posted by AFools View Post
    You made a previous post, which confused me ; are you working on OSRS or RS3?
    OS-scape is a growing old school rsps

  5. #5
    Join Date
    Mar 2015
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    why dont you just play osrs

  6. #6
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by jojo16200 View Post
    why dont you just play osrs
    why don't you just play RS3

  7. #7
    Join Date
    Apr 2015
    Location
    FireFox
    Posts
    528
    Mentioned
    10 Post(s)
    Quoted
    227 Post(s)

    Default

    Quote Originally Posted by jojo16200 View Post
    why dont you just play osrs
    Quote Originally Posted by rj View Post
    why don't you just play RS3
    Why don't you both play OS-Scape?
    Scripting with ogLib

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
  •