Renzanity
2015-03-05 02:35:03
Contents of this thread is now moved to https://villavu.com/forum/showthread.php?t=112225&p=1333647#post1333647 thank you. v2.1 released!
2015-03-05 02:35:03
2015-03-06 07:30:50
//Filling the jugs with water
procedure fillingJugs();
var
x, y, i: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
begin
findColorsSpiralTolerance(x, y, TPA, 9477264, mainScreen.getBounds(), 21, colorSetting(2, 1.06, 0.21));
if length(TPA) < 1 then
exit;
ATPA := TPA.toATPA(60, 60);
ATPA.sortFromMidPoint(mainscreen.playerPoint);
for i := 0 to high(ATPA) do
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['emorial'], 500) then
begin
fastClick(MOUSE_LEFT);
pressKey(VK_SPACE);
wait(randomRange(18000, 19000));
end;
end;
end;
smartImage.clear;
end;
2015-03-06 23:37:51
From: renzanity
Currently working on the TPA for filling jugs and here's what I got so far. It's doing its job, but it's still hovering over other points in the mainscreen, can anyone give me tips on how I could fix this?
Thanks in advance!
2015-03-07 02:26:32
From: Trollcrank
Try lowering the tolerance, maybe around 10-16. Until it starts to work a little better. If it is still failing post back and I, or someone else, will teach you how to use a filter.