SRL Archive - RS3 Outdated / Broken Scripts

Joelster134's and Phoenix13nl's Fisher/Banker (Draynor)


Phoenix13nl

2008-10-08 18:37:15

JOELSTER134 AND PHOENIX13NL PRESENT

Draynor fisher and banker v1.31

Uses Anti-Ban, Anti-Randoms (should now work better.) and ofcourse, it Fishes and Banks :D

If you would like us to keep updating this script please write tell us your problems/suggestions/ideas


Start somewhere between the Draynor bank and the fishingspots.

Also please rate thread/rep Joelster134 and me for updates

**Outdated, and No-longer Updated**
I was about halfway rewriting this, but i stopped (cant remember why.. :/) but anyway, im no longer doing scar, just C# programming. sorry for that people that were trying to use this after i stopped, it had alot of bugs.

Mr_Bum

2008-10-09 01:37:02

Works nice. Might need a bit of tweaking on finding the fishing spot. (right clicks on speach box?)
Maybe add a option for users with pins. Put SRL id into it.

-reserved for proggy-

joelster134

2008-10-09 02:22:45

Non-SMART updated…now has SRL id etc btw it had smartworld : string; in Non-smart script! also fixed :) please rep me aswell as poenix13nl! + rate thread thanks.


cant post in uploaded file so ill just copy and paste what i fixed here.
BTW click on speech box = Part of AntiBan


////////////////////////////////////////////////////////////////
// //
// ***** ***** ** ** ** *** ** **** ***** //
// ** ** ** ** ** * ** ** **** ** ** ** ** ** //
// ** ** ***** ****** *** ** **** ** ** ***** //
// ** ** ** ** ** ** ** ** *** ** ** ** ** //
// ***** ** ** ** ** ** ** ** **** ** **//
// //
// ***** ** **** ** ** ***** ***** //
// ** ** ** ** ** ** ** ** //
// ***** ** **** ******* ***** ***** //
// ** ** ** ** ** ** ** ** //
// ** ** **** ** ** ***** ** ** //
// //
// ** *** ** ***** //
// ** * **** ** ** ** //
// ****** ** **** ** ** //
// ** ** ** *** ** ** //
// ** ** ** ** ***** //
// //
// ***** ** *** ** ** ** ***** ***** //
// ** ** ** * **** ** ** ** ** ** ** //
// ***** ****** ** **** **** ***** ***** //
// ** ** ** ** ** *** ** ** ** ** ** //
// ***** ** ** ** ** ** ** ***** ** ** //
// //
////////////////////////////////////////////////////////////////
// Description //
////////////////////////////////////////////////////////////////
// //
// This is fisher will catch fish until the inventory is //
// full. After it filled the inventory with fish it will //
// walk to the bank and desposit it all. //
// This works for both net and bait fishing. //
// //
// It contains AntiRandom, AntiBan, and it will notice if //
// there is a whirlpool. //
// //
////////////////////////////////////////////////////////////////
// Instructions //
////////////////////////////////////////////////////////////////
// //
// MAKE SURE THAT YOU WILL... //
// Start in Draynor Village... with you fishing equipment //
// in you first slot of your inventory, and your bait (if //
// bait fishing) in the second one. //
// and that your inventory is not full, and that the //
// fishinggspot icon appears on the map. //
// //
// Write the data into the procedure of the DeclarePlayers //
// pocedure. further instrunctions out there. //
// //
////////////////////////////////////////////////////////////////
// Script created by: Phoenix13nl and Joelster134 //
////////////////////////////////////////////////////////////////

program DraynorFisherAndBanker;
{.include SRL/SRL.Scar}

const

//SRL STATS
YourID = 'blah'; // Your stats id here
YourPW = 'extra blah'; //Your stats pw here


var
x, y, LoopCount, FishCount, xf, yf : integer;
smartworld : string;

procedure DeclarePlayers;
begin
howmanyplayers:=1;
numberofplayers(howmanyplayers);
players[0].name:='WriteUsernameHere';
players[0].pass:='WritePasswordHere';
players[0].nick:='WriteNicknameHere'; //Just write 3-4 letters of your username, use correct capitals.
players[0].Integers[0]:=270; //Amount of fish to catch (About 27 fish per load of using net)
players[0].active:=true;
players[0].worked:=0;
end;

procedure AntiRandoms;
begin
if not(LoggedIn)then Exit;
if not findnormalrandoms then
begin
findtalk;
end;
if findfight=true then runaway('E',true,1,4000+random(2000));
end;

procedure AntiBan;
begin
if(not(LoggedIn))then Exit;
case random(4) of
0: PickUpMouse;
1: RandomMovement;
2: RandomRClick;
3: case random(4) of
0: HoverSkill('Fishing', false);
1: HoverSkill('Cooking', false);
2: HoverSkill('Woodcutting', false);
3: HoverSkill('Firemaking', false);
end;
end;
end;

procedure WalkFish;
begin
if not LoggedIn then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
if (InvFull = True) then exit;
wait(1500+random(500))
if(FindSymbol(x,y,'fish'))then
begin
writeln('Walking to fishing spot.');
AntiRandoms;
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(3000+random(1000))
Antiban;
AntiRandoms;
wait(2000+random(500))
end;
end;

Procedure CatchFish;
begin
if (InvFull = true) or (LoggedIn = false) then exit;
repeat
AntiRandoms;
AntiBan;
wait(500+random(500))
if not FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then exit;
repeat
wait(1500+random(500)) //Dont not remove/move this line! will slow down RS by searching the ObjCustom before being able to find.
if FindObjCustom(xf, yf, [], [10591393, 11052199], 3) then
begin
runaway('E',true,1,200+random(200));
writeln('Whirlpool spotted!')
wait(2000+random(500));
AntiRandoms;
AntiBan;
wait(7500+random(500));
end;
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then
begin
writeln('Net fishing spot spotted.');
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
if FindObjCustom(xf, yf, [], [10591393, 11052199], 3) then
begin
runaway('E',true,1,200+random(200));
writeln('Whirlpool spotted!')
wait(2000+random(500));
AntiRandoms;
AntiBan;
wait(7500+random(500));
end;
AntiRandoms;
AntiBan;
wait(3000+random(2500));
end;
until(InvFull = true);
until(InvFull = true);
FishCount:=FishCount+1;
MMouse(648,57,4,4);
wait(100+random(50));
Mouse(648,57,1,1,true);
wait(2000+random(1000))
end;

