Skip to content

Commit

Permalink
fix(colectbox): improved collectbox open and walkopen
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Sep 20, 2024
1 parent bc5bfde commit 0ef5064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osr/interfaces/mainscreen/collectbox.simba
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ begin
Exit;

Minimap.WaitMoving();
Result := WaitUntil(CollectBox.IsOpen() or BankPin.IsOpen(), SRL.TruncatedGauss(50, 1500), 3000);
Result := WaitUntil(RSInterface.IsOpen(), 300, 3000) and (CollectBox.IsOpen() or BankPin.IsOpen());
end;

function TRSCollectBoxes.WalkOpen(mapObj: PRSMapObject = nil): Boolean; override;
Expand All @@ -452,7 +452,7 @@ begin
Exit;

Minimap.WaitMoving();
Result := WaitUntil(CollectBox.IsOpen(), SRL.TruncatedGauss(50, 1500), 3000);
Result := WaitUntil(RSInterface.IsOpen(), 300, 3000) and (CollectBox.IsOpen() or BankPin.IsOpen());
end;


Expand Down

0 comments on commit 0ef5064

Please sign in to comment.