Thanks again for the help … I think I am making this more complicated than it needs to be … this is my current banking procedure -
procedure BankLogs;
var
x, y, MahoganyLog, SpecialMahoganyLog, BankBox, i: integer;
tmpCTS, counter:integer;
ChestTPA:TPointArray;
begin
SetAngle(SRL_ANGLE_HIGH);
MahoganyLog := DTMFromString('mbQAAAHicY2VgYChiZGAoBeIuIG4H4nIgNgBiFSBWB2JTILYAYn9dbqBqJjSMCRixYDAAAFrdA/s=');
SpecialMahoganyLog := DTMFromString('mWAAAAHicY2FgYGhjYmBoBuKJQFwJohkZGLqAeCoQtwFxlb8ZQ1uYNVAlExSjAkY0DAIAl8wGeA==');
BankBox := DTMFromString('mbQAAAHicY2VgYLBiZmAwAWJjIHYEYicgfsfIwPAYiL9AMYg9IUiHIctGgaHAw5ChPsiCoc5DjQEEWNEwIxYMBgDmiQql');
tmpCTS := GetToleranceSpeed;
SetColorToleranceSpeed (2);
SetToleranceSpeed2Modifiers(0.03, 0.07);
FindColorsTolerance(ChestTPA, 2574721, MSX1, MSY1, MSX2, MSY2, 33);
SetColorToleranceSpeed(tmpCTS);
SetToleranceSpeed2Modifiers(0.02, 0.02);
if FindObjTPA(x, y, 2904720, 5, 2, 60, 30, 15, ['epo', 'Deposit', 'chest', 'Bank']) or FindDTM(BankBox, x, x, msx1, msy1, msx2, msy2) then
begin
Mouse(x, y, 7, 7, mouse_left);
repeat
Wait(250 + random(100));
Inc(i);
until(FindDTM(MahoganyLog, x, y, msx1, msy1, msx2, msy2) or (FindDTM(SpecialMahoganyLog, x, y, msx1, msy1, msx2 ,msy2)) or (i > 20));
if FindDTM(MahoganyLog, x, y, msx1, msy1, msx2, msy2) then
begin
Mouse(x, y, 7, 7, false);
WaitOptionMulti(['All', '-All', 'sit-All'], 1000);
Wait(500 + random(250));
WriteLn('Found logs');
if FindDTM(SpecialMahoganyLog, x, y, msx1, msy1, msx2 ,msy2) then
begin
Mouse(x, y, 7, 7, false);
WaitOptionMulti(['All', '-All', 'sit-All'], 1000);
Wait(500 + random(250));
WriteLn('Found special logs');
end;
CloseBank;
Inc(Loads);
IncEx(MahoganyLogs, 27);
end else WriteLn('Not Finding Logs');
end else
begin
WriteLn('Couldnt find the bank, exiting!');
TerminateScript;
end;
FreeDTM(MahoganyLog);
FreeDTM(SpecialMahoganyLog);
FreeDTM(BankBox);
end;