Why doesn't my script run_
Im trying to make a herblore script for rsps, but I cant get it to work. I tried to create a loop that opens bank for now, but the debug box only say Successfully executed. I'm using this script and Lape. Script does nothing. Please help me fixing this. I would be really grateful as I've tried to search everywhere solution. For SRL I'm using OSRS SRL, because the rsps is 317 revision, if it means anything.
Code:
Program Herblore;
{$i srl/srl.simba}
Procedure rightClickBank;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 1719114, 208, 159, 305, 216, 5) then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_right)
end;
end;
Procedure openBank
begin
if FindColorTolerance (X, Y, 16776960, 131, 84, 386, 308) then
begin
mmouse(x,y,1,1);
wait(250);
ClickMouse(X, Y, mouse_left)
end;
end;
procedure loop;
begin
rightClickBank
repeat
wait(10);
openBank
wait(50);
end;
Begin
SetupSRL;
MouseSpeed := 25;
Repeat
loop
Until(False);
end.