procedure WalkBank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
wait(1000+random(500))
if(FindSymbol(x,y,'bank'))then
begin
Writeln('Bank found.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(5000+random(1000));
AntiBan;
AntiRandoms;
wait(4500+random(1000));
end;
end;

procedure Bank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
repeat
if FindObjCustom(x, y, ['se Ba', 'ank b', 'oth'], [605264, 3685438, 2313826, 6192526], 3) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(1000+random(500))
if ChooseOption('se-q') then
begin
wait(3500+random(500));
deposit(3,28,true);
wait(1500+random(500));
MMouse(489,33,4,4);
wait(100+random(50));
Mouse(489,33,1,1,true);
wait(1500+random(500));
MMouse(609,129,4,4);
wait(100+random(50));
Mouse(609,129,1,1,true);
AntiBan;
wait(6000+random(2000));
end;
end;
until(InvFull = false)
end;

begin
cleardebug;
setupsrl;
lampskill:='fishing'; //Change into any skill... make sure its written corretly!
declareplayers;
currentplayer:=0;
logout;
closefile(rewritefile('C:\WINDOWS\.jagex_cache_32\uid.dat',true));
loginplayer;
Repeat
if not loggedin then exit;
WalkFish;
CatchFish;
WalkBank;
Bank;
if (InvFull = True) then break;
Cleardebug;
LoopCount:=LoopCount+1;
Writeln(IntToStr(LoopCount) + ' loops completed.');
Writeln('About ' + IntToStr(FishCount * 27) + ' out of ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' fish caught.');
Until(FishCount * 27>= Players[CurrentPlayer].Integers[0]);
logout;
end.

Phoenix13nl

2008-10-09 13:09:51

Updated the scripts to v1.1, very minor changes… Joelster134 added SRL stat things and removed a line that i forgot to, and Phoenix (me :P) included a line to type your pin in, and made some sort of Progressreport.

also updated my scriptpack, and im realy happy no one Downloaded the first one yet cuz i just noticed it contained a script which still had my pass in it… (the script pack for most part contains scripts made by me in like 5 minutes :P but also a pair of 'good' ones :P like this)

joelster134

2008-10-09 16:26:02

Thanks for updates :) will test new version now…fell asleep grrrrrr stupid alarm didn't go off at midnight :( :duh:


BTW fishing walk might be a bit to slow…so if youru sing nonsmart version click on WalkFish procedure then add in this


 begin
writeln('Walking to fishing spot.');
AntiRandoms;
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(3000+random(1000))
Antiban;
AntiRandoms;
wait(2000+random(5000))
end;
end;

instead of
 begin
writeln('Walking to fishing spot.');
AntiRandoms;
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(3000+random(1000))
Antiban;
AntiRandoms;
wait(2000+random(500))
end;
end;

Phoenix13nl

2008-10-10 02:55:31

v1.2 released, now runs to the fishingspot, and doesnt wait that long before fishing now, should also pick up fishing nets in sight. but beware, if there is a net which isnt in the first or second slot of inventory, ALL NETS WILL BE BANKED..

would the function: ArrangeInv; fix that? not sure waht it does…

joelster134

2008-10-10 08:49:31

Testing now…get home from school FAST lol…will post how it ran in 10-30mins :) sleep time till then yay! **note** putting alarm on extra loud!

i don't HATE smart as such..i just don't like it…i mean why auto when at computer? i thought point of it was to be AFK..anyways it can be debated…


Error btw (non smart) Failed when compiling
Line 244: [Error] (16266:11): Duplicate identifier 'BANK' in script C:\Documents and Settings\Joel\Desktop\Joels AUto FIshers\DraynorFisher[v1.2].scar

procedure Bank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
repeat
if FindObjCustom(x, y, ['se Ba', 'ank b', 'oth'], [605264, 3685438, 2313826, 6192526], 3) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(1000+random(500))
if ChooseOption('se-q') then
begin
wait(3500+random(500));
deposit(3,28,true);
wait(1500+random(500));
MMouse(489,33,4,4);
wait(100+random(50));
Mouse(489,33,1,1,true);
wait(1500+random(500));
MMouse(609,129,4,4);
wait(100+random(50));
Mouse(609,129,1,1,true);
AntiBan;
wait(6000+random(2000));
end;
end;
until(InvFull = false)
end;


delete this (one AFTER proggy) then it will run :)

joelster134

2008-10-10 09:17:05

###################################################################
Draynor Fisher v1.2
Ran for: 13 Minutes and 31 Seconds
Loads done: 1
Fish caught: 27 out of 54 fish caught.
###################################################################

first proggy yay me..

Phoenix13nl

2008-10-10 12:01:45

Impoved the netfinding procedure, script now notices if net is in (slot 1-4 of) inventory. and should pick it up when the net is in sight. (equipment should always be in first or second slot) also runs away now if HP<25%. (because low lvls will get attack by the mage.)

the script will only work for net now, if any one would like to have it able to fish with rod to, tell me and ill update.

Phoenix13nl

2008-10-10 13:31:10

From: joelster134
Testing now…get home from school FAST lol…will post how it ran in 10-30mins :) sleep time till then yay! **note** putting alarm on extra loud!

i don't HATE smart as such..i just don't like it…i mean why auto when at computer? i thought point of it was to be AFK..anyways it can be debated…


Error btw (non smart) Failed when compiling
Line 244: [Error] (16266:11): Duplicate identifier 'BANK' in script C:\Documents and Settings\Joel\Desktop\Joels AUto FIshers\DraynorFisher[v1.2].scar

procedure Bank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
repeat
if FindObjCustom(x, y, ['se Ba', 'ank b', 'oth'], [605264, 3685438, 2313826, 6192526], 3) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(1000+random(500))
if ChooseOption('se-q') then
begin
wait(3500+random(500));
deposit(3,28,true);
wait(1500+random(500));
MMouse(489,33,4,4);
wait(100+random(50));
Mouse(489,33,1,1,true);
wait(1500+random(500));
MMouse(609,129,4,4);
wait(100+random(50));
Mouse(609,129,1,1,true);
AntiBan;
wait(6000+random(2000));
end;
end;
until(InvFull = false)
end;


delete this (one AFTER proggy) then it will run :)


wow, thats an bad messy mistake lol, i forgot to overwrite the banking procedure so it had two, but its V1.25 now and fixed :)

Quickmarch

2008-10-10 14:57:08

###################################################################
Draynor Fisher v1.2
Ran for: 21 Minutes and 34 Seconds.
Loads done: 4
Fish caught: 108 out of 270 fish caught.
###################################################################


very nice script but i don't think it has FindNormalRandoms

joelster134

2008-10-10 15:53:28

I will try fix now :)

joelster134

2008-10-10 15:56:47

For NON SMART script try this now :) should have FindnormalRandoms; + got rid of Smart World S:string;




////////////////////////////////////////////////////////////////
// //
// ***** ***** ** ** ** *** ** **** ***** //
// ** ** ** ** ** * ** ** **** ** ** ** ** ** //
// ** ** ***** ****** *** ** **** ** ** ***** //
// ** ** ** ** ** ** ** ** *** ** ** ** ** //
// ***** ** ** ** ** ** ** ** **** ** **//
// //
// ***** ** **** ** ** ***** ***** //
// ** ** ** ** ** ** ** ** //
// ***** ** **** ******* ***** ***** //
// ** ** ** ** ** ** ** ** //
// ** ** **** ** ** ***** ** ** //
// //
// ** *** ** ***** //
// ** * **** ** ** ** //
// ****** ** **** ** ** //
// ** ** ** *** ** ** //
// ** ** ** ** ***** //
// //
// ***** ** *** ** ** ** ***** ***** //
// ** ** ** * **** ** ** ** ** ** ** //
// ***** ****** ** **** **** ***** ***** //
// ** ** ** ** ** *** ** ** ** ** ** //
// ***** ** ** ** ** ** ** ***** ** ** //
// //
////////////////////////////////////////////////////////////////
// Description //
////////////////////////////////////////////////////////////////
// //
// This is fisher will catch fish until the inventory is //
// full. After it filled the inventory with fish it will //
// walk to the bank and desposit it all. //
// This works for both net and bait fishing. //
// //
// It contains AntiRandom, AntiBan, and it will notice if //
// there is a whirlpool. //
// //
////////////////////////////////////////////////////////////////
// Instructions //
////////////////////////////////////////////////////////////////
// //
// MAKE SURE THAT YOU WILL... //
// Start in Draynor Village... with you fishing equipment //
// in you first slot of your inventory, and your bait (if //
// bait fishing) in the second one. //
// and that your inventory is not full, and that the //
// fishinggspot icon appears on the map. //
// //
// Write the data into the procedure of the DeclarePlayers //
// pocedure. further instrunctions out there. //
// //
////////////////////////////////////////////////////////////////
// Script created by: Phoenix13nl and Joelster134 //
////////////////////////////////////////////////////////////////

