Simba Code:
function findNest(): Boolean;
var
nestTextDTM, x, y, i: Integer;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
if not isLoggedIn() then
exit();
nestTextDTM := DTMFromString('mFQEAAHicnc29CoJgFMbx57ziECm6hJRjbU1NCVpWQ5uX4sV2KdkUBPpPXgfHOvDjfDzDiSXtnLTHAUdccEeDDDlifEx6wTHXKHHFye/TfEOFs7+VPo82W/X8ewTh2L86c3qb6YliESlcJupcMGZtutKa/iv7w6wGWYgSbg==');
if findDTM(nestTextDTM, x, y, chatBox.getBounds()) then
begin
if findColorsSpiralTolerance(x, y, TPA, 3099216, mainScreen.getBounds(), 7, colorSetting(2, 0.34, 1.21)) or //Bird's Nest color
findColorsSpiralTolerance(x, y, TPA, 15774489, mainScreen.getBounds(), 10, colorSetting(2, 0.02, 1.23)) then //Geode Color
begin
if (length(TPA) < 1) then
exit();
ATPA := TPA.toATPA(30, 30);
ATPA.filterBetween(0,200);
if length(ATPA) < 1 then
exit();
ATPA.sortFromMidPoint(mainscreen.playerPoint);
smartImage.debugATPA(ATPA)
for i := 0 to high(ATPA) do
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['Take Bird', 'Take Crystal'], 1000) then
begin
fastClick(MOUSE_LEFT);
break();
end;
end;
end else
writeLn('Found text but didn''t find any colours');
end;
freeDTMs([nestTextDTM]);
end;