Leyser
2012-05-26 11:27:29
Ok, so I have a Willow Chopper and I have pixel shift in it, but it doesent seem to stop when it is chopping?
Here is my script and where I put my things:.
Here is my script and where I put my things:.
program LeyserChopper;
{$DEFINE SMART}
{$i srl/srl.simba}
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
end;
function IsWoodcutting: Boolean;
var
PBox: TBox;
begin
PBox := IntToBox(245, 130, 285, 195);
Result := (AveragePixelShift(PBox, 250, 5000) > 680);
end;
procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
FindNormalRandoms;
case Random(8) of
0:
begin
HoverSkill('Woodcutting', false);
wait(500+Random(250));
end;
10:
begin
PickUpMouse;
Wait(1245+Random(400));
end;
20: begin
SetAngle(1);
Wait(1245+Random(400));
end;
30: begin
RandomRClick;
Wait(1245+Random(400));
end;
40: begin
ExitSquealOfFortune;
Wait(1245+Random(400));
end;
50: begin
FindSpinTicket;
Wait(1245+Random(400));
end;
60: begin
BoredHuman;
Wait(1245+Random(400));
end;
70: begin
WriteLn('Bored...');
Wait(1245+Random(400));
end;
80:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
FindNormalRandoms;
end;
end;
end;
procedure ChopTree;
var x, y: integer;
begin
repeat
FindNormalRandoms;
if FindObj(x, y, 'illow', 3030076, 35) then
if FindObj(x, y, 'illow', 3292993, 35) then
if FindObj(x, y, 'hop', 3425092, 35) then
if FindObj(x, y, 'hop', 3161918, 35) then
begin
Mouse(x, y, 5, 5, 1);
Wait(1234+random(1222));
end;
wait(400+random(250));
AntiBan;
Wait(402+random(110));
until(InvFull)
if (InvFull) then
begin
DropAllExcept([1]);
end;
end;
begin
SetUpSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer;
repeat
ChopTree;
While IsWoodcutting Do Wait(200+Random(50)); //Where the Pixel Shift takes place
until(False)
end.