program DraynorFisherAndBanker;
{.include SRL/SRL.Scar}

var
x, y, LoopCount, FishCount, xf, yf, NetDTM : integer;


const

//SRL STATS
YourID = 'blah'; // Your stats id here
YourPW = 'extra blah'; //Your stats pw here

procedure DeclarePlayers;
begin
howmanyplayers:=1;
numberofplayers(howmanyplayers);
players[0].name:='WriteUsernameHere';
players[0].pass:='WritePasswordHere';
players[0].nick:='WriteNicknameHEre'; //Just write 3-4 letters of your username, use correct capitals.
players[0].pin :=''; //Leave blank if no pin.
players[0].Integers[0]:=270; //Amount of fish to catch (About 27 fish per load when using net)
players[0].active:=true;
players[0].worked:=0;
end;


procedure Init;
begin
NetDTM := DTMFromString('78DA63B465666078C0C8800A189148206D0D5' +
'47395801A5DA09A2704D47802D5DC25A0C68C0835CE40356F09A8' +
'7107AA798C5F0D0051850803');
end;

procedure AntiRandoms;
begin
FindNormalRandoms;
if not(LoggedIn)then Exit;
if not findnormalrandoms then
begin
findtalk;
end;
if findfight=true then runaway('E',true,1,4000+random(2000));
end;

procedure AntiBan;
begin
if(not(LoggedIn))then Exit;
case random(4) of
0: PickUpMouse;
1: RandomMovement;
2: RandomRClick;
3: case random(4) of
0: HoverSkill('Fishing', false);
1: HoverSkill('Cooking', false);
2: HoverSkill('Woodcutting', false);
3: HoverSkill('Firemaking', false);
end;
end;
end;

procedure WalkFish;
begin
if not LoggedIn then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
if (InvFull = True) then exit;
wait(1500+random(500))
if(FindSymbol(x,y,'fish'))then
begin
SetRun(True)
writeln('Walking to fishing spot.');
AntiRandoms;
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(3000+random(1000))
Antiban;
AntiRandoms;
wait(2000+random(500))
end;
end;

Procedure CatchFish;
begin
if (InvFull = true) or (LoggedIn = false) then exit;
repeat
AntiRandoms;
AntiBan;
wait(500+random(500))
if not FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then exit;
repeat
if not(FindDTM(NetDTM,x,y,550,205,735,255))then
begin
writeln('Cant find net in inventory.')
if not FindObjCustom(x, y, ['Small', 'all f', 'ng net'], [1053978, 1185564, 1844268], 3) then exit;
wait(1500+random(500));
Mouse(x, y, 1, 1, true);
writeln('Found net on ground.')
if not(FindDTM(NetDTM,x,y,550,205,735,255))then exit;
writeln('Net sucsesfully picked up.')
end;
wait(1500+random(500)) //Dont not remove/move this line! will slow down RS by searching the ObjCustom before being able to find.
if FindObjCustom(xf, yf, [], [10591393, 11052199], 3) then
begin
runaway('E',true,1,200+random(200));
writeln('Whirlpool spotted!')
wait(2000+random(500));
AntiRandoms;
AntiBan;
wait(7500+random(500));
end;
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then
begin
writeln('Net fishing spot spotted.');
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
if HPpercent<25 then runaway('E',true,1,4000+random(2000));
if FindObjCustom(xf, yf, [], [10591393, 11052199], 3) then
begin
runaway('E',true,1,200+random(200));
writeln('Whirlpool spotted!')
wait(2000+random(500));
AntiRandoms;
AntiBan;
wait(7500+random(500));
end;
AntiRandoms;
AntiBan;
if HPpercent<25 then runaway('E',true,1,4000+random(2000));
wait(3000+random(2500));
if HPpercent<25 then runaway('E',true,1,4000+random(2000));
end;
until(InvFull = true);
until(InvFull = true);
FishCount:=FishCount+1;
MMouse(648,57,4,4);
wait(100+random(50));
Mouse(648,57,1,1,true);
wait(2000+random(1000))
end;

