SRL Archive - First Scripts

PowerFisher


Phoenix13nl

2008-10-06 16:12:21

ok, here is my first script. its and powerfisher that can fish all types off fish…
just read the description and instructions :)

///////////////////////////////////////////////////////////////
// Phoenix's PowerFisher V1.0 //
///////////////////////////////////////////////////////////////
// //
// ////// //
// // // ///// // // // ///// ///// //
// ////// // // // /// // // // // //
// // // // // // // // ///// ///// //
// // // // // // // // // // // //
// // ///// /// /// ///// // // //
// //
// /////// // //
// // ///// // // ///// ///// //
// ////// // // // // // // // //
// // // ///// ////// ///// ///// //
// // // // // // // // // //
// // // ///// // // ///// // // //
// //
///////////////////////////////////////////////////////////////
// Description //
///////////////////////////////////////////////////////////////
// //
// This is PowerFisher is my very first script, it will //
// catch fish anywhere close to a fishing spot, and then //
// drop it drops all the fish and repeats it. //
// It can fish all types of fish. //
// it isn't great but it does work pretty good... //
// //
///////////////////////////////////////////////////////////////
// Instructions //
///////////////////////////////////////////////////////////////
// //
// Log out with your fishing equipment in you first slot //
// of your inventory and you bait (if bait or flyfishing) //
// is in the second slot. also make sure you are close to //
// a fishingspot, and that the spot appears in the screen. //
// //
// Write the data into the procedure of the DeclarePlayers //
// pocedure. further instrunctions out there. //
// //
// Important: Change 'FishType' to the right type. //
// so when fishing with a net, it should be... //
// FishType='Net'; //
// //
// Script created by: Phoenix13nl //
// Special thanks to Tniffoc for his help =) //
// //
///////////////////////////////////////////////////////////////
// Good luck. //
///////////////////////////////////////////////////////////////


program PowerFisher;
{.include srl/srl/misc/smart.scar}
{.include SRL/SRL.Scar}

var
x, y, i : integer;
smartworld : string;

const
FishType='WriteFishingTypeHere'; //Net, Bait, Fly, Cage, Harpoon. Example: FishType='Net';

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]:=5; //this is the number of loads to do before loggin out again. //Line written by Tniffoc.
players[0].Integers[1]:=0; //Line written by Tniffoc.
players[0].active:=true;
players[0].worked:=0;
end;

procedure Init;
begin
smartworld:='world63';
end;

