insanomano
2011-11-12 20:27:35
How Long have You Played Runescape?
6 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
No
What is your general programming knowledge?
N/A
Are you a member of any other communities?
No
Tell us about yourself…
Please show us one (or multiple) of your scripts.
6 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
No
What is your general programming knowledge?
N/A
Are you a member of any other communities?
No
Tell us about yourself…
From: insanomano
My name is Jordan, I am a recent high school graduate. I have been at SRL for quite a few years now. I enjoy partying, and working, and am hoping to go to college shortly for something programming related.
Please show us one (or multiple) of your scripts.
program BarbarianVillagePowerFisher;
{$i srl/srl/misc/smart.scar}
{$i srl/srl.scar}
var
LoadsDone, FishCaught, BCounter, BBCounter, Antibani, z, TXP, SXP, TotalXP, XPTroutCaught: integer;
XPSalmonCaught, TroutCaught, SalmonCaught, TroutDtm, SalmonDtm, x, y, i: integer;
DynamicStatus: string;
const
HowLongToBreak = 20; //how long do you want to break for? 20/40/60 mins?
HowManyLoads = 20; // after how many loads of fish do you want to take a break
FishToCatch = 9000; // How many fish to catch
RippleColor = 12499382;
FishSymbolColor = 14105870;
WORLD = 83;
MEMBERS = True;
SIGNED = True;
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := 'username'; // Username
Players[0].Pass := 'password'; // Password
Players[0].Active := True; // Set to true if you want to use this Player
Players[0].Pin := ''; // Leave blank if player doesn't have a bankpin
Players[0].BoxRewards := ['Xp', 'mote', 'ostume', 'oins', 'aphire', 'ssence'];
end;
Procedure KickAssProgressReport;
begin
ClearDebug;
Writeln('|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|');
Writeln('| Barb Village PowerFisher! |');
Writeln('|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|');
Writeln(PadR('| Ran for ' + (TimeRunning) + '.', 52) + '|');
Writeln(PadR('| ' + IntToStr(TroutCaught) + ': Trout Caught.', 52) + '|');
Writeln(PadR('| ' + IntToStr(SalmonCaught) + ': Salmon Caught.', 52) + '|');
Writeln(PadR('| ' + IntToStr(LoadsDone) + ': Loads Completed.', 52) + '|');
Writeln(PadR('| ' + IntToStr(TotalXP) + ': Fishing Experience Gained.', 52) + '|');
Writeln(PadR('| ' + IntToStr(Antibani) + ': AntiBan Procedures Completed.', 52) + '|');
Writeln(PadR('| ' + IntToStr(BBCounter) + ': Breaks Taken.', 52) + '|');
Writeln('|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|');
Writeln(PadR('| Status: ' + (DynamicStatus) + '.', 52) + '|');
Writeln('|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|');
Writeln(PadR('| Version: 1.00', 52) + '|');
Writeln('|=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|');
end;
Procedure BreakForTits;
var
BreakTime: integer;
begin
BBCounter := BBCounter + 1;
DynamicStatus := ('Taking a break.');
KickAssProgressReport;
if HowLongToBreak = 20 then BreakTime := 1200000;
if HowLongToBreak = 40 then BreakTime := 2400000;
if HowLongToBreak = 60 then BreakTime := 3600000;
DynamicStatus := ('Taking a break for ' + FloatToStr(HowLongToBreak) + ' minutes');
KickassProgressReport;
Logout;
Wait(BreakTime + random(480000)); // breaking for breaktime + a random 8 minutes
LoginPlayer;
BreakTime := 0;
BCounter := 0;
end;
procedure AntiRandoms; // *** Calls Anti-randoms(Reflection+Color) ***
begin
DynamicStatus := ('Checking for randoms');
KickAssProgressReport;
if not LoggedIn then TerminateScript;
MakeCompass('N');
SetAngle(true);
FindNonInventoryRandoms;
FindNormalRandoms;
LampSkill := ('fishing');
LevelUp;
DynamicStatus := ('Finished checking for randoms');
KickAssProgressReport;
end;
Procedure RandomMouseMove;
begin
case random(6) of
1: MMouse(MSCX, MSCY, 180, 120);
2: MMouse(MSCX, MSCY, 190, 200);
3: MMouse(MSCX, MSCY, 200, 240);
4: MMouse(MSCX, MSCY, 300, 150);
end;
end;
Procedure CheckLevel;
begin
GameTab(23);
MMouse(706, 281, 8, 8);
Wait(1500 + random(2000));
GameTab(25);
end;
Procedure AntiBan;
begin
Antibani := Antibani + 1;
DynamicStatus := ('Performing an antiban procedure');
KickAssProgressReport;
case random(2) of
0: RandomMouseMove;
1: CheckLevel;
end;
DynamicStatus := ('Fishing.');
KickAssProgressReport;
end;
Procedure DropFishOnly;
var
FishDTM: integer;
begin
FishDTM := DTMFromString('mfgEAAHicrc1BCoNADIXhNwMiWAQVj6K0FETQLuqiCy+mK0/rwv7DZOdSAx/hhYRUknovtXih8zEP+OCLn5kx2Xy0vTeeaPBwUo4MCTwOxe6wK/aQU9stUaE2BbZ1CVeXhd93lLvJuf6cjApZ');
DropItemsByIdentifier('dtm', FishDTM, []);
FreeDTM(FishDTM);
end;
Procedure DropFish;
begin
AntiRandoms;
LoadsDone := LoadsDone + 1;
TroutDTM := DTMFromString('m1gAAAHicjcshDoAwFIPhviVMDBwcZQmCGQgIFCeb4sDbj0JuTb7UtEHS7qSEAyduPLiwIWJFMMmj8HG0YJiwYMaIN+dv0TSoL9bpTwW13QXM');
SalmonDTM := DTMFromString('mwQAAAHic42RgYMhiguA8IC4H4mIgzgXidCCOA+IkINZlZGBQBWI1IFYBYm0gNgFicyA2A2I9IG4P9QGaxoQXszIQBoxEYDgAAAl9BsE=');
TroutCaught := TroutCaught + (CountItems('DTM', TroutDTM, []));
SalmonCaught := SalmonCaught + (CountItems('DTM', SalmonDTM, []));
FishCaught := (TroutCaught + SalmonCaught);
XPTroutCaught := (CountItems('DTM', TroutDTM, []));
XPSalmonCaught := (CountItems('DTM', SalmonDTM, []));
TXP := TXP + (XPTroutCaught * 50);
SXP := SXP + (XPSalmonCaught * 70);
TotalXP := (TXP + SXP);
FreeDtm(TroutDTM);
FreeDtm(SalmonDTM);
DynamicStatus := ('Dropping fish');
KickAssProgressReport;
DropFishOnly;
ArrangeInv;
BCounter := BCounter + 1;
end;
Procedure FindNewFishingSpot;
begin
z := 0;
if RadialWalkTolerance(FishSymbolColor, 1, 90, 100, x, y, 5) then
begin
DynamicStatus := ('Walking to North fishing spot');
KickAssProgressReport;
RadialWalkTolerance(FishSymbolColor, 1, 90, 100, x, y, 5)
Wait(500);
AntiRandoms;
Flag;
wait(1000 + random(500));
Exit;
end else if not RadialWalkTolerance(14105870, 1, 90, 100, x, y, 5) then
begin
DynamicStatus := ('Walking to South fishing spot');
KickAssProgressReport;
RadialWalkTolerance(FishSymbolColor, 180, 270, 50, x, y, 5);
Wait(500);
AntiRandoms;
Flag;
Exit;
end;
end;
Procedure FindFishRippleTPA;
var
FishRippleTPA: TPointArray;
FishPoint: Tpoint;
begin
AntiRandoms;
if InvFull then Exit;
DynamicStatus := ('Currently Looking for fishing spot');
KickAssProgressReport;
repeat
z := z + 1;
wait(10);
until ((FindColorsSpiralTolerance(MSCX, MSCY, FishRippleTPA, RippleColor, MSX1, MSY1, MSX2, MSY2, 2)) or (z >= 500));
if z >= 500 then FindNewFishingSpot;
z := 0;
for i:= 0 to High(FishRippleTPA) do
begin
FishPoint := FishRippleTPA[i];
MMouse(FishPoint.x, FishPoint.y, 3, 3);
wait(1050 + random(250));
if IsUptext('ure') then
begin
DynamicStatus := ('Found fishing spot');
KickAssProgressReport;
GetMousePos(x, y);
Mouse(x, y, 0, 0, false);
wait(250 + random(250));
ChooseOption('ure');
DynamicStatus := ('Fishing');
KickAssProgressReport;
wait(3000 + random(2000));
AntiBan;
repeat
wait(100);
until not (FindColorSpiralTolerance(x, y, 859949, 279, 155, 293, 171, 10)); //fishing rod color
if InvFull then Exit;
if (FindColorsSpiralTolerance(MSCX, MSCY, FishRippleTPA, RippleColor, MSX1, MSY1, MSX2, MSY2, 2)) then Exit;
end else FindNewFishingSpot;
end;
end;
Procedure CastForFish;
begin
FindFishRippleTPA;
wait(2500 + random(2000));
AntiRandoms;
end;
Procedure BootSmart;
begin
Smart_Server := WORLD;
Smart_Members := MEMBERS;
Smart_Signed := SIGNED;
Smart_SuperDetail := False;
end;
Procedure SetupScript;
begin
BootSmart;
SetupSrl;
DeclarePlayers;
ActivateClient;
ClearDebug;
LoginPlayer;
end;
begin;
SetupScript;
repeat
repeat
CastForFish;
until(InvFull);
DropFish;
if BCounter >= (HowManyLoads) then BreakForTits;
if not (Loggedin) then TerminateScript;
until(FishCaught >= FishToCatch);
DynamicStatus := ('Caught All the fish we wanted, Logging Out!');
KickAssProgressReport;
Logout;
TerminateScript;
end.