insanomano
2009-12-29 03:59:48
How Long have You Played Runescape?
3 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
Html, Pascal
Are you a member of any other communities?
No
Tell us about yourself…
Please show us one (or multiple) of your scripts.
3 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
Html, Pascal
Are you a member of any other communities?
No
Tell us about yourself…
From: insanomano
I'm from canada, I'm a 16 year old guy, I like hanging out with friends, snowboarding, scripting, helping out if I can.
Please show us one (or multiple) of your scripts.
program InsaneGuildMiner;
{.include SRL\SRL.scar}
// My ClimbDownLadder and FindAndOpenBank procedures are bugged because of the UpText problem.
var
LoadsMined: integer;
const
Loads = 1; //Enter the amount of loads you would like to do.
procedure DeclarePlayers;
begin
HowManyPlayers:= 1;
CurrentPlayer:= 0;
NumberOfPlayers(HowManyPlayers);
Players[0].Name := 'username';
Players[0].Pass := 'password';
Players[0].Nick := 'sern';
Players[0].Active := True;
{
Players[1].Name := '';
Players[1].Pass := '';
Players[1].Nick := '';
Players[1].Active := False;
Players[2].Name := '';
Players[2].Pass := '';
Players[2].Nick := '';
Players[2].Active := False;
Players[3].Name := '';
Players[3].Pass := '';
Players[3].Nick := '';
Players[3].Active := False;
Players[4].Name := '';
Players[4].Pass := '';
Players[4].Nick := '';
Players[4].Active := False; }
end;
procedure AntiRandoms;
begin
if not LoggedIn then Exit;
FindNormalRandoms;
if FindFight then
RunAway('N', True, 1, 5000);
FindLamp('Mining');
end;
procedure AntiBan;
begin
if not LoggedIn then Exit;
case Random(30) of
1: RandomRClick;
2: HoverSkill('Mining', False);
3: RandomMovement;
4: BoredHuman;
end;
end;
procedure CantFindRock;
begin
case Random(2) of
1: Mouse(651, 87, 4, 4, True);
2: Mouse(626, 70, 4, 4, True);
3: Mouse(609, 86, 4, 4, True);
4: Mouse(628, 100, 4, 4, True);
end;
end;
procedure ClimbDownLadder;
var
x, y: integer;
begin
repeat
if(FindObjCustom(x, y, ['limb-d', '-down'], [3960200, 4548475, 3952474, 4285045], 5)) then
Mouse(x, y, 1, 1, false);
ChooseOption('own');
until(FindBlackChatMessage('own'))
begin
SetAngle(true);
MakeCompass('N');
end;
end;
procedure SetPathToGuild(RadialWalkin: Integer);
begin
case RadialWalkin of
1: RadialWalkTolerance(6845560, 0, 90, 60, 2, 2, 10);
2: RadialWalkTolerance(6845560, 90, 200, 60, 2, 2, 10);
3: RadialWalkTolerance(6976890, 180, 270, 60, 2, 2, 10);
4: RadialWalkTolerance(6976890, 180, 270, 60, 2, 2, 10);
end;
end;
procedure WalkToGuild2;
var
i: integer;
begin
if not loggedin then exit;
Setrun(true);
for i := 1 to 4 do
begin
SetPathToGuild(i);
end;
ClimbDownLadder;
end;
procedure SetDTMs;
var
GemDTM: integer;
begin
GemDTM := DTMFromString('78DA634C676660E86664400682A2CD601A26C' +
'A180354D382AA86818109554D12504D330135E944A8C905AA6923' +
'A0261FD3CD58D5F41350930754338D809A34A09AE944F89D90397' +
'140355308A88906AAE923424D077E350065E90D53');
end;
Procedure FindAndOpenBank;
begin
AntiRandoms;
if not LoggedIn then Exit;
OpenBankFast('feb');
if(BankScreen) then
Exit;
if(not(BankScreen)) then
begin
repeat
OpenBankFast('feb');
until(BankScreen);
end;
end;
Procedure DepositItems;
var
GemDTM, x, y: integer;
begin
SetDTMs;
if (findcolorTolerance(x, y, 1976104, MIX1, MIY1, MIX2, MIY2, 5)) then
begin
Mouse(x, y, 2, 2, false);
ChooseOption('All');
end;
if (finddtm(GemDTM, x, y, MIX1, MIY1, MIX2, MIY2)) then
begin
Mouse(x, y, 2, 2, false);
ChooseOption('All');
end;
CloseBank
LoadsMined := LoadsMined + 1;
end;
Procedure ProgressReport;
Begin
ClearDebug;
Writeln('||========== ProgressReport ==========||');
Writeln(Padr('||- Finished: '+IntToStr(LoadsMined), 39)+ ' Loads -||');
Writeln(Padr('||- Ran for: '+(TimeRunning), 39)+ '-||');
Writeln('||====================================||');
End;
procedure SetPathToBank(RadialWalkin: Integer);
var
x, y: integer;
begin
case RadialWalkin of
1: if(FindColorTolerance(x, y, 3107432, 602, 16, 664, 43, 5)) then
begin
repeat
mouse(x, y, 1, 1, true);
Flag;
wait(200+random(200+random(200+random(200+random(200)))));
until(FindSymbol(x, y, 'bank') or (FindColorTolerance(x, y, 11976126, 243, 172, 275, 182, 5)))
end;
2: if(FindSymbol(x, y, 'bank')) then
begin
Mouse(x, y, 1, 1, true);
Flag;
end;
end;
end;
procedure WalkToBank;
var
i: integer;
begin
if not loggedin then exit;
Setrun(true);
for i := 1 to 2 do
begin
SetPathToBank(i);
end;
end;
procedure WalkToGuild;
var
x, y: integer;
begin
if(not(FindColorTolerance(x, y, 1787389, 618, 101, 672, 147, 5))) then
begin
WalkToGuild2;
end;
if(FindColorTolerance(x, y, 1787389, 618, 101, 672, 147, 5)) then
Mouse(x, y, 1, 1, true);
Flag;
ClimbDownLadder;
end;
procedure ClickRockMM;
var
x, y: integer;
begin
if not LoggedIn then Exit;
if(FindColorSpiralTolerance(x, y, 5658202, 556, 75, 675, 142, 10)) then
begin
wait(1000+Random(2000+random(3000)));
Mouse(x, y, 4, 4, True);
Flag;
Exit;
If(not(FindColorSpiralTolerance(x, y, 5658202, 556, 75, 675, 142, 10))) then
begin
CantFindRock;
end;
end;
end;
procedure ClimbLadder;
var
x, y: integer;
begin
if(FindColorSpiralTolerance(x, y, 4345686, 13, 50, 380, 322, 2)) then
mouse(x, y, 1, 1, false);
ChooseOption('limb');
wait(2000);
if(FindColorTolerance(x, y, 66817, 589, 27, 663, 493, 5)) then
begin
repeat
if(FindColorSpiralTolerance(x, y, 4345686, 13, 50, 380, 322, 2)) then
mouse(x, y, 1, 1, false);
ChooseOption('limb');
wait(2000);
until(FindColorTolerance(x, y, 3107432, 602, 16, 664, 43, 5))
end;
end;
Procedure LeaveGuild;
var
x, y: integer;
begin
AntiRandoms;
begin
repeat
if(FindColorTolerance(x, y, 5658202, 560, 55, 610, 157, 10)) then
Mouse(x, y, 1, 1, true);
Flag;
until(not(FindColorTolerance(x, y, 5658202, 560, 55, 610, 157, 10)))
begin
if(FindColorTolerance(x, y, 2968703, MMX1, MMY1, MMX2, MMY2, 10)) then
Mouse(x, y, 1, 1, true);
Flag;
ClimbLadder;
wait(500+random(500+random(500+random(500))));
end;
end;
end;
procedure SetGameChatSilence;
var
x, y: integer;
begin
if(FindColorTolerance(x, y, 925998, 66, 483, 82, 498, 2)) then Exit;
if(not(FindColorTolerance(x, y, 925998, 66, 483, 82, 498, 2))) then
begin
writeln('Setting Chat..')
wait(1000+random(1000+random(500)));
Mouse(91, 493, 1, 1, true);
end;
end;
procedure WaitOnMining;
begin
if(IsMoving) then
begin
repeat
wait(100);
until(not(IsMoving))
end;
end;
procedure MineCoal;
var
x, y: integer;
begin
AntiBan;
AntiRandoms;
SetAngle(true);
if(Not(FindColorSpiralTolerance(x, y, 2305582, 96, 93, 451, 269, 5))) then
begin
CantFindRock;
end;
begin
if(FindColorSpiralTolerance(x, y, 2305582, 96, 93, 451, 269, 2)) then
begin
Mouse(x, y, 1, 1, False);
ChooseOption('Mine');
Flag
WaitOnMining;
end;
end;
end;
procedure MiningGuild;
begin
if not LoggedIn then Exit;
MakeCompass('N');
SetAngle(True);
SetRun(True);
ClickRockMM;
repeat
begin
MineCoal;
end;
until(InvFull);
begin
LeaveGuild;
wait(1000+random(500+random(500)));
WalkToBank;
end;
end;
Procedure SetupScript;
begin
SetupSRL;
ClearDebug;
DeclarePlayers;
ActivateClient;
wait(200);
SetGameChatSilence;
end;
procedure Banking;
begin
FindAndOpenBank;
DepositItems;
end;
procedure MainLoop;
begin
WalkToGuild;
MiningGuild;
WalkToBank;
Banking;
ProgressReport;
end;
begin
SetupScript;
LoginPlayer;
repeat
MainLoop;
until(LoadsMined >= (Loads))
end.