Clutch
2015-03-12 23:48:41
Not sure exactly what else to say. I've created over 50 accounts testing this and can't get it to be flawless. Any suggestions on a failsafe to detect if the lodestones actually been unlocked? Right now I'm still testing to try and get the ATPA to pick up 100% of the time but due to them being a one chance type of thing it takes an extremely long time…
Above is one of my lodestones that NEVER misses. I have 3 of them that will miss fairly often though either on the right-click or the left click to select option. I've altered filter and TPA box above (that picks up how big it needs to be) and the settings that they are at are pretty much as close as I can get it so that it can at least pick up the TPA boxes at all times. (Yes, I've checked colors, went through all F2p worlds 3-44 and got ~10-14 different colors on each). Basically I just need a failsafe so that when it right-clicks when it picks up active lodestone that it will loop through the process again until the lodestones been activated. I have no idea what the code would be to make the check that it's been activated though.
procedure ULumToAl;
begin
repeat
findColorsSpiralTolerance(x, y, TPA, 7511227, mainScreen.getBounds(), 2, colorSetting(2, 0.21, 1.72));
if (Length(TPA) < 1) then
exit;
ATPA := TPA.toATPA(30, 30);
ATPA.filterBetween(0, 10);
ATPA.sortFromMidPoint(mainscreen.playerPoint);
smartImage.debugATPA(ATPA);
for i := 0 to high(ATPA) do
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['harid', 'lodesto'], 500) then
begin
fastClick(MOUSE_RIGHT);
begin
chooseOption.select(['Activate Al Kharid lodestone'], 500);
writeLn('Al Kharid Lodestone Unlocked');
smartImage.clear;
break;
end;
end;
end;
until
UnlockTimer.getTime() >10000;
wait(randomRange(3000,3500));
mouse(point(288,211),MOUSE_LEFT)Above is one of my lodestones that NEVER misses. I have 3 of them that will miss fairly often though either on the right-click or the left click to select option. I've altered filter and TPA box above (that picks up how big it needs to be) and the settings that they are at are pretty much as close as I can get it so that it can at least pick up the TPA boxes at all times. (Yes, I've checked colors, went through all F2p worlds 3-44 and got ~10-14 different colors on each). Basically I just need a failsafe so that when it right-clicks when it picks up active lodestone that it will loop through the process again until the lodestones been activated. I have no idea what the code would be to make the check that it's been activated though.