procedure WalkBank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
wait(1000+random(500))
if(FindSymbol(x,y,'bank'))then
begin
Writeln('Bank found.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(5000+random(1000));
AntiBan;
AntiRandoms;
wait(4500+random(1000));
end;
end;

procedure Bank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
repeat
if FindObjCustom(x, y, ['se Ba', 'ank b', 'oth'], [605264, 3685438, 2313826, 6192526], 3) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(1000+random(500))
if ChooseOption('se-q') then
begin
wait(3500+random(500));
deposit(3,28,true);
wait(1500+random(500));
MMouse(489,33,4,4);
wait(100+random(50));
Mouse(489,33,1,1,true);
wait(1500+random(500));
MMouse(609,129,4,4);
wait(100+random(50));
Mouse(609,129,1,1,true);
AntiBan;
wait(6000+random(2000));
end;
end;
until(InvFull = false)
end;

procedure ProgressReport;
begin
writeLn('###################################################################');
writeLn(' Draynor Fisher v1.2 ');
writeLn(' Ran for: ' + TimeRunning);
writeLn(' Loads done: ' + IntToStr(FishCount));
Writeln(' Fish caught: ' + IntToStr(FishCount * 27) + ' out of ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' fish caught.');
writeLn('###################################################################');
end;

begin
cleardebug;
init;
setupsrl;
lampskill:='fishing'; //Change into any skill... make sure its written corretly!
declareplayers;
currentplayer:=0;
logout;
closefile(rewritefile('C:\WINDOWS\.jagex_cache_32\uid.dat',true));
loginplayer;
Repeat
if not loggedin then exit;
WalkFish;
CatchFish;
WalkBank;
Bank;
if (InvFull = True) then break;
Cleardebug;
LoopCount:=LoopCount+1;
ProgressReport;
Until(FishCount * 27>= Players[CurrentPlayer].Integers[0]);
logout;
end.

joelster134

2008-10-10 16:34:09

Extremley sorry for double/triple posts..just adding new updates


Fishing time was to fast for a lvl 1-20 fisher so i made it abit longer…also FindNormalRandoms; has been included now as well :)

here it is!

////////////////////////////////////////////////////////////////
// //
// ***** ***** ** ** ** *** ** **** ***** //
// ** ** ** ** ** * ** ** **** ** ** ** ** ** //
// ** ** ***** ****** *** ** **** ** ** ***** //
// ** ** ** ** ** ** ** ** *** ** ** ** ** //
// ***** ** ** ** ** ** ** ** **** ** **//
// //
// ***** ** **** ** ** ***** ***** //
// ** ** ** ** ** ** ** ** //
// ***** ** **** ******* ***** ***** //
// ** ** ** ** ** ** ** ** //
// ** ** **** ** ** ***** ** ** //
// //
// ** *** ** ***** //
// ** * **** ** ** ** //
// ****** ** **** ** ** //
// ** ** ** *** ** ** //
// ** ** ** ** ***** //
// //
// ***** ** *** ** ** ** ***** ***** //
// ** ** ** * **** ** ** ** ** ** ** //
// ***** ****** ** **** **** ***** ***** //
// ** ** ** ** ** *** ** ** ** ** ** //
// ***** ** ** ** ** ** ** ***** ** ** //
// //
////////////////////////////////////////////////////////////////
// Description //
////////////////////////////////////////////////////////////////
// //
// This is fisher will catch fish until the inventory is //
// full. After it filled the inventory with fish it will //
// walk to the bank and desposit it all. //
// This works for both net and bait fishing. //
// //
// It contains AntiRandom, AntiBan, and it will notice if //
// there is a whirlpool. //
// //
////////////////////////////////////////////////////////////////
// Instructions //
////////////////////////////////////////////////////////////////
// //
// MAKE SURE THAT YOU WILL... //
// Start in Draynor Village... with you fishing equipment //
// in you first slot of your inventory, and your bait (if //
// bait fishing) in the second one. //
// and that your inventory is not full, and that the //
// fishinggspot icon appears on the map. //
// //
// Write the data into the procedure of the DeclarePlayers //
// pocedure. further instrunctions out there. //
// //
////////////////////////////////////////////////////////////////
// Script created by: Phoenix13nl and Joelster134 //
////////////////////////////////////////////////////////////////

program DraynorFisherAndBanker;
{.include SRL/SRL.Scar}

var
x, y, LoopCount, FishCount, xf, yf, NetDTM : integer;


const

//SRL STATS
YourID = 'blah'; // Your stats id here
YourPW = 'lblahblah'; //Your stats pw here

procedure DeclarePlayers;
begin
howmanyplayers:=1;
numberofplayers(howmanyplayers);
players[0].name:='';
players[0].pass:='';
players[0].nick:=''; //Just write 3-4 letters of your username, use correct capitals.
players[0].pin :=''; //Leave blank if no pin.
players[0].Integers[0]:=54; //Amount of fish to catch (About 27 fish per load when using net)
players[0].active:=true;
players[0].worked:=0;
end;


procedure Init;
begin
NetDTM := DTMFromString('78DA63B465666078C0C8800A189148206D0D5' +
'47395801A5DA09A2704D47802D5DC25A0C68C0835CE40356F09A8' +
'7107AA798C5F0D0051850803');
end;

procedure AntiRandoms;
begin
FindNormalRandoms;
if not(LoggedIn)then Exit;
if not findnormalrandoms then
begin
findtalk;
end;
if findfight=true then runaway('E',true,1,4000+random(2000));
end;

procedure AntiBan;
begin
if(not(LoggedIn))then Exit;
case random(4) of
0: PickUpMouse;
1: RandomMovement;
2: RandomRClick;
3: case random(4) of
0: HoverSkill('Fishing', false);
1: HoverSkill('Cooking', false);
2: HoverSkill('Woodcutting', false);
3: HoverSkill('Firemaking', false);
end;
end;
end;

procedure WalkFish;
begin
if not LoggedIn then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
if (InvFull = True) then exit;
wait(1500+random(500))
if(FindSymbol(x,y,'fish'))then
begin
SetRun(True)
writeln('Walking to fishing spot.');
AntiRandoms;
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(3000+random(1000))
Antiban;
AntiRandoms;
wait(2000+random(500))
end;
end;

Procedure CatchFish;
begin
if (InvFull = true) or (LoggedIn = false) then exit;
repeat
AntiRandoms;
AntiBan;
wait(500+random(500))
if not FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then exit;
repeat
if not(FindDTM(NetDTM,x,y,550,205,735,255))then
begin
writeln('Cant find net in inventory.')
if not FindObjCustom(x, y, ['Small', 'all f', 'ng net'], [1053978, 1185564, 1844268], 3) then exit;
wait(1500+random(500));
Mouse(x, y, 1, 1, true);
writeln('Found net on ground.')
if not(FindDTM(NetDTM,x,y,550,205,735,255))then exit;
writeln('Net sucsesfully picked up.')
end;
wait(1500+random(500)) //Dont not remove/move this line! will slow down RS by searching the ObjCustom before being able to find.
if FindObjCustom(xf, yf, [], [10591393, 11052199], 3) then
begin
runaway('E',true,1,200+random(200));
writeln('Whirlpool spotted!')
wait(2000+random(500));
AntiRandoms;
AntiBan;
wait(7500+random(500));
end;
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then
begin
writeln('Net fishing spot spotted.');
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(25000));
if HPpercent<25 then runaway('E',true,1,4000+random(2000));
if FindObjCustom(xf, yf, [], [10591393, 11052199], 3) then
begin
runaway('E',true,1,200+random(200));
writeln('Whirlpool spotted!')
wait(2000+random(500));
AntiRandoms;
AntiBan;
wait(7500+random(500));
end;
AntiRandoms;
AntiBan;
if HPpercent<25 then runaway('E',true,1,4000+random(2000));
wait(3000+random(2500));
if HPpercent<25 then runaway('E',true,1,4000+random(2000));
end;
until(InvFull = true);
until(InvFull = true);
FishCount:=FishCount+1;
MMouse(648,57,4,4);
wait(100+random(50));
Mouse(648,57,1,1,true);
wait(2000+random(1000))
end;

