Skip to content

Commit ed99fd4

Browse files
committed
fix(GrandExchangeSlot): ItemFinder
1 parent 99dcadc commit ed99fd4

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

osrs/antiban/antiban.simba

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,10 @@ end;
517517
```pascal
518518
function 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
*)
522525
function TAntiban.TimeUntilBreak(constref task: TBreakTask; fmt: String = TIME_FORMAL): String;
523526
begin
@@ -529,7 +532,10 @@ end;
529532
```pascal
530533
function 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
*)
534540
function TAntiban.TimeUntilSleep(constref task: TSleepTask; fmt: String = TIME_FORMAL): String;
535541
begin

osrs/interfaces/iteminterface.simba

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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));
400399
end;
401400

osrs/interfaces/mainscreen/grandexchange/grandexchange.simba

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff 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
*)
216216
function TRSGrandExchangeSlot.Discover(): TRSItemArray;
217217
var
218-
img: TImage;
219218
hash: String;
220219
begin
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);
225223
end;

0 commit comments

Comments
 (0)