Simba Code:
function RecordInvItem(var Obj: MSObject; TPA: TPointArray): Boolean;
var
i: Integer;
begin
for i := 1 to 28 do
if ExistsItem(i) then
begin
MMouseItem(i);
if WaitUpTextMulti(Obj.Uptext, 150 + random(100)) then
begin
SetLength(TPA, Length(TPA) + 1);
GetMousePos(TPA[High(TPA)].x, TPA[High(TPA)].y);
Result := True;
end;
end;
end;
How can I make this work currently it doesnt assign any values to the TPA 
Edit: Currently gives an empty TPA even when the uptext worked so its definately just the recording of the Co-ords.