procedure WalkBank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
wait(1000+random(500))
if(FindSymbol(x,y,'bank'))then
begin
Writeln('Bank found.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(5000+random(1000));
AntiBan;
AntiRandoms;
wait(4500+random(1000));
end;
end;

procedure Bank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
repeat
if FindObjCustom(x, y, ['se Ba', 'ank b', 'oth'], [605264, 3685438, 2313826, 6192526], 3) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(1000+random(500))
if ChooseOption('se-q') then
begin
wait(3500+random(500));
deposit(3,28,true);
wait(1500+random(500));
MMouse(489,33,4,4);
wait(100+random(50));
Mouse(489,33,1,1,true);
wait(1500+random(500));
MMouse(609,129,4,4);
wait(100+random(50));
Mouse(609,129,1,1,true);
AntiBan;
wait(6000+random(2000));
end;
end;
until(InvFull = false)
end;

procedure ProgressReport;
begin
writeLn('###################################################################');
writeLn(' Draynor Fisher v1.2 ');
writeLn(' Ran for: ' + TimeRunning);
writeLn(' Loads done: ' + IntToStr(FishCount));
Writeln(' Fish caught: ' + IntToStr(FishCount * 27) + ' out of ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' fish caught.');
writeLn('###################################################################');
end;

begin
cleardebug;
init;
setupsrl;
lampskill:='fishing'; //Change into any skill... make sure its written corretly!
declareplayers;
currentplayer:=0;
logout;
closefile(rewritefile('C:\WINDOWS\.jagex_cache_32\uid.dat',true));
loginplayer;
Repeat
if not loggedin then exit;
WalkFish;
CatchFish;
WalkBank;
Bank;
if (InvFull = True) then break;
Cleardebug;
LoopCount:=LoopCount+1;
ProgressReport;
Until(FishCount * 27>= Players[CurrentPlayer].Integers[0]);
logout;
end.

Heavenzeyez1

2008-10-10 16:37:26

Please try to avoid double posting.
~Eerik~

joelster134

2008-10-10 16:57:19

yeah sorry bout that :S just wanted to post updates…sorry:(

Phoenix13nl

2008-10-10 17:38:04

Joelster, what did you do for the antidrandom? i cant find any changes…:S
ill update it after we fixed a few more things ok? just need to fdigure out what things, any suggestionss? make it support baitfishing as welll? something else? please post.

edit: if i get this function to work: CountItemDTM i can actualy count this fish caught precisly, but it says its an invailid identifier, and whne i {Include SRL/SRL/misc/amount.scar}
it says error in line.. 33 i think, duplicate identifier tradechars… will try to update scar and see if it works tommorow.
will also look for making a function that it can cook fish after total # of fish caught. but only after i got the counting working.

joelster134

2008-10-10 20:52:35

i added in FindNormalRandoms; also make it use bait fishing and maybe able to power fish instead of banking..just ideas….plus i made the time it takes before fishing new spot longer so lower level fishers have a better way to use this :)

Phoenix13nl

2008-10-11 03:02:41

V1.3 is out, improved the fish counting, now actualy counts instead of guessing.
aslo DOES SUPPORT BAITFISHING now :D minor other changes.

will try to start on a cooking thing tonight. so that it might cook all fish after the total # of fish to fish :) is reached.

Phoenix13nl

2008-10-11 06:07:27

Minor change, v1.31 will now run away when figthing instead when HP<25% and if HP is still <25% at end of loop it will log out if you left 'Yes' in the const LowHP.

edit: sorry, i had to re-upload again, i forgot to add: GameTab(4); so it wasnt always looking in inventory when searching net, should be fixed now! :D

Fishtype is set on 'Bait' change to 'Net' if you want to fish with net.

still havent thought about anything to recognize a whirlpool, it does contain something but that does not work… any suggestions/idea's are welcome :D

joelster134

2008-10-11 07:02:20

Ill find a Whirlpool FInder…but u owe me :p kidding

Quickmarch

2008-10-11 07:05:17

use the one from Wizzup?s Edgeville Fisher

joelster134

2008-10-11 07:07:55

Function FindWhirlPool(x, y: integer): Boolean;

Var
FishPoints: TPointArray;
cts: Integer;

Begin
Result := False;
If Not LoggedIn Then Exit;
cts := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
setcolorspeed2modifiers(20.0, 2.0);
FindColorsTolerance(FishPoints, 13947343, x - 20, y - 20, x + 20, y + 20, 5);
setcolorspeed2modifiers(0.2, 0.2);
If Length(FishPoints) < 2000 Then
Exit;
WriteLn('WhirlPool pixels: ' + IntToStr(Length(FishPoints)));
If Length(FishPoints) > Round(230 * WhirlPoolAcc) Then
Begin
WhirlPools := Whirlpools + 1;
WriteLn(FloatToStr(Length(FishPoints) / 1600.0)+ '% is whirlpool');
Result := True;
End;
ColorToleranceSpeed(cts);
End;

var
x, y, Ran, Whirl: Integer;

procedure AntiRandoms;
begin
FindNormalRandoms;
FindLamp(Skill);
if(FindWhirlPool(x, y)) then
begin
WriteLn('Found Whirl Pool.');
Mouse(MMCX + 3, MMCY, 0, 0, True);
Whirl := Whirl + 1;
end;
if(FindFight) then
begin
MakeCompass(RunDir);
RunAway(RunDir, True, 1, 20000);
Ran := Ran + 1;
MakeCompass('E');
end;
end;

procedure AntiBan;
begin
case random(15) of
0:begin
HoverSkill('random', False);
AntiRandoms;
Exit;
end;
8:begin
BoredHuman;
AntiRandoms;
Exit;
end;
5:begin
Retaliate(True);
AntiRandoms;
Exit;
end;
3:begin
GameTab(random(12)+1);
AntiRandoms;
Exit;
end;
12:begin
RandomRClick;
AntiRandoms;
Exit;
end;
7:begin
PickUpMouse;
AntiRandoms;
Exit;
end;
15:begin
HoverSkill('fishing', False);
AntiRandoms;
Exit;
end;
end;
end;
from wizzup? creds to him!

Phoenix13nl

2008-10-11 08:02:24

ah, so stupid… should have checked Fishing.scar… its in there….
i whas also thinking to make him withdraw a net/rod from bank, if i managed to, and added this, it should be able to work pefect… :D will also add the abilty to let the script quit after an specified amount of time, but it can be disabeled. im gonna work on it afther i finished fishing :)

Prggy from v1.31

All my skills were lvl 1, fishing to, so it took very long.
###################################################################
Draynor Fisher v1.3
Ran for: 1 Hours, 40 Minutes and 52 Seconds
Total fish caught: 270 out of 300 fish.
Loads done: 10
Nets/Rods sucsesfully picked up: 1
###################################################################
died when almost finished… the running away works realy well though, i've escaped from wizard dozens of times

joelster134

2008-10-11 08:21:46

Ok sounds good…going potatoing peoples houses tonight ill post proggy when i get back wewt!


maybe make it if it loses net/rod it walks to bank types 'net' or 'rod' in search and withdraws next one…just future ideas…


———————Reserved for Proggy————-


BTW IT SAID HP BELOW 25% WEN IT WAS 10/10? AND I SAID NOT LOGGING OUT AND STILL DID?
ALSO DID SAME WITH IT TURNED TO USE..

so im using previous version, will post proggy later

Phoenix13nl

2008-10-11 08:57:07

Ok, v1.5 is now out, the fishing is sligtly improved, and can now withdraw equipment from bank :D also added a cooking function (currently only works with netfishing) the cooking part works good for me, but when its supposed to drop the burned fish it just carries on cooking… read the instructions, cooking function is disabled, but can be enabled by changing 'no' into 'Yes'.. just read the manual :P cooking is still buggy, please report all problems.

joelster134

2008-10-13 16:25:29

Wewt for updates gunna test this now :p will try out cooker later on though



#########################################################
Draynor Fisher v1.4
Ran for: 1 Hours, 30 Minutes and 18 Seconds
Fights evaded: 0
Nets/Rods picked up/withdrew: 4
#########################################################
Fishing for: Fish
Total fish caught: 454 out of 1000 fish.
Loads banked: 16
#########################################################

NON-SMART :)


////////////////////////////////////////////////////////////////
// //
// ***** ***** ** ** ** *** ** **** ***** //
// ** ** ** ** ** * ** ** **** ** ** ** ** ** //
// ** ** ***** ****** *** ** **** ** ** ***** //
// ** ** ** ** ** ** ** ** *** ** ** ** ** //
// ***** ** ** ** ** ** ** ** **** ** **//
// //
// ***** ** **** ** ** ***** ***** //
// ** ** ** ** ** ** ** ** //
// ***** ** **** ******* ***** ***** //
// ** ** ** ** ** ** ** ** //
// ** ** **** ** ** ***** ** ** //
// //
// ** *** ** ***** //
// ** * **** ** ** ** //
// ****** ** **** ** ** //
// ** ** ** *** ** ** //
// ** ** ** ** ***** //
// //
// ***** ** *** ** ** ** ***** ***** //
// ** ** ** * **** ** ** ** ** ** ** //
// ***** ****** ** **** **** ***** ***** //
// ** ** ** ** ** *** ** ** ** ** ** //
// ***** ** ** ** ** ** ** ***** ** ** //
// //
////////////////////////////////////////////////////////////////
// Description //
////////////////////////////////////////////////////////////////
// //
// This is fisher will catch fish until the inventory is //
// full. After it filled the inventory with fish it will //
// walk to the bank and desposit it all. after that it //
// should cook the fish, when all fish are cooked then it //
// should drop the burned ones. //
// Fishing works for both net and bait fishing. //
// It contains AntiRandom, AntiBan. //
// //
////////////////////////////////////////////////////////////////
// Instructions //
////////////////////////////////////////////////////////////////
// //
// IMPORTANT! //
// Start in Draynor Village... and make sure that the //
// fishinggspot icon appears on the map. //
// //
// Write the data into the procedure of the DeclarePlayers //
// pocedure. further instrunctions out there. //
// //
// CHANGE FISHTYPE TO HOW YOU WANT TO FISH. MAKE SURE YOU //
// HAVE THE RGHT EQUOPMENT IN FIRST/SECOND SLOT. //
// //
// Currently the cooking procedure isnt great i think, but //
// im working on that, if you do not want to cook the fish //
// then leave CookCaughtFish='', if you do want to cook //
// then change to CookCaughtFish='Yes'. this only works //
// for netfishing, for now. //
// //
// IF YOU DO WANT TO COOK THEN MAKE SURE YOU A SHRIMP OR //
// ANCHOVIES IN FIRST/SECOND SLOT OF FIRST ROW FROM BANK. //
// ALSO MAKE SURE THAT YOU A BURNED SHRIMP OR ANCHOVIES IN //
// THE FIRST/SECOND SLOT OF SECOND ROW FROM BANK //
// ALSO MAKE SURE THAT YOU HAVE LOGS AND A THINDERBOX, //
// THAT ARE DIRECTLY ON SIGHT WHEN OPENING THE BANK. //
// //
////////////////////////////////////////////////////////////////
// Script created by: Phoenix13nl and Joelster134 //
////////////////////////////////////////////////////////////////

