Hi, so when you go to cut a log for the first time it asks you what tool to you
*add to bonfire*
*use knife*
*use tinderbox*
It only asks you once and then it will automatically select the tool for you until you log out.
I need to make a procedure run only once, during the first batch of logs I tried doing something like this
But it still tries to click the knife every time, which looks robotic since there isnt anything there onscreen.PHP Code:procedure clickKnife();
begin
mouseBox(intToBox(268,182,313,228), MOUSE_LEFT);
end;
procedure cutLogs();
var x,y: integer;
begin
if bankscreen.close then
begin
wait(randomRange(1000,2000));
tabBackPack.mouseSlot(1, MOUSE_LEFT)
end;
if tabBackPack.mouseSlot(1, MOUSE_LEFT) then
begin
wait(randomRange(1000,2000));
clickKnife();
wait(randomRange(500,1000));
mouseBox(intToBox(287,328,507,352), MOUSE_LEFT);
wait(randomRange(1000,2000));
end;
if progressScreen.isOpen(6000) then
begin
WriteLn('Waiting for logs to cut');
repeat
wait(randomRange(500,1000));
until (progressScreen.getButton() < 1);
end else
writeLn('Couldnt open progress screen');
end;
Thanks for any help!


Reply With Quote







