Grimtoker
2011-12-21 23:36:05
How Long have You Played Runescape?
10 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
Pascal
Are you a member of any other communities?
No
Tell us about yourself…
Please show us one (or multiple) of your scripts.
10 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
Pascal
Are you a member of any other communities?
No
Tell us about yourself…
From: Grimtoker
I'm Tom, 22 and from the UK. My interests are gaming, surfing and recently scripting after countless hours and very late nights!! Hoping to become a member here and learn more to help the community further.
Please show us one (or multiple) of your scripts.
program GrimsGnomeAgility;
{$I SRL/SRL/misc/smart.scar}
{$I SRL/SRL.scar}
//Start the script standing within a few squares of Balancing log
var
x, y, i, Time, StartTime:Integer;
LoopBegin:Integer;ClickRed : Boolean;
MyTPA : TPointArray;
MyPoint : TPoint;
Const
NumbOfPlayers= 1;
StartPlayer= 0;
Version= '1.2';
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := 'name here';
Players[0].Pass := 'pass here';
Players[0].Active := True;
end;
procedure SetupLogin;
begin
ClearDebug;
Smart_Server := 10;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
DeclarePlayers;
LoginPlayer;
end;
procedure ProgressReport;
begin
ClearDebug;
WriteLn('********************************************');
WriteLn(' Grims Gnome Agility');
WriteLn('********************************************');
WriteLn('Script Ran For: ' + TimeRunning);
WriteLn('********************************************');
end;
procedure AntiBan;
begin
case random(40) of //Increase number for less AntiBans
0: RandomRClick;
1: PickUpMouse;
2: HoverSkill('strength', False);
3: HoverSkill('attack', False);
4: HoverSkill('agility', False);
5: ExamineInv;
end;
end;
procedure AntiRandoms;
begin
FindNormalRandoms;
end;
function RopeColor: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
R, G, B: Integer;
X, Y, Z: Extended;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.02, 0.12);
FindColorsSpiralTolerance(MSCX, MSCY, arP, 5140878, MSX1, MSY1, MSX2, MSY2, 9);
if (Length(arP) = 0) then
begin
Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end;
arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);
for i := 0 to arL do
begin
ColorToRGB(arC[i], R, G, B);
if (R >= 115) and (R <= 169) and (G >= 91) and (G <= 135) and (B >= 63) and (B <= 94) then
begin
ColorToXYZ(arC[i], X, Y, Z);
if (X >= 11.94) and (X <= 26.67) and (Y >= 11.72) and (Y <= 26.19) and (Z >= 6.47) and (Z <= 14.02) then
begin
Result := arC[i];
Break;
end;
end;
end;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
if (i = arL + 1) then
Writeln('AutoColor failed in finding the color.');
end;
Procedure Log;
Begin
SetAngle(True);
MarkTime(LoopBegin);
begin
FindColorsTolerance(MyTPA, 999018, 150, 129, 363, 272, 10);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 5, 5);
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
Wait(6500+Random(500));
WriteLn('Log done..');
Break;
end;
end;
end;
End;
Procedure Net;
Begin
AntiRandoms;
AntiBan;
begin
FindColorsTolerance(MyTPA, 1064812, 118, 312, 158, 336, 10);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 5, 5);
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
Wait(6500+Random(500));
WriteLn('Net done..');
Break;
end;
end;
end;
End;
Procedure BranchUp;
Begin
AntiRandoms;
AntiBan;
begin
FindColorsTolerance(MyTPA, 1985893, 326, 180, 351, 207, 10);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 5, 5);
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
Wait(6500+Random(500));
WriteLn('Branch up done..');
Break;
end;
end;
end;
End;
Procedure Rope;
Begin
MarkTime(LoopBegin);
if TimeFromMark(LoopBegin) > 60000 then
TerminateScript;
repeat
FindObjEx(x, y, ['alancing', 'ope'], [RopeColor], 10, 2, 436, 163, 452, 191);
until IsUpText('ope')
repeat
wait(250);
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
ClickRed := DidRedClick;
Wait(200+Random(100));
until ClickRed;
Wait(6000+Random(500));
WriteLn('Rope walk done..');
End;
Procedure BranchDown;
Begin
AntiRandoms;
AntiBan;
begin
FindColorsTolerance(MyTPA, 1919327, 359, 202, 384, 221, 10);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 5, 5);
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
Wait(4500+Random(500));
WriteLn('Branch down done..');
Break;
end;
end;
end;
End;
Procedure Net2;
Begin
SetAngle(False);
wait(750+Random(250));
begin
FindColorsTolerance(MyTPA, 998762, 306, 39, 325, 84, 10);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 5, 5);
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
Wait(6500+Random(500));
WriteLn('Net2 done..');
Break;
end;
end;
end;
End;
Procedure Pipe;
Begin
AntiRandoms;
AntiBan;
begin
FindColorsTolerance(MyTPA, 7763579, 235, 64, 286, 96, 10);
for i := 0 to High(MyTPA)do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 5, 5);
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
Wait(6500+Random(500));
WriteLn('Pipe done..');
Break;
end;
end;
end;
End;
Procedure WalkToStart;
Begin
Mouse(576, 93, 2, 2, True);
SetAngle(True);
Wait(5000+Random(500));
WriteLn('Walk to start done.. Yay!');
AntiRandoms;
AntiBan;
End;
Begin
SetupLogin;
SetupSRL;
DeclarePlayers;
ActivateClient;
StartTime:= GetSystemTime;
Time := (GetSystemTime-StartTime);
repeat
Log;
Net;
BranchUp;
Rope;
BranchDown;
Net2;
Pipe;
WalkToStart;
ProgressReport;
until(false);
End.