Simba Code:
procedure clickWisp();
var
x, y, i, w, h: integer;
TPA, riftTPA: TPointArray;
ATPA, riftATPA: T2DPointArray;
begin
if findColorsSpiralTolerance(x, y, TPA, divSetting.wispCol, mainScreen.getBounds, divSetting.wispTol, colorSetting(2, divSetting.wispHue, divSetting.wispSat)) then
begin
ATPA := SplitTPA(TPA, 20);
if (findColorsSpiralTolerance(x, y, riftTPA, divSetting.riftCol, mainScreen.getBounds, divSetting.riftTol, colorSetting(2, divSetting.riftHue, divSetting.riftSat))) or (findColorsSpiralTolerance(x, y, riftTPA, divSetting.blueRiftCol, mainScreen.getBounds, divSetting.blueRiftTol, colorSetting(2, divSetting.blueRiftHue, divSetting.blueRiftSat))) then
begin
riftATPA := SplitTPA(riftTPA, 20);
SortATPASize(riftATPA, true);
if debugMyATPA = True then
smartImage.debugATPA(riftATPA);
for i := 0 to high(ATPA) do
begin
if distance(ATPA[i].getBounds.getMiddle, riftATPA[0].getBounds.getMiddle) < 120 then
ATPA.deleteIndex(i);
end;
end;
if length(ATPA) < 1 then
begin
walkTo('wisp');
Exit;
end;
ATPA.sortFromFirstPoint(mainScreen.getCenterPoint);
if debugMyATPA = True then
smartImage.debugATPA(ATPA);
case random(1000) of
0..621: instaMouse(Point((ATPA[0].getBounds.getMiddle.X)+Random(Round(-0.30*(ATPA[0].getBounds.getWidth)/2), Round(0.30*(ATPA[0].getBounds.getWidth)/2)), (ATPA[0].getBounds.getMiddle.Y)+Random(Round(-0.30*(ATPA[0].getBounds.getHeight)/2), Round(0.30*(ATPA[0].getBounds.getHeight)/2))), MOUSE_MOVE);
622..823:
begin
if length(ATPA) > 1 then //2,3,4...
begin
instaMouse(Point((ATPA[1].getBounds.getMiddle.X)+Random(Round(-0.30*(ATPA[1].getBounds.getWidth)/2), Round(0.30*(ATPA[1].getBounds.getWidth)/2)), (ATPA[1].getBounds.getMiddle.Y)+Random(Round(-0.30*(ATPA[1].getBounds.getHeight)/2), Round(0.30*(ATPA[1].getBounds.getHeight)/2))), MOUSE_MOVE);
end else
instaMouse(Point((ATPA[0].getBounds.getMiddle.X)+Random(Round(-0.30*(ATPA[0].getBounds.getWidth)/2), Round(0.30*(ATPA[0].getBounds.getWidth)/2)), (ATPA[0].getBounds.getMiddle.Y)+Random(Round(-0.30*(ATPA[0].getBounds.getHeight)/2), Round(0.30*(ATPA[0].getBounds.getHeight)/2))), MOUSE_MOVE);
end;
824..999:
begin
if length(ATPA) > 2 then //3,4,5...
begin
instaMouse(Point((ATPA[2].getBounds.getMiddle.X)+Random(Round(-0.30*(ATPA[2].getBounds.getWidth)/2), Round(0.30*(ATPA[2].getBounds.getWidth)/2)), (ATPA[2].getBounds.getMiddle.Y)+Random(Round(-0.30*(ATPA[2].getBounds.getHeight)/2), Round(0.30*(ATPA[2].getBounds.getHeight)/2))), MOUSE_MOVE);
end else
instaMouse(Point((ATPA[0].getBounds.getMiddle.X)+Random(Round(-0.30*(ATPA[0].getBounds.getWidth)/2), Round(0.30*(ATPA[0].getBounds.getWidth)/2)), (ATPA[0].getBounds.getMiddle.Y)+Random(Round(-0.30*(ATPA[0].getBounds.getHeight)/2), Round(0.30*(ATPA[0].getBounds.getHeight)/2))), MOUSE_MOVE);
end;
end;
if isMouseOverText(divSetting.wispUpText) then
begin
case random(1000) of
0..764:
begin
fastClick(mouse_Left);
if didRedClick() then
afterClick();
end;
765..974:
begin
fastClick(mouse_Right);
Wait(RandomRange(45, 148));
if chooseOption.Select(divSetting.wispUpText) then
afterClick();
end;
975..999:
begin
fastClick(mouse_Right);
Wait(RandomRange(45, 148));
if chooseOption.Select(['alk here']) then
waitMissClick();
end;
end;
end else
walkTo('wisp');
end else
walkTo('wisp');
end;
procedure clickRift();
var
x, y, tries: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
if (findColorsSpiralTolerance(x, y, TPA, divSetting.RiftCol, mainScreen.getBounds, divSetting.RiftTol, colorSetting(2, divSetting.RiftHue, divSetting.RiftSat))) or (findColorsSpiralTolerance(x, y, TPA, divSetting.blueRiftCol, mainScreen.getBounds, divSetting.blueRiftTol, colorSetting(2, divSetting.blueRiftHue, divSetting.blueRiftSat))) then
begin
ATPA := SplitTPA(TPA, 20);
SortATPASize(ATPA, true);
if debugMyATPA = True then
smartImage.debugATPA(ATPA);
if length(ATPA) > 0 then
instaMouse(Point((ATPA[0].getBounds.getMiddle.X)+Random(Round(-0.30*(ATPA[0].getBounds.getWidth)/2), Round(0.30*(ATPA[0].getBounds.getWidth)/2)), (ATPA[0].getBounds.getMiddle.Y)+Random(Round(-0.30*(ATPA[0].getBounds.getHeight)/2), Round(0.30*(ATPA[0].getBounds.getHeight)/2))), MOUSE_MOVE);
if isMouseOverText(divSetting.riftUpText) then
begin
fastClick(mouse_Right);
Wait(RandomRange(45, 148));
case convertTo of
'exp':
begin
case Random(1000) of
0..950:
begin
if chooseOption.select(['o experience']) then
afterClick();
end;
951..975:
begin
if chooseOption.select(['o energy']) then
waitMissClick();
end;
976..999:
begin
if chooseOption.select(['nhanced experience']) then
waitMissClick();
end;
end;
end;
'energy':
begin
case Random(1000) of
0..975:
begin
if chooseOption.select(['o energy']) then
afterClick();
end;
976..999:
begin
if chooseOption.select(['o experience']) then
waitMissClick();
end;
end;
end;
end;
end else
walkTo('rift');
end else
walkTo('rift');
end;