procedure AntiRandoms;
begin
if(not(LoggedIn))then Exit;
findnormalrandoms;
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 CatchFish;
begin
if FishType='Net' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with net.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then
begin
writeln('Net fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Bait' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with fishing rod.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) or FindObjCustom(x, y, ['Lur','ure ','re F'], [12828090, 11182231], 3) then
begin
writeln('Bait fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Fly' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with flyfishing rod.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Lur','ure ','re F'], [12828090, 11182231], 3) then
begin
writeln('Fly fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Cage' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with Cage.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Cage','age ','ge F'], [12828090, 11182231], 3) then
begin
writeln('Cage fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Harpoon' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with Harpoon.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Cage','age ','ge F'], [12828090, 11182231], 3) then
begin
writeln('Harpoon fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
end;

procedure DropFish;
begin
if not loggedin then exit;
if (InvFull = true) then
begin
writeln('Inventory full.');
for i := 3 to 28 do
DropItem(i);
writeln('All fish dropped.');
end;
end;

begin
cleardebug;
init;
smartsetup(smartworld,false,true,false);
settargetdc(smartgetdc);
setupsrl;
lampskill:='smithing'; //Change into any skill you want, make sure to write correctly!
declareplayers;
currentplayer:=0;
logout;
closefile(rewritefile('C:\WINDOWS\.jagex_cache_32\uid.dat',true));
loginplayer;
Repeat
if not loggedin then exit;
Timerunning;
CatchFish
DropFish;
Cleardebug;
Inc(Players[CurrentPlayer].Integers[1]); //Line written by Tniffoc.
Writeln(IntToStr(Players[CurrentPlayer].Integers[1]) + ' out of ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' loops completed.')
Until(Players[CurrentPlayer].Integers[1] >= Players[CurrentPlayer].Integers[0]); //Line written by Tniffoc.
Cleardebug;
Writeln('All ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' loops completed, script will stop now,');
Timerunning;
logout;
end.

joelster134

2008-10-06 16:16:04

Looks Extremly useful especially for you FIRST script! great work..will test after school today

Heavenzeyez1

2008-10-06 16:30:06

Really good job for a first script.
 until (InvFull = true) or not(LoggedIn);
You could add more failsaves, as i should..
And the fishing procedure can be shortened a lot, try lowercases etc. :)
Nice Job!
~Eerik~

Phoenix13nl

2008-10-06 16:47:31

From: joelster134
Looks Extremly useful especially for you FIRST script! great work..
Really good job for a first script.
thanks! :)

You could add more failsaves, as i should..
ok, ill try

And the fishing procedure can be shortened a lot
i know but i couldnt get it to work, its my first script so i dont have any experience, i tried this at first:

procedure FindFish;
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
repeat
AntiRandoms;
AntiBan1;
if (InvFull = true) then exit;
if Players[CurrentPlayer].Strings[0]:='Net' then
begin
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then
end;
if Players[CurrentPlayer].Strings[0]:='Bait' then
begin
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) or FindObjCustom(x, y, ['Lur','ure ','re F'], [12828090, 11182231], 3) then
end;
if Players[CurrentPlayer].Strings[0]:='Fly' then
begin
if FindObjCustom(x, y, ['Lur','ure ','re F'], [12828090, 11182231], 3) then
end;
if Players[CurrentPlayer].Strings[0]:='Cage' then
begin
if FindObjCustom(x, y, ['Cage','age ','ge F'], [12828090, 11182231], 3) then
end;
if Players[CurrentPlayer].Strings[0]:='Harpoon' then
begin
if FindObjCustom(x, y, ['Cage','age ','ge F'], [12828090, 11182231], 3) then
end;
begin
writeln('Fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(10000+random(5000));
end;
until(InvFull = true)
end;

however i just realized while you said that, it might work if i do it with the 'const', like it is now.. not the 'Players[CurrentPlayer].Strings[0]:='Fly'

i might try it again, and shorten it… (but then an improved version)

joelster134

2008-10-06 16:53:08

Hey, could you help me create my own Fishing script..just a draynor fisher& banker not dropper…will add you in CREDITs/PM you updates first, add me on msn [email]joelster134@hotmail.com[/email]…*at school home in 8-8:30 hours!*

Phoenix13nl

2008-10-06 16:55:51

From: joelster134
Hey, could you help me create my own Fishing script..just a draynor fisher& banker not dropper…will add you in CREDITs/PM you updates first, add me on msn [email]joelster134@hotmail.com[/email]…*at school home in 8-8:30 hours!*


im looking forward in helping you… but tommorow, its 22:55 and im wokring on powerchopper for lvl 1 trees for some one now :)

truey

2008-10-08 00:13:01

Nice script mate, had it running for about an hour on fly fishing at Lumbridge.

Some things i noticed when briefly tabbing to it, my char got down to 5 hp (from 80) so i think running away is a tad slow, not entirely sure.

Also lost two rods, so i don't think whirlpool detection is working or i didn't set something up right? heh.


Either way, nice job!:(h):

Phoenix13nl

2008-10-08 01:42:06

Me and Joelster134 have made a draynor fisher/banker and i (tried to) make it detect whirlpools but it doesnt work… :(

**script wont be updated alot…**

in2it

2008-10-12 05:14:06

not bad for your first it be better if it could bank the raw fish at a certain area but nice job for your first :P

nazcan

2008-10-18 06:11:00

Hey nice, can u make non-smart version please? I know I could do it myself but I don't know how to :p

joelster134

2008-10-18 07:28:06

From: nazcan
Hey nice, can u make non-smart version please? I know I could do it myself but I don't know how to :p




//////////////////////////////////////////////////////////
// Phoenix's PowerFisher V1.0 //
///////////////////////////////////////////////////////////////
// //
// ////// //
// // // ///// // // // ///// ///// //
// ////// // // // /// // // // // //
// // // // // // // // ///// ///// //
// // // // // // // // // // // //
// // ///// /// /// ///// // // //
// //
// /////// // //
// // ///// // // ///// ///// //
// ////// // // // // // // // //
// // // ///// ////// ///// ///// //
// // // // // // // // // //
// // // ///// // // ///// // // //
// //
///////////////////////////////////////////////////////////////
// Description //
///////////////////////////////////////////////////////////////
// //
// This is PowerFisher is my very first script, it will //
// catch fish anywhere close to a fishing spot, and then //
// drop it drops all the fish and repeats it. //
// It can fish all types of fish. //
// it isn't great but it does work pretty good... //
// //
///////////////////////////////////////////////////////////////
// Instructions //
///////////////////////////////////////////////////////////////
// //
// Log out with your fishing equipment in you first slot //
// of your inventory and you bait (if bait or flyfishing) //
// is in the second slot. also make sure you are close to //
// a fishingspot, and that the spot appears in the screen. //
// //
// Write the data into the procedure of the DeclarePlayers //
// pocedure. further instrunctions out there. //
// //
// Important: Change 'FishType' to the right type. //
// so when fishing with a net, it should be... //
// FishType='Net'; //
// //
// Script created by: Phoenix13nl //
// Special thanks to Tniffoc for his help =) //
// //
///////////////////////////////////////////////////////////////
// Good luck. //
///////////////////////////////////////////////////////////////


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

var
x, y, i : integer;

const
FishType='WriteFishingTypeHere'; //Net, Bait, Fly, Cage, Harpoon. Example: FishType='Net';

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]:=5; //this is the number of loads to do before loggin out again. //Line written by Tniffoc.
players[0].Integers[1]:=0; //Line written by Tniffoc.
players[0].active:=true;
players[0].worked:=0;
end;



procedure AntiRandoms;
begin
if(not(LoggedIn))then Exit;
findnormalrandoms;
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 CatchFish;
begin
if FishType='Net' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with net.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then
begin
writeln('Net fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Bait' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with fishing rod.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) or FindObjCustom(x, y, ['Lur','ure ','re F'], [12828090, 11182231], 3) then
begin
writeln('Bait fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Fly' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with flyfishing rod.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Lur','ure ','re F'], [12828090, 11182231], 3) then
begin
writeln('Fly fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Cage' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with Cage.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Cage','age ','ge F'], [12828090, 11182231], 3) then
begin
writeln('Cage fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Harpoon' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with Harpoon.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Cage','age ','ge F'], [12828090, 11182231], 3) then
begin
writeln('Harpoon fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
end;

procedure DropFish;
begin
if not loggedin then exit;
if (InvFull = true) then
begin
writeln('Inventory full.');
for i := 3 to 28 do
DropItem(i);
writeln('All fish dropped.');
end;
end;

begin
cleardebug;
setupsrl;
lampskill:='smithing'; //Change into any skill you want, make sure to write correctly!
declareplayers;
currentplayer:=0;
logout;
closefile(rewritefile('C:\WINDOWS\.jagex_cache_32\uid.dat',true));
loginplayer;
Repeat
if not loggedin then exit;
Timerunning;
CatchFish
DropFish;
Cleardebug;
Inc(Players[CurrentPlayer].Integers[1]); //Line written by Tniffoc.
Writeln(IntToStr(Players[CurrentPlayer].Integers[1]) + ' out of ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' loops completed.')
Until(Players[CurrentPlayer].Integers[1] >= Players[CurrentPlayer].Integers[0]); //Line written by Tniffoc.
Cleardebug;
Writeln('All ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' loops completed, script will stop now,');
Timerunning;
logout;
end.

it wont run (SRL Scripts are broken) so it dosnt matter :p

nazcan

2008-10-19 05:31:32

Thanks joelster, worked for me BUT it didnt avoid whirlpool ;)

joelster134

2008-10-19 09:24:10

yes it dosnt and wont i dont think he will be updating this script any more, when you become a SRL Junior mem check out mine and his fisher and banker…its kick arse

stranker1

2008-10-25 12:39:04

looks pretty good, i'll try it out

0lumpy

2008-10-26 12:11:07

Love it i'm going to use it all the time ty

foxton

2008-10-27 06:13:21

if you make him go to the bench would be very good

storen

2008-10-27 07:07:37

it doesnt work for me! :( just logs in then logs back out and nothing more happens …

joelster134

2008-10-27 07:21:49

are you selecting window properly? have you setup players?

Darkterroz

2008-10-28 17:25:19

I think this is a nice script, but where do you get the smart program i cannot find the actual download for it and if there isnt one why i am keep getting this error when i run it??
[Runtime Error] : Exception: Access violation at address 6D875D48 in module 'jvm.dll'. Read of address 00000008 in line 254 in script C:\Program Files (x86)\SCAR 3.15\Scripts\PowerFish v1,0.scar
Please help me fix this

raf bomber

2008-11-10 03:50:12

good code
but u might wanna look at the option to bait, it finds the fishing spot but then left clicks instead of right clicking and selecting the bait option.

norbiux

2009-02-10 15:01:53

im trying it now =]

zalman

2009-02-10 15:07:23

nice i gonna check it thanks

gr.zalman

RandomPhobia

2009-02-10 20:16:06

emmmmmmm i tryed it and got "Line 254: [Error] (16566:40): Invalid number of parameters in script C:\DOCUME~1\JOSH\LOCALS~1\Temp\Rar$DI05.500\PowerFisher v1.0.scar" im not sure if it just my comp…..but i thought id tell u

ian.

2009-02-11 01:10:08

///////////////////////////////////////////////////////////////
// Phoenix's PowerFisher V1.0 //
///////////////////////////////////////////////////////////////
// //
// ////// //
// // // ///// // // // ///// ///// //
// ////// // // // /// // // // // //
// // // // // // // // ///// ///// //
// // // // // // // // // // // //
// // ///// /// /// ///// // // //
// //
// /////// // //
// // ///// // // ///// ///// //
// ////// // // // // // // // //
// // // ///// ////// ///// ///// //
// // // // // // // // // //
// // // ///// // // ///// // // //
// //
///////////////////////////////////////////////////////////////
// Description //
///////////////////////////////////////////////////////////////
// //
// This is PowerFisher is my very first script, it will //
// catch fish anywhere close to a fishing spot, and then //
// drop it drops all the fish and repeats it. //
// It can fish all types of fish. //
// it isn't great but it does work pretty good... //
// //
///////////////////////////////////////////////////////////////
// Instructions //
///////////////////////////////////////////////////////////////
// //
// Log out with your fishing equipment in you first slot //
// of your inventory and you bait (if bait or flyfishing) //
// is in the second slot. also make sure you are close to //
// a fishingspot, and that the spot appears in the screen. //
// //
// Write the data into the procedure of the DeclarePlayers //
// pocedure. further instrunctions out there. //
// //
// Important: Change 'FishType' to the right type. //
// so when fishing with a net, it should be... //
// FishType='Net'; //
// //
// Script created by: Phoenix13nl //
// Special thanks to Tniffoc for his help =) //
// //
///////////////////////////////////////////////////////////////
// Good luck. //
///////////////////////////////////////////////////////////////


program PowerFisher;
{.include srl/srl/misc/smart.scar}
{.include SRL/SRL.Scar}

var
x, y, i : integer;
smartworld : string;

const
FishType='WriteFishingTypeHere'; //Net, Bait, Fly, Cage, Harpoon. Example: FishType='Net';
smartworld = 63;

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]:=5; //this is the number of loads to do before loggin out again. //Line written by Tniffoc.
players[0].Integers[1]:=0; //Line written by Tniffoc.
players[0].active:=true;
players[0].worked:=0;
end;

procedure AntiRandoms;
begin
if(not(LoggedIn))then Exit;
findnormalrandoms;
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 CatchFish;
begin
if FishType='Net' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with net.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) then
begin
writeln('Net fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Bait' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with fishing rod.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Net','et F','t Fi'], [12828090, 11182231], 3) or FindObjCustom(x, y, ['Lur','ure ','re F'], [12828090, 11182231], 3) then
begin
writeln('Bait fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Fly' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with flyfishing rod.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Lur','ure ','re F'], [12828090, 11182231], 3) then
begin
writeln('Fly fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Cage' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with Cage.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Cage','age ','ge F'], [12828090, 11182231], 3) then
begin
writeln('Cage fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
if FishType='Harpoon' then
begin
if not loggedin then exit;
KeyDown(VK_UP);
wait(1500+random(500));
KeyUp(VK_UP);
wait(500+random(500));
writeln('Angle set.');
writeln('Fishing with Harpoon.');
repeat
AntiRandoms;
AntiBan;
if (InvFull = true) then exit;
if FindObjCustom(x, y, ['Cage','age ','ge F'], [12828090, 11182231], 3) then
begin
writeln('Harpoon fishing spot spotted.');
MMouse(x, y, 5, 5);
wait(100+random(50));
Mouse(x, y, 1, 1, true);
writeln('Fishing...');
wait(5000+random(2500));
AntiBan;
wait(5000+random(2500));
end;
until(InvFull = true)
end;
end;

procedure DropFish;
begin
if not loggedin then exit;
if (InvFull = true) then
begin
writeln('Inventory full.');
for i := 3 to 28 do
DropItem(i);
writeln('All fish dropped.');
end;
end;

begin
cleardebug;
init;
smartsetupEx(smartworld,false,true,false);
settargetdc(smartgetdc);
setupsrl;
lampskill:='smithing'; //Change into any skill you want, make sure to write correctly!
declareplayers;
currentplayer:=0;
logout;
loginplayer;
Repeat
if not loggedin then exit;
Timerunning;
CatchFish
DropFish;
Cleardebug;
Inc(Players[CurrentPlayer].Integers[1]); //Line written by Tniffoc.
Writeln(IntToStr(Players[CurrentPlayer].Integers[1]) + ' out of ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' loops completed.')
Until(Players[CurrentPlayer].Integers[1] >= Players[CurrentPlayer].Integers[0]); //Line written by Tniffoc.
Cleardebug;
Writeln('All ' + IntToStr(Players[CurrentPlayer].Integers[0]) + ' loops completed, script will stop now,');
Timerunning;
logout;
end.

that line should've been SmartSetupEx not SmartSetup :)

xdustin

2009-02-12 09:43:16

Look's like a nice script,

I'll try it when I get home and let you know how I like it.

Pheter

2009-02-16 22:13:38

Just a quick heads up RandomPhobia:

Changing line 254 (or whichever line starts S.M.A.R.T.) from SmartSetup to SmartSetupEx will not completly fix the problem. You have to change the variable 'smartworld' to be of the type integer and then find where it is set in the script and change the value to reflect the variable type change you just made (set it like so "smartworld := 64;" INSTEAD of "smartworld := 'world64';")

There may be further issues but I think that's it.

Oh and you should check the settings of SmartSetupEx to ensure that it is using an unsigned java applet!