i started to make a cow killer script once… got bored though! i had everything done, handle door and stuff.. check out if this works:
function lootavailable: boolean;
var
x, y, i : integer;
TPA: TPointArray;
ATPA : T2DPointArray;
begin
if findColorsSpiralTolerance(x, y, TPA, RawMeatColor, mainScreen.getBounds(), RawMeatTol, colorSetting(2, RawMeatHue, RawMeatSat)) then
begin
writeln('there is meat to loot');
result := true;
end else
begin
writeln('No meat to loot');
result := false;
end;
end;
Procedure Loot();
var
x, y, x2, y2, i, x3, y3: integer;
TPA, TPA2, TPA3, TPA4, TPA5: TPointArray;
ATPA, ATPA2, ATPA3, ATPA4: T2DPointArray;
CombatTimer: TTimeMarker;
begin
if not isLoggedIn() then
exit;
//CurrentStatus := ('Status: Looting');
mouseSpeed := 30 + random(10);
CombatTimer.start();
mainScreen.setAngle(MS_ANGLE_HIGH);
//progressreport;
//paintonsmart;
{-----Failsafe-----}
{------------------}
repeat
if notmoving and lootavailable then
begin
findColorsSpiralTolerance(x, y, TPA, RawMeatColor, mainScreen.getBounds(), RawMeatTol, colorSetting(2, RawMeatHue, RawMeatSat));
{ if (Length(TPA) < 1) then
begin
print('No Cows Here, Going To Center');
//sps.blindWalk(point(335, 244));
end; }
ATPA := tpa.toATPA(5, 10);
ATPA.sortFromMidPoint(mainscreen.playerPoint);
if DrawOnSmart then
smartImage.debugATPA(ATPA);
{-------------------AntiBan-----------------}
if random(100) = 4 then
begin
smallRandomMouse(500 + random(100));
end;
if random(100) = 5 then
begin
sleepAndMoveMouse(randomRange(750, 1000));
end;
{-------------------------------------------}
for i := 0 to HIGH(ATPA) do
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['eat', 'Raw', 'Meat', 'aw'], 200) then
begin
{-------------------AntiBan-----------------}
if gaussRangeInt(0,25) = 4 then
begin
wait(randomRange(100, 200));
fastClick(MOUSE_RIGHT);
chooseOption.select(['eat', 'Raw', 'Meat', 'aw']);
inc(toadspicked);
if DrawOnSmart then
smartImage.clear();
break;
end;
{-------------------------------------------}
fastClick(MOUSE_LEFT);
{-------------------AntiBan-----------------}
if random(10) = 4 then
smallRandomMouse(100 + random(150));
if random(200) = 4 then
antiban;
if random(200) = 4 then
fastClick(MOUSE_LEFT);
if random(10) = 5 then
sleepAndMoveMouse(randomRange(600, 900));
{-------------------------------------------}
if DrawOnSmart then
smartImage.clear;
break;
end;
end;
end;
wait(randomrange(1000, 2000));
if not notmoving then {this is my own procedure to check if im moving.. you can use minimap.waitplayermoving}
repeat
wait(500)
until notmoving;
until not lootavailable() or not isLoggedIn() or (CombatTimer.getTime() > 180000);
end;