Lipcot
2014-08-30 00:39:15
So.. its been a long day and its 1:36 am, im really tired and was trying to finish my script.. but yeah, problems :duh:
Can you see ANYTHING wrong on those 2? because i cant.. (but my eyes are closing so..) The debug says nothing and just repeats:
'=*Loot Available: Looting*='
'=*Doing Fine*='
But doesent loot anything :( . I suppose its a problem with something outside these procedures? if you believe it is, ill post full script, but didnt want to bother you !
If you have read, thanks!
Can you see ANYTHING wrong on those 2? because i cant.. (but my eyes are closing so..) The debug says nothing and just repeats:
'=*Loot Available: Looting*='
'=*Doing Fine*='
But doesent loot anything :( . I suppose its a problem with something outside these procedures? if you believe it is, ill post full script, but didnt want to bother you !
If you have read, thanks!
function LootAvailable(): boolean;
var
x2, y2, i2: integer;
TPA2: TPointArray;
begin
if findColorsSpiralTolerance(x2, y2, TPA2, 2697773, mainScreen.getBounds(), 2, colorSetting(2, 2.09, 0.24)) then
begin
result := True;
writeLn('=*Loot Available: Looting*=');
end else
begin
result:= false;
writeLn('=*Loot Not Available*=');
end;
end;
procedure findLoot();
var
x, y, i: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
LootTimer: TTimeMarker;
begin
if not isLoggedIn() then
exit;
repeat
if lootavailable() then
begin
findColorsSpiralTolerance(x, y, TPA, 2697773, mainScreen.getBounds(), 2, colorSetting(2, 2.09, 0.24));
writeLn('=*Doing Fine*=');
// tar1 := getItemAmount(tabBackpack.getSlotBox(1));
if (Length(TPA) < 1) then
exit;
mouseSpeed := 20 + random(15);
ATPA := TPA.cluster(20);
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(['Take', 'ake'], 100) then
begin
fastClick(MOUSE_RIGHT);
wait(randomRange(100, 500));
chooseOption.select(['Swamp','Tar','wamp']);
wait(randomRange(800, 1200));
smartImage.clear();
break;
end;
end;
//
// Tar2 := getItemAmount(tabBackpack.getSlotBox(1));
// TarTotal := (Tar1-Tar2);
end;
until not LootAvailable(); //or (LootTimer.getTime() > 10000);
end;