File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed
Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -517,7 +517,10 @@ end;
517517```pascal
518518function TAntiban.TimeUntilBreak(constref task: TBreakTask; fmt: String = TIME_FORMAL): String;
519519```
520- Check how much time is left until the specified break `task` should be taken.
520+ Returns a string of how much time is left until the specified break `task`
521+ should be taken.
522+
523+ Useful to show information to users.
521524*)
522525function TAntiban.TimeUntilBreak(constref task: TBreakTask; fmt: String = TIME_FORMAL): String;
523526begin
@@ -529,7 +532,10 @@ end;
529532```pascal
530533function TAntiban.TimeUntilSleep(constref task: TSleepTask; fmt: String = TIME_FORMAL): String;
531534```
532- Check how much time is left until the specified sleep break `task` should be taken.
535+ Returns a string of how much time is left until the specified sleep break `task`
536+ should be taken.
537+
538+ Useful to show information to users.
533539*)
534540function TAntiban.TimeUntilSleep(constref task: TSleepTask; fmt: String = TIME_FORMAL): String;
535541begin
Original file line number Diff line number Diff line change @@ -395,7 +395,6 @@ begin
395395
396396 b.X2 := b.X1 + 35;
397397 b.Y2 := b.Y1 + 31;
398-
399398 Result := ItemFinder.GetHash(Target.GetImage(b));
400399end;
401400
Original file line number Diff line number Diff line change @@ -117,10 +117,10 @@ begin
117117
118118 Self.SellButton := Self.BuyButton.Offset([56,0]);
119119
120- Self.ItemBox.X1 := X1+5 ;
121- Self.ItemBox.Y1 := Y1+33 ;
122- Self.ItemBox.X2 := Self.ItemBox.X1+36 ;
123- Self.ItemBox.Y2 := Self.ItemBox.Y1+34 ;
120+ Self.ItemBox.X1 := X1+6 ;
121+ Self.ItemBox.Y1 := Y1+34 ;
122+ Self.ItemBox.X2 := Self.ItemBox.X1+35 ;
123+ Self.ItemBox.Y2 := Self.ItemBox.Y1+31 ;
124124
125125 Self.ItemNameBox.X1 := X1+44;
126126 Self.ItemNameBox.Y1 := Y1+33;
@@ -215,11 +215,9 @@ WriteLn GrandExchange.Slots[5].Discover();
215215*)
216216function TRSGrandExchangeSlot.Discover(): TRSItemArray;
217217var
218- img: TImage;
219218 hash: String;
220219begin
221- img := Target.GetImage(Self.ItemBox);
222- hash := ItemFinder.GetHash(img);
220+ hash := ItemFinder.GetHash(Target.GetImage(Self.ItemBox));
223221 if hash = '' then Exit;
224222 Result := ItemFinder.GetHashItems(hash);
225223end;
You can’t perform that action at this time.
0 commit comments