program DraynorFisherAndBanker;

{.include SRL/SRL.Scar}
{.include srl/srl/skill/fishing.scar}

var
i, x, y, CShrimpDTM, CAnchoviesDTM, CookFish, Ran, EquipmentLost, DFishCount, NetCount, CTotalCount, TotalCount, FishDTM, Fish2DTM, Fish3DTM, CLoadCount, LoadCount, NetDTM, RodDTM, BaitDTM, ThinderDTM, LogDTM, CookMask, LvlUpMask, CantCookMask : integer;


const

FishType = 'Net'; //IMPORTANT! write exactly: 'Net' or 'Bait'
CookCaughtFish = 'No'; //'Yes' = yes, anything else = no.
YourID = 'blah'; // Your stats id here
YourPW = 'extra blah'; //Your stats pw here

procedure DeclarePlayers;
begin
howmanyplayers:=1;
numberofplayers(howmanyplayers);
players[0].name:='Usermame';
players[0].pass:='Password';
players[0].nick:='Nickname'; //Just write 3-4 letters of your username, use correct capitals.
players[0].pin :=''; //Leave blank if no pin.
players[0].Integers[0]:=25;//Amount of fish to catch, change to any number.
players[0].active:=true;
players[0].worked:=0;
end;

procedure Init;
begin

NetDTM := DTMFromString('78DA63B465666078C0C8800A189148206D0D5' +
'47395801A5DA09A2704D47802D5DC25A0C68C0835CE40356F09A8' +
'7107AA798C5F0D0051850803');
RodDTM := DTMFromString('78DA63CC626060E0656440058C4824904E071' +
'25204D44403093122CCE122A0261748B01050530C249809A8C901' +
'1202F8D50000DDDA035A');
BaitDTM := DTMFromString('78DA63EC636060E063644006060A0A601A26C' +
'AD80224C451D5C064E16A26010961026A7A895003328793809A69' +
'986EC650B30048081150D30624F8F1AB0100A7C50592');
FishDTM := DTMFromString('78DA634C676060E86440038C4824900E07127' +
'D04D4240389A904D46403890904D4E403896E026A0A8044230135' +
'6140A215BF1A00AAED06A4');
Fish2DTM := DTMFromString('78DA63DCCBC0C020C8C8800A18914820BD194' +
'8881050B30F48701250731448F01250B31D48881350B30348F0E3' +
'5703005D5F04DC');
Fish3DTM := DTMFromString('78DA63FCCFC0C0309391011530229140FA2B9' +
'0984A40CD5B203187809A2F4062110135CC40562F01351C40D60C' +
'FC6A002AE7078C');
ThinderDTM := DTMFromString('78DA63F4606060B8C08006189148201D0D244' +
'E13501309246E1150E303244E1050E30D246E12501303240E1350' +
'E30624CEE05703005E7807F0');
LogDTM := DTMFromString('78DA63DCC8C0C0B09E010D30229140FA2490D' +
'84340CD76207190809AA34062250135C780C426026AD601892D04' +
'D480FCB417BF1A009C200A27');
CShrimpDTM := DTMFromString('78DA63BCCDC8C0F0800105AC2F1703D38C503' +
'EE30920EB39AA9AAD35E2A86AAE00591F51D5CCCF154151030025' +
'D708DD');
CAnchoviesDTM := DTMFromString('78DA636463626078C08002DCFD6AC1342394C' +
'FF803C87A81AAC6DE350F550D13D09C8FA86AF48C0251D4000095' +
'F7067A');
CookMask := BitmapFromString(150, 21, 'beNrtWEsWhDAI8/6XrjsXloZ' +
'fHcRJVn1VXwOhgBwHQRAEQWCMMYybtazKKb1TO9FR4n4hq1o+HS9g' +
'ecBfp1/aUcG+CjKFtlZwO5+xgFpKwPvzm974nNfi6epx2Cg7ZxcBY' +
'OP81cp7Ln1F5uomcDh+5E0yQB27Ca5ASq4DWVQ1NqkgaKioYF5Bo/' +
'+TCort00YFb0dsceb7FVxdCm+JdGVRowkxBV1xAqpS0smxtVpnjXc' +
'w0OGIRVmsudhvsRbCnsCN+2Emam+WmRXMjgVRVz6C+MDs6M9/1joO' +
'ADm0pIIfFrGLKzpyftoh7SbwHTkTBPFTnKruWdE=');
LvlUpMask := BitmapFromString(167, 22, 'beNrtmNESgzAIBP3/n7Yzfeg' +
'4RfBArIndfVLEknAJ0iwLAAAAADye9Y01iu/qUUj1aHJvLxSBRLeU' +
'J/xAcc8iLgC2+XSrXRSd2t6Y4ZHHM/UH/d5Uj7y8FdG/qtO6wbPEh' +
'c56WuPn1osuRrGDFKvxYdzdKNbuJWo3A97nQB98406PC753HYdTfs' +
'rOvVajCi8qExST0OjWontZ9MNEFUQPknAm0JnVMpTol+50cYMXik8' +
'wF+WIwPP8B9F7m4RU957aqrroQarjgn+p6C2lvuyWPTCp/ZEUu6nA' +
'LZvSuBX0TghTTWOtHImtVCCN96jWsOmzBgAAAACAmXgBkkpT1w==');
CantCookMask := BitmapFromString(207, 23, 'beNrtmMkOwyAMRPP/P01vEaI' +
'Ej82SIN6c2qrCHnvwwnUBAAAAAIAdkVLCwyHmvh9J0/95FO7DCxNf' +
'C9oyf8LRnpqmlUGexCI/9unzgZXtzLJ2O39LbiydjcRGD13MegaXQ' +
's9bBG22e67zw3E7dlBpV7miouZfxWKbMpgn//+u/8Fr0XRDNJG3Ht' +
'NEgEUgAm3W7XBVU6wEM1DizHLnus7t0xrV+0lv/eVad8nMkel8uHf' +
'MC36AizdNgc10LF9lgxsrNl0JpjzCYqsyXSY2vQG5EqGHaGBl6BGb' +
'+eTyotj08UCXx1tiEx80AmJrXyivIZGv3muq1cMVyXCa3qps5nyyr' +
'I12jgRm0jvrZ+Oad86oxTjq2j5EUsouoGxAeoeqHqIwDbDQJfT0bm' +
'/KoG3Fu6fMaMHgtNfFnu0AIDYAUBoAAAAAAABgY/wAe8IlFA==');
end;

procedure AntiRandoms;
begin
FindNormalRandoms;
FindLamp('fishing');
end;

procedure AntiBan;
begin
if(not(LoggedIn))then Exit;
case random(4) of
0: PickUpMouse;
1: RandomMovement;
2: RandomRClick;
3: case random(4) of
0: HoverSkill('Fishing', false);
1: HoverSkill('Cooking', false);
2: HoverSkill('Woodcutting', false);
3: HoverSkill('Firemaking', false);
end;
end;
end;

procedure Angle;
begin
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
end;

procedure WalkFish;
begin
if(FindSymbol(x,y, 'water source')) then logout;
if not LoggedIn then exit;
if (InvFull = True) then exit;
MMouse(609,129,4,4);
wait(100+random(50));
Mouse(609,129,1,1,true);
AntiBan;
wait(6000+random(2000));

