apx900
2009-04-16 02:43:38
First things first,
This is like my first script that does more then one task
This is also the first script that involves different locations
This script does not have anti-randoms.
It does have an ok antiban.
I will hopefully update it with improvements.
I recommend NOT RUNNING THIS SCRIPT UNATTENDED.
Please DO Post Some Proggies and any comments which may help me improve this.
This is like my first script that does more then one task
This is also the first script that involves different locations
This script does not have anti-randoms.
It does have an ok antiban.
I will hopefully update it with improvements.
I recommend NOT RUNNING THIS SCRIPT UNATTENDED.
Please DO Post Some Proggies and any comments which may help me improve this.
program Apx900GuildFisher;
{.include SRL/SRL.scar}
{.include SRL/SRL/Misc/arrayLoader.scar}
{.include srl/srl/misc/Users.scar}
Var
x,y,Banked:integer;
const
DockColour = 799294;
MiniOblisk = 11517872;
procedure PlayerSetup;
begin
LampSkill := 'fletching'//If It Finds Lamp What Skill? yet to use
CurrentPlayer := 0; //Int!
HowManyPlayers := 1; //Int!
NumberOfPlayers(HowManyPlayers);
Players[0].Name := ' ';//UserName
Players[0].Pass := ' '; //Password
Players[0].Nick := ' '; //Nick Name
Players[0].Active := True; //Use This Player [ True / False ]
Players[0].Integers[0] := 10; //Number Of Loads
Players[0].Strings[0] := ' '; //BankPin [If Any]
Players[0].Integers[1] := 75; //Logout Every How many loads?
Players[0].Integers[2] := 3; //Stay Logged Out for how many minutes?
end;
procedure introtext;
begin;
cleardebug;
writeln('');
wait(300);
writeln(' _____ ______________ ___ ________ .__.__ .___');
wait(300);
writeln(' / _ \\______ \ \/ / / _____/ __ __|__| | __| _/');
wait(300);
writeln(' / /_\ \| ___/\ / / \ ___| | \ | | / __ | ');
wait(300);
writeln('/ | \ | / \ \ \_\ \ | / | |__/ /_/ | ');
wait(300);
writeln('\____|__ /____| /___/\ \ \______ /____/|__|____/\____ | ');
wait(300);
writeln(' \/ \_/ \/ \/ ');
wait(300);
writeln('___________.__ .__ ');
wait(300);
writeln('\_ _____/|__| _____| |__ ___________ ');
wait(300);
writeln(' | __) | |/ ___/ | \_/ __ \_ __ \ ');
wait(300);
writeln(' | \ | |\___ \| Y \ ___/| | \/ ');
wait(300);
writeln(' \___ / |__/____ >___| /\___ >__| ');
wait(300);
writeln(' \/ \/ \/ \/ ');
wait(300);
writeln('');
end;
procedure FastSwitchTabs; // Taken from RM Fisher by Rasta Magician
var x, y, i, h:integer;
begin
if not LoggedIn then exit;
GetMousePos(x, y);
PickUpMouse;
IncEx(MouseSpeed, 10);
i := GetCurrentTab;
repeat
h := 1+Random(12);
until(h <> i)
GameTab(h);
wait(500+Random(500));
GameTab(i);
MMouse(x, y, 3, 3);
DecEx(MouseSpeed, 10);
end;
procedure Apx900AntiBan;
begin
case random(8) of
0: PickUpMouse;
1: Writeln('Decided, Its Wise To Not Perform Antiban This Round');
2: RandomMovement;
3: Writeln('Decided, Its Wise To Not Perform Antiban This Round');
4: RandomRClick;
5: Writeln('Decided, Its Wise To Not Perform Antiban This Round');
6: case random(3) of
0: HoverSkill('Attack', false);
1: HoverSkill('Strength', false);
2: HoverSkill('Defence', false);
3: HoverSkill('Fishing', false);
7: FastSwitchTabs; //taken from RM Fisher By Rasta Magician
8: Writeln('Decided, Its Wise To Not Perform Antiban This Round');
end;
end;
end;
Procedure Proggy;
begin
ClearDebug;
Banked := Banked + 1;
writeln('---------------//////----------------');
writeln('--------------( o o )----------------');
writeln('-----------oo0--(_)-0oo--------------');
Writeln('=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=');
Writeln('|| Banked ' + IntToStr (Banked)+ ' Times ||');
Writeln('|| Gained ' + IntToStr (Banked*2430)+ ' Exp ||');
Writeln('=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=');
Writeln('=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=');
end;
Procedure Equipmentcheck;
Begin
MMouseItem(1);
if IsUpText('Lobster pot')then
begin
WriteLn('Found Lobster Pot');
end else
WriteLn('Lobster Pot Not Found');
exit;
end;
Procedure ToDock;{Working}
begin
RadialRoadWalk(DockColour, 70, 100, 50, -1, 1);
end;
Procedure ToBank;
Begin
if LoggedIn then SymbolAccuracy := 0.5;
writeln('Inventory Full.');
RadialWalk(MiniOblisk, 270, 225, 90, 1, -1);
FindSymbol(x, y, 'Bank');
mouse(x,y,4,2,true);
SymbolAccuracy := 0.8;
end;
Procedure OpenTheBank;
begin
repeat
FindBank('db');
If not BankScreen then FindBank('akb');
until BankScreen;
end;
Procedure DepositItem;
begin
MouseItem(2,false);
wait(Random(500));
ChooseOption('sit-All');
Proggy;
wait(Random(2000));
end;
Procedure FindfishingSpot;
begin
repeat
FindObjCustom(x,y,['cage','age','cag'],[8943468,8417382,9340029,8944499,11379871,
10195339,9800323],20)
mouse(x,y,4,4,false);
until ChooseOption('Cage');
end;
Procedure InventoryCheck;
begin
ClearDebug;
repeat
if not InvFull then WriteLn('Inventory Not Full.');
WriteLn('Attempting To Perform Antiban');
Apx900AntiBan;
wait(random(60000));
FindFishingSpot;
wait(random(5000));
Apx900AntiBan;
until InvFull;
end;
Procedure OffToBank;
begin
ToBank;
end;
Procedure MainLoop;
begin
SetupSrl;
PlayerSetup;
Writeln('Logging In');
LoginPlayer;
repeat
ToDock;
InventoryCheck;
OpenTheBank;
DepositItem;
ToDock;
until false;
end;
Begin
activateclient;
setupsrl;
IntroText;
PlayerSetup;
Writeln('Logging In');
LoginPlayer;
Equipmentcheck;
ToDock;
repeat
InventoryCheck;
OffToBank;
OpenTheBank;
DepositItem;
Proggy;
wait(random(2000));
ToDock;
until Banked =(Players[0].Integers[0]);
end.