SCAR Code:
true: begin
StatusReport('Checking Inventory', 'Depositing');
FindDTM(DTM, x1, y1, MIX1, MIY1, MIX2, MIY2);
if (x1 = 0) or (y1 = 0) then
begin
if FindDTM(DTM, x1, y1, MSX1, MSY2, MSX2, MSY2) then
Mouse(x1, y1, 3, 3, true)
else
begin
Error('Could not find knife in bank, or in inventory.');
exit;
end;
end;
if CoordsToItem(x1, y1) <> 1 then
DragItem(CoordsToItem(x1, y1), 1);
Deposit(2, 28, true);
Wait(100+random(150));
StatusReport('Withdrawing Logs', '');
if not FindDTM(Pbow.DTML, x1, y1, MSX1, MSY1, MSX2, MSY2) then
begin
Error('Out of Logs! :)');
exit;
end;
MMouse(x1, y1, 4, 4);
Wait(100+random(150));
if IsUpText(Capitalize(LowerCase(Players[CurrentPlayer].strings[0]))) then
Mouse(x1, y1, 0, 0, false)
else begin
Error('Could not find Logs!');
Exit;
end;
Wait(300+random(150));
ChooseOption('All');
Wait(100+random(200));
end;