sipfer3
2014-10-08 15:45:38
hello guys,
so i am currently strugling with finding an ladder in an wooden room.
This is the procedure im using (thanks to major nad his guide at this point ;) )
sadly the area where the ladder is, is the same color like the floor and the walls, so the procedure will give around 100-200 results. It is working, but it takes time, so it looks REALLY bot like. I was just wondering if theres any chance some on could help me? :P
thanks
sipfer
so i am currently strugling with finding an ladder in an wooden room.
This is the procedure im using (thanks to major nad his guide at this point ;) )
procedure findLadderDown();
var
x, y, i: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
failTimer: TTimeMarker;
begin
if not isLoggedIn() then
exit;
repeat
findColorsSpiralTolerance(x, y, TPA, 1848902, mainScreen.getBounds(), 12, colorSetting(2, 0.11, 0.30));
if (Length(TPA) < 1) then
exit;
ATPA := TPA.toATPA(3, 3);
ATPA.sortFromMidPoint(mainscreen.playerPoint);
smartImage.debugATPA(ATPA);
for i := 0 to high(ATPA) do
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['limb Ladder'], 500) then
begin
failTimer.start();
fastClick(MOUSE_RIGHT);
wait(randomRange(1000,1500));
chooseOption.select(['limb-down', 'adder']);
wait(randomRange(3500,4000));
sendKeys('2', 50, 50);
repeat
wait(100);
until((isDown = true) or (failTimer.getTIme() > 15000));
exit;
break;
end;
end;
until(isDown = true);
end;
sadly the area where the ladder is, is the same color like the floor and the walls, so the procedure will give around 100-200 results. It is working, but it takes time, so it looks REALLY bot like. I was just wondering if theres any chance some on could help me? :P
thanks
sipfer