Code:
program New;
var x,y:Integer;
const
TreeColor = 4819072;
TreeColor1 = 2848872;
TreeColor2 = 2719856;
LogColor = 2051414;
LoginScreen = 1810659;
BrokenTree = 3759718;
function Login : boolean; //Boolean because it results true or false;
begin
result := false;
If FindColor(x, y, LoginScreen, 677, 464, 677, 464)
then result := true
end;
function WoodCutter : boolean;
begin
result := false;
If FindColorTolerance(x, y, TreeColor, 200, 74, 251, 124, 2) or
FindColorTolerance(x, y, TreeColor1, 200, 74, 251, 124, 2) or
FindColorTolerance(x, y, TreeColor2, 200, 74, 251, 124, 2)
then result := true
end;
function TreeStump : boolean;
begin
result := false;
If FindColorTolerance(x, y, BrokenTree, 257, 140, 257, 140, 1)
then result := true
end;
Begin
Repeat
//Login Check
If (Login = True) then
begin
SendKeys(Chr(13));
Wait(10000);
end;
//Getting logs
If (WoodCutter = True) then
Begin
Repeat
MoveMouse(x, y);
Wait(100);
ClickMouse(x, y, True);
Wait(20000);
Until FindColorTolerance(x, y, LogColor, 706, 405, 706, 405, 5)
end;
If (TreeStump = True) then
Begin
Wait(10000);
end;
//Dropping
If FindColor(x, y, 2051414, 562, 241, 733, 420) then
begin
Repeat
MoveMouse(x, y);
Wait(20);
ClickMouse(x, y, False);
Wait(20);
MoveMouse(x, y+40);
Wait(20);
ClickMouse(x, y+40, True);
Until FindColor(x, y, 3226435, 706, 405, 706, 405)
end;
Until False;
end.
The inventory is full with logs, and it should drop but it doesn't, anyone knows what's wrong?