barbarianl3t
2008-10-05 19:54:30
Ok this is my first script. I tried to also have it pick up the feathers but i have trouble with btms.
Please leave constructive critisim + proggies
Please don't leave mean comments
All help to make it better would be appreciated.
Please leave constructive critisim + proggies
Please don't leave mean comments
All help to make it better would be appreciated.
program barbarianl3tschickenkiller;
{.include SRL/SRL.Scar}
var
timesdone:Integer;
const
whitechickencolor=7114401; //change to any part of the white chicken
brownchickencolor=3430514;//change to any part of the brown chicken
feathercolor=402948;//Try to get the black part of the feather because black is uncommon in rs
AveradgeTimeToKillAChickenInSeconds=16;//Change this to however long it takes you to kill a chicken in seconds
YourName='Alphaeater';//your username
YourPassword='yhnyhn';//your password
Numberofsets=10;
procedure login;
begin;
Mouse(325,260,20,10,true);
Wait(100 + random(300));
TypeSend(YourName);
Wait(500 + random(200));
TypeSend(YourPassword);
Wait(250 + random(300));
Mouse(382,365,10,10,true);
Wait(4000+random(200));
Mouse(369,354,0,0,true);
Wait(3000);
end;
procedure killchickens;
var
x,y,whitechickenfound:integer;
begin;
whitechickenfound:=0;
FindColorSpiral(x,y,whitechickencolor,0,0,600,600);
if x=0 then FindColorSpiral(x,y,brownchickencolor,0,0,600,600);
if x=0 then Exit;
Mouse(x,y,3,3,true);
Wait(AveradgeTimeToKillAChickenInSeconds*1000+random(800));
Wait(1000);
end;
Procedure pickupfeathers;
var
x,y:Integer;
begin;
FindColor(x,y,feathercolor,30,30,480,300);
if x=0 then x:=20;
if y=0 then y:=20;
Mouse(x,y,1,1,false);
Wait(50+random(150));
TextCoords(1);
Wait(200+random(50));
Mouse(x,y,1,1,true)
Wait(6000);
end;
begin
MouseSpeed:=15;
TimesDone:=0;
if not LoggedIn then login;
repeat
killchickens;
timesdone:=timesdone+1;
pickupfeathers;
ClearDebug;
Writeln('Chickens attacked' + IntToStr(timesdone));
until(timesdone>numberofsets)
end.Currently I can't click the menu. I right click the feather but don't click on the menu.