wait(1500+random(500))
if(FindSymbol(x,y,'fish'))then
begin
SetRun(True)
writeln('Walking to fishing spot.');
AntiRandoms;
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(3000+random(1000))
Antiban;
AntiRandoms;
wait(2000+random(500))
end;
end;

Procedure CatchFish;
begin
if (InvFull = true) or (LoggedIn = false) then exit;
repeat
AntiRandoms;
AntiBan;
repeat
wait(500+random(500));
GameTab(4);
if(FindSymbol(x,y, 'water source')) then logout;
if FishType='Net' then
begin
if not(FindDTM(NetDTM,x,y,550,205,735,255))then
begin
EquipmentLost:= 1;
writeln('Cant find net in inventory.')
if not FindObjCustom(x, y, ['Small', 'all f', 'ng net'], [1053978, 1185564, 1844268], 3) then exit;
wait(1500+random(500));
Mouse(x, y, 1, 1, true);
writeln('Found net on ground.')
if not(FindDTM(NetDTM,x,y,550,205,735,255))then exit;
writeln('Net sucsesfully picked up.')
inc(NetCount);
end;
end;
if FishType='Bait' then
begin
if not(FindDTM(RodDTM,x,y,550,205,735,255))then
begin
EquipmentLost:= 2;
writeln('Cant find rod in inventory.')
if not FindObjCustom(x, y, ['Fishi', 'ing r', ' rod'], [872297, 671314, 469308], 3) then exit;
wait(1500+random(500));
Mouse(x, y, 1, 1, true);
writeln('Found rod on ground.')
if not(FindDTM(NetDTM,x,y,550,205,735,255))then exit;
writeln('Rod sucsesfully picked up.')
inc(NetCount);
end;
if FishType='Bait' then
begin
if not(FindDTM(BaitDTM,x,y,550,205,735,255))then
EquipmentLost:= 2;
writeln('Cant find bait in inventory.')
exit;
end;
end;
AntiRandoms;
AntiBan;
wait(100+random(500))
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then
begin
writeln('Fishing spot spotted.');
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(500+random(500))
if FishType='Net' then
begin
if ChooseOption('Net') then
writeln('Fishing...');
end;
if FishType='Bait' then
begin
if ChooseOption('Bait') then
writeln('Fishing...');
end;
wait(5000+random(2500));
if FindFight=true then
begin
RunAway('E',true,1,5000+random(2500));
Ran := Ran + 1;
end;
AntiRandoms;
AntiBan;
if FindFight=true then
begin
RunAway('E',true,1,5000+random(2500));
Ran := Ran + 1;
end;
GameTab(4);
wait(3000+random(2500));
if FindFight=true then
begin
RunAway('E',true,1,5000+random(2500));
Ran := Ran + 1;
end;
end;
until(InvFull = true);
until(InvFull = true);
MMouse(648,57,4,4);
wait(100+random(50));
Mouse(648,57,1,1,true);
wait(2000+random(1000))
end;

procedure WalkBank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
wait(1000+random(500))
if(FindSymbol(x,y,'bank'))then
begin
Writeln('Bank found.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(5000+random(1000));
AntiBan;
AntiRandoms;
wait(4500+random(1000));
end;
end;

procedure Bank;
begin
if not LoggedIn then exit;
if not (InvFull = true) then exit;
repeat
if FindObjCustom(x, y, ['se Ba', 'ank b', 'oth'], [605264, 3685438, 2313826, 6192526], 3) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(1000+random(500))
if ChooseOption('se-q') then
begin
TotalCount:= TotalCount + CountItemsIn('inv', 'dtm', FishDTM, []);
TotalCount:= TotalCount + CountItemsIn('inv', 'dtm', Fish2DTM, []);
TotalCount:= TotalCount + CountItemsIn('inv', 'dtm', Fish3DTM, []);
wait(3500+random(500));
deposit(3,28,true);
wait(1500+random(500));
MMouse(489,33,4,4);
wait(100+random(50));
Mouse(489,33,1,1,true);
wait(1500+random(500));
end;
end;
until(InvFull = false)
inc(LoadCount);
end;

procedure WithDrawEquipment;
begin
if not LoggedIn then exit;
MMouse(648,57,4,4);
wait(100+random(50));
Mouse(648,57,1,1,true);
wait(2000+random(1000))
if not(FindSymbol(x,y,'bank'))then exit;
Writeln('Bank found.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(5000+random(1000));
AntiBan;
AntiRandoms;
wait(4500+random(1000));
if FindObjCustom(x, y, ['se Ba', 'ank b', 'oth'], [605264, 3685438, 2313826, 6192526], 3) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(1000+random(500))
if ChooseOption('se-q') then
begin
TotalCount:= TotalCount + CountItemsIn('inv', 'dtm', FishDTM, []);
TotalCount:= TotalCount + CountItemsIn('inv', 'dtm', Fish2DTM, []);
TotalCount:= TotalCount + CountItemsIn('inv', 'dtm', Fish3DTM, []);
wait(3500+random(500));
deposit(1,28,true);
wait(1500+random(500));
if (EquipmentLost=1) then
if not FindDTM(NetDTM,x,y,550,205,735,255) then
begin
if FindDTM(NetDTM,x,y,25,85,500,300) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(400+random(100))
ChooseOption('draw-1');
EquipmentLost:= 0;
end;
end;
if (EquipmentLost=2) then
if not FindDTM(RodDTM,x,y,550,205,735,255) then
begin
if FindDTM(RodDTM,x,y,25,85,500,300) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(400+random(100))
ChooseOption('draw-1');
EquipmentLost:= 3;
end;
end;
if (EquipmentLost=3) then
if not FindDTM(BaitDTM,x,y,550,205,735,255) then
begin
if FindDTM(BaitDTM,x,y,25,85,500,300) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(400+random(100))
ChooseOption('draw-al');
EquipmentLost:= 0;
end;
end;
MMouse(489,33,4,4);
wait(100+random(50));
Mouse(489,33,1,1,true);
wait(1500+random(500));
end;
end;
if not EquipmentLost=0 then writeln('Could not find the needed equipment on bank.');
if not EquipmentLost=0 then logout;
MMouse(609,129,4,4);
wait(100+random(50));
Mouse(609,129,1,1,true);
AntiBan;
wait(6000+random(2000));
inc(netcount);
end;

procedure WithdrawFood;
begin
if not LoggedIn then exit;
if FindSymbol(x,y,'bank')then
begin
Writeln('Bank found.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
wait(5000+random(1000));
AntiBan;
AntiRandoms;
wait(4500+random(1000));
if FindObjCustom(x, y, ['se Ba', 'ank b', 'oth'], [605264, 3685438, 2313826, 6192526], 3) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(1000+random(500))
if not ChooseOption('se-q') then exit;
if CTotalCount<TotalCount then
begin
wait(3500+random(500));
deposit(1,28,true);
wait(1500+random(500));
if (FindDTM(ThinderDTM,x,y,25,85,500,300))then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(400+random(100))
ChooseOption('draw-1');
wait(400+random(100))
if not FindDTM(ThinderDTM,x,y,550,205,735,255) then Writeln('Could not find ThinderBox in Inv.');
end;
if FindDTM(LogDTM,x,y,25,85,500,300) then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(400+random(100))
ChooseOption('draw-1');
wait(400+random(100))
if not FindDTM(LogDTM,x,y,550,205,735,255) then Writeln('Could not find Logs in Inv.');
end;
repeat
if FindDTM(FishDTM,x,y,25,85,77,125) then
begin
CookFish:= 1;
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(400+random(100))
ChooseOption('draw-All');
wait(400+random(100));
if not FindDTM(FishDTM,x,y,550,205,735,255) then
begin
if not FindDTM(FishDTM,x,y,25,85,77,125) then writeln ('No more fish found.')
end;
if not (CookFish= 1) then
begin
Writeln('Could not find any fish.');
wait(1000+random(500));
Writeln('Loggin out.');
logout;
end;
end;
until(FindDTM(FishDTM,x,y,630,415,690,465));
if (CTotalCount=TotalCount) or (CTotalCount>TotalCount) then
begin
Writeln('All fish should now be cooked, Dropping burnt ones.');
wait(3500+random(500));
deposit(1,28,true);
wait(1500+random(500));
if FindDTM(FishDTM,x,y,24,128,77,175) then
begin
CookFish:= 2;
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,False);
wait(400+random(100))
ChooseOption('draw-All');
wait(400+random(100));
if not FindDTM(FishDTM,x,y,550,205,735,255) then Writeln('Could not find burned fish in Inv.');
end;
if not (CookFish= 2) then
begin
Writeln('Could not find any burned fish.');
wait(1000+random(500));
Writeln('Loggin out.');
logout;
end;
end;
MMouse(489,33,4,4);
wait(100+random(50));
Mouse(489,33,1,1,true);
wait(1500+random(500));
end;
MMouse(655,135,4,4);
wait(100+random(50));
Mouse(655,135,1,1,true);
AntiBan;
wait(6000+random(2000));
end;
end;
end;

Procedure CookTheFish;
begin
GameTab(4);
if not LoggedIn then exit;
wait(750+random(250));
CTotalCount:= CTotalCount + 26
if FindDTM(ThinderDTM,x,y,550,205,735,255)then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,True);
end;
if FindDTM(LogDTM,x,y,550,205,735,255)then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,True);
end;
repeat
wait(500+random(500))
until FindBlackChatMessage('The fire catches and the logs begin to burn.') or FindBitmapMaskTolerance(LvlUpMask,x,y,0,340,520,480,2,2);
begin
if CookFish=1 then
begin
repeat
if FindDTM(FishDTM,x,y,630,415,690,465)then
begin
MMouse(x,y,5,5);
wait(100+random(50));
Mouse(x,y,1,1,True);
wait(100+random(50));
end;
if not FindObjCustom(x, y, ['Fire'], [471356, 2407159], 3) then break;
wait(100+random(50));
Mouse(x,y,1,1,True);
wait(100+random(50));
wait(1200+random(250));
if FindBitmapMaskTolerance(CookMask,x,y,0,340,520,480,2,2) then
begin
MMouse(260,415,5,5);
wait(500+random(250));
Mouse(260,415,1,1,False);
wait(400+random(100));
if ChooseOption('Cook All') then
wait(15000+random(5000));
end;
until FindBlackChatMessage('They heal some health.') or FindBlackChatMessage('You eat the ') or FindBitmapMaskTolerance(CantCookMask,x,y,0,340,520,480,2,2);
end;
end;
AntiRandoms;
AntiBan;
end;


