g ked
2014-04-03 22:35:33
Hey, i'm somewhat of a noob, anyways, this bot is very very basic, clicks the ore, and empties my inventory, now I just can't seem to get this loop down, what i'm having the bot do is check for ore in the last inventory spot so it knows when i have a full inventory.
program Mcoal;
{$i srl/srl.simba}
var
X,Y:Integer;
Procedure MineCoal;
begin
if FindColorTolerance(X, Y, 2306876, 127, 122, 367, 282, 5) then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
wait (5000);
end;
end;
Procedure Empty;
begin
if FindColorTolerance (X, Y, 2636860, 684, 426, 734, 465, 5) then
begin
TypeSend('::empty');
wait (250);
mmouse (x, y, 252, 391);
wait (250);
ClickMouse (X, Y, mouse_Left)
end;
begin
if (not(FindColorTolerance (X, Y, 2636860, 684, 426, 734, 465, 5))) then
begin
end;
end;
end;
Procedure Wait4;
begin
wait (1000);
end;
begin
MouseSpeed := 15;
SetupSRL;
MineCoal;
Empty;
Wait4;
end.