PDA

View Full Version : Mining Script, need help



YMCMBubel
12-24-2015, 03:28 AM
So I'm making a script for OS-Scape. I get this error when I compile.
"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.

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.

Citrus
12-24-2015, 03:33 AM
moveMouse() takes x and y or a TPoint (with SRL-6)
http://docs.villavu.com/simba/scriptref/mouseandkeyboard.html#movemouse
http://docs.villavu.com/srl-6/mouse.html#movemouse-overload

this will work if you don't want to use srl-6's mouse()

procedure mouse(pnt: TPoint; button: integer); override;
var
x, y: integer;
begin
moveMouse(pnt.x, pnt.y);
if (button = MOUSE_MOVE) then exit();
wait(22 + random(9));
holdMouse(pnt.x, pnt.y, button);
wait(69 + random(69));
getMousePos(x, y);
releaseMouse(x, y, button);
end;

AFools
12-24-2015, 04:06 AM
You made a previous post, which confused me ; are you working on OSRS or RS3?

jstemper
12-26-2015, 06:01 AM
You made a previous post, which confused me ; are you working on OSRS or RS3?

OS-scape is a growing old school rsps

jojo16200
02-15-2016, 06:37 PM
why dont you just play osrs

rj
02-15-2016, 08:08 PM
why dont you just play osrs

why don't you just play RS3

srlMW
02-15-2016, 10:59 PM
why dont you just play osrs

why don't you just play RS3
Why don't you both play OS-Scape? :garfield: