Simba Code:
//Returns whether orbs are enabled.
Function ReturnOrbs: Boolean;
begin
Result := (CountColorTolerance(4871261, 571, 101, 572, 102, 10) > 1);
//Could use GetColor, but the tolerance is important in case of any changes
end;
//Function modified to work with new UI update.
function SetOrbs(State: Boolean): Boolean;
var
CCount: Integer;
begin
Result := False;
if (GameTab(tab_Options)) then
begin
CCount := CountColorTolerance(2369440, 623, 374, 660, 406, 20);
if (State) then
begin
if (CCount<2) then
MouseBox(623, 374, 660, 406, mouse_left);
Result := True;
end else
begin
if (CCount>2) then
MouseBox(623, 374, 660, 406, mouse_left);
Result := True;
end;
end;
end;
Started writing a new script and came up with this. Quick update to the coordinates in SetOrbs and a ReturnOrbs function that returns True if minimap orbs are enabled. There are also duplicate functions that do the same thing (toggleDataOrbs and SetOrbs). (Whoever added these functions didn't credit Flight and put them in mapwalking instead of gametab.)