We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa1f4c8 commit 21ebdceCopy full SHA for 21ebdce
osrs/interfaces/mainscreen/grandexchange/grandexchange_chat.simba
@@ -299,11 +299,18 @@ WriteLn GrandExchangeChat.Click('Abyssal whip');
299
function TRSGrandExchangeChat.Click(item: TRSItem): Boolean;
300
var
301
bounds: TBox;
302
+ i: Integer;
303
begin
- if Self.Find(item, bounds) then
304
+ for i := 0 to 4 do
305
- Mouse.Click(bounds, EMouseButton.LEFT);
306
- Result := SleepUntil(not Self.IsOpen(), 200, 2400);
+ if Self.Find(item, bounds) then
307
+ begin
308
+ Mouse.Click(bounds, EMouseButton.LEFT);
309
+ Exit(SleepUntil(not Self.IsOpen(), 200, 2400));
310
+ end;
311
+
312
+ if not Self.IsOpen() then Exit;
313
+ Sleep(50, 150);
314
end;
315
316
0 commit comments