ownedlikenoob
06-20-2011, 03:57 AM
Begin
repeat
If(FindObjCustom(x, y, ['Take','ke Li','e Lim','Limpwurt'], [7181217,7905970,7642284,8762566], 3)) or
(FindObjCustom(x, y, ['Take','ke Co','e Coi','Coins'], [1883881,1883367,1886712,1883881], 3)) then
Begin
Mouse(x,y,0,0,False);
Wait(300);
end;
if(FindBitmapToleranceIn(takelimps, X, Y, 0, 0, 515, 336, 30)) or
(FindBitmapToleranceIn(takecoins, X, Y, 0, 0, 515, 336, 30)) then
Begin
Mouse(x,y,0,0,True);
WriteLn('Found item, looting');
end;
until(Not(FindObjCustom(x, y, ['Take','ke Li','e Lim','Limpwurt'], [7181217,7905970,7642284,8762566], 3))) and
(Not(FindObjCustom(x, y, ['Take','ke Co','e Coi','Coins'], [1883881,1883367,1886712,1883881], 3)));
end;
It returns this: Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
What is going on? Been trying to figure this out for an hour now...
repeat
If(FindObjCustom(x, y, ['Take','ke Li','e Lim','Limpwurt'], [7181217,7905970,7642284,8762566], 3)) or
(FindObjCustom(x, y, ['Take','ke Co','e Coi','Coins'], [1883881,1883367,1886712,1883881], 3)) then
Begin
Mouse(x,y,0,0,False);
Wait(300);
end;
if(FindBitmapToleranceIn(takelimps, X, Y, 0, 0, 515, 336, 30)) or
(FindBitmapToleranceIn(takecoins, X, Y, 0, 0, 515, 336, 30)) then
Begin
Mouse(x,y,0,0,True);
WriteLn('Found item, looting');
end;
until(Not(FindObjCustom(x, y, ['Take','ke Li','e Lim','Limpwurt'], [7181217,7905970,7642284,8762566], 3))) and
(Not(FindObjCustom(x, y, ['Take','ke Co','e Coi','Coins'], [1883881,1883367,1886712,1883881], 3)));
end;
It returns this: Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
What is going on? Been trying to figure this out for an hour now...