MyItem := NULL_GROUNDITEM;
Problem solved..
This is what i used (very basic, just to see profit per hour, noticed it was shit and stopped lol)
Procedure Loot;
Var
Items : TGroundItemArray;
I : Integer;
ITile : TPoint;
FishIDs : TIntegerArray;
Begin
FishIDs := [377,359,371];
Repeat
Items := GetItemsNear(3);
For I := 0 to High(Items) Do
Begin
If(InIntArray(FishIDs,Items[I].ID))Then
Begin
ITile := TileToMS(Items[I].Tile, 0);
Mouse(ITile.X, ITile.Y, 1, 1, true);
Wait(100+random(200));
If(InvFull)Then Break;
End;
End;
Repeat
Wait(300+random(900));
Until(Not IsMoving);
Until(InvFull);
CheckInv;
If(Not InvFull)Then Loot;
End;