Could someone please help or point me in the right direction as too how i extract information from portals in the pest control mini-game
Code:
{$DEFINE SMART}
{$i Reflection/Reflection.Simba}
procedure debugit;
var
ParentWidget, ChildWidget: TReflectWidget;
I, J, S, ChildWidth: Integer;
begin
Reflect.Setup;
for I := 0 to 1000 do
for J := 0 to 1000 do
begin
if (not ParentWidget.Exists(I, J)) then
Continue;
ParentWidget.GetWidget(I, J);
if (not ParentWidget.HasChild) then
begin
Writeln('Parent => ' + ToStr(I) + ', ' + 'Child => ' + ToStR(J) + ' => ' + 'Text => ' + ParentWidget.GetText);
ParentWidget.Free;
Continue;
end;
ChildWidth := Reflect.Smart.GetArraySize(ParentWidget.Reference, Widget_Children, 0);
for S := 0 to ChildWidth do
begin
ChildWidget.GetChild(ParentWidget, S);
Writeln('Parent => ' + ToStr(I) + ', ' + 'Child => ' + ToStR(J) + ' => ' + ' ChildWidget => ' + ToStr(S) + ' => ' + 'Text => ' + ChildWidget.GetText);
ChildWidget.Free;
end;
ParentWidget.Free;
end;
end;
begin
debugit;
wait(1000);
end
I have used the debug; but it only outputs - > Parent => 162, Child => 43 => ChildWidget => 0 => Text => The yellow, south-eastern portal shield has dropped!
Which is in regards to text.
I was wondering if health and portal (shield) status could be extracted?