souppy
2007-12-06 17:16:46
Hello, I have just created my second script.
It is an auto hunter.
Could someone test it for me ?
Can't Open Scar right now, and I had it saved somewhere where I cannot open it to test it.
It is an auto hunter.
//This is my second script ever
//It will trap birds in the Jungle Hunting Are
//This hunt area is South of Feldip Hills
//Start the script in the area where the "Tropical Wagtails" are flying
program hunting;
{.include SRL/SRL.scar}
var
x,y:integer;
s:integer;
t:integer;
d:integer;
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);1
CurrentPlayer := 0;
Players[0].Name := 'username';
Players[0].Pass := 'password';
Players[0].Nick := 'nickname'; //3 letter from your username, No spaces
Players[0].Active :=True;
Players[1].Name := 'username';
Players[1].Pass := 'password';
Players[1].Nick := 'nickname'; //3 letter from your username, No spaces
Players[1].Active :=False;
NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick, UpChars);
end;
procedure clicktrap;
begin
s:=0;
while(s<20)do
begin
s:=s+1;
if FindColorTolerance5(x,y,6130254) then
begin
MMouse(x,y,2,2)
wait(500)
if(IsUpText('snare'))then
begin
s:=21;
Mouse(x,y,2,2,true)
wait(5500)
FindNormalRandoms;
end;
end;
end;
end;
procedure waittrap;
begin
Mouse(149, 253,1,1,true)
wait(600)
flag;
wait(600)
MMouse(382, 101,0,0)
wait(500+random200)
if IsUpText('3 more options')then
begin
repeat
FindNormalRandoms;
wait(3000)
until(IsUpText('2 more options'))
begin
GetMousePos(x,y)
Mouse(x,y,2,2,true)
wait(3500)
Mouse(290,170,2,2,true)
flag;
wait(2000)
end;
end;
end;
procedure DropItems;
begin
d:=0
begin
while(d<27)do
begin
d:=d+1
if FindColorTolerance5(x,y,8816809,787,14813360) then
begin
MMouse(x,y,2,2)
if(IsUpText('bird meat'))then
begin
FindNormalRandoms;
Mouse(x,y,2,2,false)
ChooseOption('Drop')
end;
end;
end;
end;
end;
procedure main;
begin
t:=0
begin
while(t<5)do
begin
t:=t+1
clicktrap;
waittrap;
end;
end;
end;
procedure report;
begin
WriteLn('Welcome to Souppy''s Hunter')
WriteLn('So far you have:')
WriteLn('Attempted to trap '+IntToStr(t)+ ' birds')
WriteLn('and worked for ' + TimeRunning)
SRLRandomsReport;
wait(357)
SendSRLReport;
end;
Could someone test it for me ?
Can't Open Scar right now, and I had it saved somewhere where I cannot open it to test it.