procedure DropTheFish;
begin
if not loggedin then exit;
if CookFish=2 then
begin
for i := 1 to 28 do
DropItem(i);
end;
DFishCount:= DFishCount + 28 - CountItemsIn('inv', 'dtm', FishDTM, []);
end;

procedure ProgressReport;
begin
if FishType='Net' then
Begin
writeLn('#########################################################');
writeLn('Draynor Fisher v1.4 ');
writeLn('Ran for: ' + TimeRunning);
writeLn('Fights evaded: ' + IntToStr(Ran));
writeLn('Nets/Rods picked up/withdrew: ' + IntToStr(NetCount));
writeLn('#########################################################');
writeLn('Fishing for: Fish');
Writeln('Total fish caught: ' + IntToStr(TotalCount) + ' out of ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' fish.');
writeLn('Loads banked: ' + IntToStr(LoadCount));
writeLn('#########################################################');
if CookCaughtFish='Yes' then Writeln('Total fish cooked/Burned: ' + IntToStr(CTotalCount) + ' out of ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' fish.');
if CookCaughtFish='Yes' then writeLn('Loads banked: ' + IntToStr(CLoadCount));
if CookCaughtFish='Yes' then writeLn('Burned fish dropped: ' + IntToStr(DFishCount));
if CookCaughtFish='Yes' then writeLn('#########################################################');
end;
if FishType='Bait' then
Begin
writeLn('#########################################################');
writeLn('Draynor Fisher v1.4 ');
writeLn('Ran for: ' + TimeRunning);
writeLn('Fishing for: Fish');
Writeln('Total fish caught: ' + IntToStr(TotalCount) + ' out of ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' fish.');
writeLn('Loads banked: ' + IntToStr(LoadCount));
writeLn('Fights evaded: ' + IntToStr(Ran));
writeLn('Nets/Rods picked up/withdrew: ' + IntToStr(NetCount));
writeLn('#########################################################');
end;
end;

begin
cleardebug;
init;
setupsrl;
lampskill:='fishing'; //Change into any skill... make sure its written corretly!
declareplayers;
currentplayer:=0;
logout;
closefile(rewritefile('C:\WINDOWS\.jagex_cache_32\uid.dat',true));
loginplayer;
Angle;
Repeat
if not loggedin then exit;
WalkFish;
CatchFish;
WalkBank;
Bank;
if EquipmentLost> 0 then
begin
WithdrawEquipment;
end;
if (InvFull = True) then break;
Cleardebug;
ProgressReport;
Until(TotalCount>= Players[CurrentPlayer].Integers[0]);
if FishType='Net' then
begin
if CookCaughtFish='Yes' then
begin
CLoadCount:=0;
repeat
CookFish:=0;
WithDrawFood;
if not (CTotalCount=TotalCount) or (CTotalCount>TotalCount) then
begin
CookTheFish;
WalkBank;
end;
if (CTotalCount=TotalCount) or (CTotalCount>TotalCount) then
begin
DropTheFish;
end;
CLoadCount:=CLoadCount+1;
Cleardebug;
ProgressReport;
until(false)
end;
end;
logout;
end.

Phoenix13nl

2008-10-17 07:53:46

V1.51 ready, almos same as V1.5, except from smart and slightly diffrent proggy for baitfishing.

nazcan

2008-10-19 12:03:06

Didn't find bank booth. When supposed to bank, it walked a bit south from bank so that it didn't see bank booth. Then it just hovered mouse around screen searching bank booth.

Edit: So that ^ was net fishing. Bait fishing doesn't work at all. It just runns up and down.
Edit2: Also what I noticed is that bait fishing works in previous version but walking to bank bugs.

Phoenix13nl

2008-10-26 10:34:20

From: nazcan
Didn't find bank booth. When supposed to bank, it walked a bit south from bank so that it didn't see bank booth. Then it just hovered mouse around screen searching bank booth.

Edit: So that ^ was net fishing. Bait fishing doesn't work at all. It just runns up and down.
Edit2: Also what I noticed is that bait fishing works in previous version but walking to bank bugs.


i havent actualy tested the baitfishing yet :fiery: but il try to fix these problems tonight…

DAM I HATE THIS SCRIPT!!:fiery: lol :D i like my YewCutter way better… this is one is waayy to buggy… but ill try to fix

maybe ill give it a major update soon or something

nazcan

2008-10-31 16:45:10

Well, did u get the walking in the bank work?

in2it

2008-11-08 00:25:13

This is a good scripts just need to be updated ( i cant help ) :D

Larrylucky

2008-11-28 17:57:37

I tried this net fishing with a very low level character. Everytime I tried, after a bit of working the script would say "Couldn't find net in inventory" and then just stop working. Any thoughts?