EDIT 3 :
Simba Code:
program new;
{$i SRL/srl.simba}
{$i srl/srl/misc/debug.simba}
function InvEdges(SlotFrom, SlotTo, _Tol: Integer): T2DPointArray;
var
i: integer;
temp: TPointArray;
begin
i := 1;
for i := SlotFrom to SlotTo do
begin
FindColorsTolerance(temp, 131072, invbox(i).x1, invbox(i).y1, invbox(i).x2, invbox(i).y2, _Tol);
result := TPAtoATPA(temp, CoordsToItem(ItemCoords(i).x, ItemCoords(i).y));
inc(i);
end;
end;
begin
SetupSRL;
ActivateClient;
WriteLn(InvEdges(1, 2, 1));
DebugATPA(InvEdges(1, 2, 1), 'Tester');
end.
^ I'm liking this code, however my T2DPointArray only debugs 1 item... I was intending for multiple items, as in 28 items in the Debug ATPA :/
I'm trying to make a T2DPointArray for the black outline of dots in my inventory. So if I wanted slots 1 to 10, I'd get a tpa of the black outline for each slot and then a T2DPointArray for the black outline of those slots from 1 to 10.
I can't seem to get a desired result for the function, and help/advice/input would be much appreciated.
Ideally I'm trying to get this result, then compare it to a predefined T2DPointArray to use as one of multiple checks for inventory items.
Cheers,
Lj