help with script, am noobie ;p
program CutDiamonds;
{$i SRL-6/SRL.simba}
Procedure DiamondCutter
var
x, y: Integer;
begin
if FindColorTolerance(x, y, 2968687,288, 137,300, 175, 10) then
begin
MoveMouse(x,y);
wait(500)
ClickMouse(x, y, mouse_Left)
end;
end;
begin
MouseSpeed := 15;
SetupSRL-6();
CutDiamonds
end.
soo that's what I got, whenever I try to play the script I get a error at: ClickMouse(x, y, mouse_Left)
I am just trying to make it so the script will click on a npc so I can lateron tell it to buy items and so on.
Appriciate the help :)
PS trying to make it for a RSPS called pkhonor, and thanks in advance for reading.