caused
2009-06-04 23:28:07
Hey Forum,
Scar is amazing. I accidently stumbled over it, while searchig for software to automatize setup processes… But quickly found its "use" for runescape ;)..
soo… Heres my first script.. It's supposed to catch lobster in Catherby and Bank it.
I mangaged to do 3 loads in 30 minutes with it…
This doesnt use the "SRL" library at all… so.. probably its easily detectable.. i dunno …
Gotta check Out SRL now : D.
Feedback is welcome. I'd recommend to use it not with official runescape servers…
Oh.. and I didnt remove all the debugging commandline messages yet :X.
Scar is amazing. I accidently stumbled over it, while searchig for software to automatize setup processes… But quickly found its "use" for runescape ;)..
soo… Heres my first script.. It's supposed to catch lobster in Catherby and Bank it.
I mangaged to do 3 loads in 30 minutes with it…
This doesnt use the "SRL" library at all… so.. probably its easily detectable.. i dunno …
Gotta check Out SRL now : D.
Feedback is welcome. I'd recommend to use it not with official runescape servers…
Oh.. and I didnt remove all the debugging commandline messages yet :X.
program script;
var
//declaring graphics
lob:integer;
lob2:integer;
drop:integer;
fish:integer;
flag:integer;
bank:integer;
usequick:integer;
depositall:integer;
procedure loadimages;
begin
depositall := BitmapFromString(156, 8, 'beNrtlssRwyAMROkk5b' +
'gBX9NXusUZM2FkaQWL8OcSjQ+YjyzvQ4J1ybullErjvS73P0Of9gK' +
'u/ap9WPt5fZ+0W2mfE//P7eQcO39GTynFU0yZ/60zbcBDTAMiP8I0' +
'Fh4jxdW5GWDaDv7P1JMiC7NLYv1ySKUbUyUysgBTWYTlkKp47VdP/' +
'4Yr6EEO1VHeCVjbk0WdXDP91bw8hZQbM2NMPaD2nIWwyPT3XEEiQJ' +
'9jf9ez/CNGlpm2l4ZdBMnYWbUXolHJomQsAg4x7baZ7JPf6nomZZH' +
'1Lcy0Ahq90lx3njaSxcoFcc8zBfr4JQLuOs8bU3v5PdCRdHD+DXck' +
'BorcBhcxZa5wtkpj+hukMkES');
usequick := BitmapFromString(87, 7, 'beNrtVMsVwCAIY7su4LX7j' +
'2E/B6XERPTcPg68CAhpsBy1VjM7y+M0f9Wmuffhe27BX79oP1f3/5' +
'NQ3WfW63t8GIz4nRvw0Hyz70UdZ/FIgojXoFBC6N9zgjjOy5jE5kP' +
'/Gsd5h0xmimjxsHUIPz3ENBI8zhjQ64AiGc7l8aGWsHiSAUaCHpb5' +
'bBeSfU5jkruDCtl7GLd9/SZkBkz6bKeYQpRdKlkouA==');
lob := BitmapFromString(8, 7, 'beNozFck0E7WW50k1FQGiAiuxage' +
'JOifJDndpPl5eXw1+oCBQAUQcKAhEsYZCkXpCQEFk8al+ckDBEhtx' +
'uLi5DDdQnIGBEcgFqml1lcqxEAOKA42FIKBioGC/l8wMfzmgMk81v' +
'kAtAYjJmIKpAJUbJNQ=');
lob2 := BitmapFromString(8, 7, 'beNozFck0E7WW50k1FQGiAiuxage' +
'JOifJDndpPl5eXw1+oCBQAUQcKAhEsYZCkXpCQEFk8al+ckDBEhtx' +
'uLi5DDdQnIGBEcgFqml1lcqxEAOKA42FIKBioGC/l8wMfzmgMk81v' +
'kAtAYjJmIKpAJUbJNQ=');
drop := BitmapFromString(29, 7, 'beNpjYPgPBgwMDLEh7hA2kEE5w' +
'jQWwqaRsf+RAJpiTE9hihM0lgEMkGWBAKsJyOL4jYWbSYxKZDYxig' +
'eLsQBOR0Zl');
fish := BitmapFromString(9, 5, 'beNrL/3uABkD50H8g4s9HMRzIhQ' +
'jCEUIKAEF8Xso=');
flag := BitmapFromString(5, 4, 'beNrT0/ujwAxBt5mY9PSwcIEMIN' +
'oP5kLYtYyMQLYeADz1EQg=');
bank := BitmapFromString(5, 5, 'beNoLYmFgYERGBw4c2DbHFoLg7K' +
'/f5sMFgWxklBDEAiETAFhgJOY=');
end;
function findfish():boolean;
var
x,y:integer;
begin
wait(44);
if(FindBitmapToleranceIn(fish,x,y,0,0,830,860,30)) then
begin
Writeln('Found Fish Symbol');
ClickMouse(x,y,True);
result:= True;
end;
end;
function findbank():boolean;
var
x,y:integer;
begin
wait(44);
if(FindColorTolerance(x,y,12105921,538,11,729,163,10)) then
begin
Writeln('Found Bank Symbol');
MoveMouseSmooth(x,y);
result:=True;
end;
end;
procedure Fishing;
var
x,y:integer;
water:boolean;
begin
water := False;
while(water = False) do
begin
wait(44);
if(FindColorTolerance(x,y,12301745,0,0,800,800,1)) then
begin
writeln('fishing spot found');
MoveMouseSmooth(x,y);
ClickMouse(x,y,True);
water := True;
wait(15000);
end else
writeln('no fishing spot found');
end;
end;
procedure dropping;
var
x,y:integer;
begin
while(FindBitmapToleranceIn(lob,x,y,0,0,800,800,20))do
begin
if(FindBitmapToleranceIn(lob,x,y,0,0,800,800,20))then
begin
ClickMouse(x,y,False);
wait(800);
if(FindBitmapToleranceIn(drop,x,y,0,0,800,800,20))then
ClickMouse(x,y,True);
wait(1000);
end;
end;
end;
function invcheck():integer;
var
x,y:integer;
x1,y1:integer;
x2,y2:integer;
mwillow:integer;
begin
x1:=538;
y1:=202;
x2:=800;
y2:=800;
mwillow :=0;
while(FindBitmapToleranceIn(lob2,x,y,x1,y1,x2,y2,5))do
begin
x1 := 538;
while(x1<=x2)do
begin
if(FindBitmapToleranceIn(lob2,x,y,x1,y1,x2,y2,5))then
begin
// Found Bitmap
x1 := x+1;
mwillow := mwillow + 1;
writeln('There are'+inttostr(mwillow)+'lobsters found');
writeln('x1='+inttostr(x1));
MoveMouseSmooth(x,y);
wait(50);
end else
//WriteLn('Bitmap not found.');
x1 :=900;
y1 := y1+1;
end;
x1 := 0;
y1 := y+1;
end;
if(mwillow >= 10)then
begin
// walktobank;
//dropping;
end;
Result := mwillow;
end;
function walktobank():boolean;
var
x,y:integer;
begin
//walk to the bank
repeat
while(findbank()=false)do
begin
ClickMouse(566,71,True);
wait(500);
end;
//enter bank
If(findbank()=true)then
begin
wait(500);
FindColorTolerance(x,y,12105921,538,11,729,163,10 );
ClickMouse(x,y,True);
Writeln('We are entering the bank');
wait(500);
FindColorTolerance(x,y,12105921,538,11,729,163,10);
ClickMouse(x,y,True);
wait(500);
Result := True;
end;
until((findbank()=true));
end;
function walktofish():boolean;
var
x,y:integer;
begin
//walk to the fishing spot
while(findfish()=false)do
begin
ClickMouse(695,95,True);
wait(500);
end;
//enter fishing spot
If(findfish()=true)then
begin
ClickMouse(x,y,True);
Writeln('We are at the fishing localtion');
Result := True;
end;
end;
procedure deposit;
var
x,y:integer;
begin
wait(5000);
while(invcheck() > 5)do
begin
FindColor(x,y,6788040,0,0,800,800);
ClickMouse(x,y,False);
wait(1000);
//open bank:
if(FindBitmapToleranceIn(usequick,x,y,0,0,800,800,20)) then
begin
wait(200);
ClickMouse(x,y,True);
wait(2200);
while(invcheck() > 5) do
begin
FindBitmapToleranceIn(lob,x,y,538,202,800,800,20);
wait(200);
ClickMouse(x,y,False);
wait(2200)
FindBitmapToleranceIn(depositall,x,y,408,202,800,800,20);
wait(200);
ClickMouse(x,y,True);
wait(2200)
writeln('Done Banking');
end;
end;
end;
end;
procedure banking;
begin
if(invcheck() >= 27) then
begin
walktobank();
deposit();
walktofish();
end;
end;
begin
loadimages;
repeat
banking();
Fishing();
until(false)
end.