[JS]
2009-08-09 02:02:22
How Long have You Played Runescape?
6 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
HTML.
Are you a member of any other communities?
None.
Tell us about yourself…
[quote=[JS]]My name is Joe, I am 17 years of age. My planned future would consist of majoring in graphic design. Other than graphic design I would like to learn various types of coding. I see SRL/Villavu as a gateway into learning different types of coding which is why I chose to learn to script. Thanks for looking at application. :)
Note: Didn't include a progress report, if comes as an issue I will gladly add one.
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?
What is your general programming knowledge?
HTML.
Are you a member of any other communities?
None.
Tell us about yourself…
[quote=[JS]]My name is Joe, I am 17 years of age. My planned future would consist of majoring in graphic design. Other than graphic design I would like to learn various types of coding. I see SRL/Villavu as a gateway into learning different types of coding which is why I chose to learn to script. Thanks for looking at application. :)
Note: Didn't include a progress report, if comes as an issue I will gladly add one.
Please show us one (or multiple) of your scripts.
program VarrockEastMiner;
{.include SRL/SRL/Misc/Smart.scar}
{.include SRL/SRL.scar}
Type
TRadial = Record
Col, MinR, MaxR, Rad: Integer;
end;
var
RockColor: Array [0..2] Of Integer;
procedure DeclarePlayers;
begin
HowManyPlayers:= 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := 'name';
Players[0].Pass := 'pass';
Players[0].Nick := 'nick';
Players[0].Strings[0] := ''; //Rock you want to mine
Players[0].Booleans[0] := False; //PowerMine?
Players[0].Booleans[1] := False; //Pickaxe equpied?
Players[0].Active := True;
end;
Function BuildTRadial(Col, MinR, MaxR, Rad: Integer): TRadial;
begin
Result.Col := Col;
Result.MinR := MinR;
Result.MaxR := MaxR;
Result.Rad := Rad;
end;
Function LoadTRadial(Index: Integer): TRadial;
begin
Case Index of
0: Result := BuildTRadial(FindVarrockRoadColor, 70, 80, 70); // From bank
1: Result := BuildTRadial(FindVarrockRoadColor, 85, 95, 70);
2,3: Result := BuildTRadial(FindVarrockRoadColor, 87, 95, 70);
4..7: Result := BuildTRadial(FindVarrockRoadColor, 120, 200, 70);
8..10: Result := BuildTRadial(FindVarrockRoadColor, 0, 80, 70);
11: Result := BuildTRadial(FindVarrockRoadColor, 310, 360, 70);
12..15: Result := BuildTRadial(FindVarrockRoadColor, 260, 330, 70);
end;
end;
procedure AntiBan;
begin
Case Random(300) of
7: HoverSkill('random', False);
8: BoredHuman;
9: MouseBox(59, 31, 647, 264, 3);
10..14: MakeCompass(IntToStr(Random(361)));
15: RandomMovement;
16: SleepAndMoveMouse(1000+Random(2000));
17..20: GameTab(RandomRange(1, 13));
end;
end;
Procedure DeclareRockColors;
begin
case LowerCase(Players[CurrentPlayer].Strings[0]) of
'copper' :
begin
RockColor[0] := 4417680
RockColor[1] := 5011106
RockColor[2] := 5340588
end;
'tin' :
begin
RockColor[0] := 9671839
RockColor[1] := 6579308
RockColor[2] := 10855857
end;
'iron' :
begin
RockColor[0] := 2635094
RockColor[1] := 2964577
RockColor[2] := 2371662
end;
end;
end;
Function FindRock: Boolean;
var
x, y: Integer;
TPA, tTPA: TPointArray;
ATPA: T2DPointArray;
I, H: Integer;
begin
Result := False;
if not LoggedIn then Exit;
ColorToleranceSpeed(2);
SetColorspeed3Modifiers(1);
For I:=0 to 2 do
begin
FindColorsTolerance(tTPA, RockColor[i], MSX1, MSY1, MSX2, MSY2, 7);
TPA := CombineTPA(TPA, tTPA);
end;
ATPA := SplitTPA(TPA, 10);
SortATPAFrom(ATPA, Point(MSCX, MSCY));
H := High(ATPA);
For i:=0 to H do
begin
MiddleTPAEx(ATPA[i], x, y);
Mouse(x, y, 4, 4, False);
Result := WaitOption('ine', 300);
If Result then
begin
Flag;
Exit;
end;
end;
end;
Procedure DropOre;
var
I: Integer;
begin
if not (LoggedIn) then
Exit;
FindNormalRandoms;
GameTab(tab_inv);
If Players[CurrentPlayer].Booleans[1] then
Inc(I) else
I := 2;
For I:=I to 28 do
DropItem(I);
end;
Function RWalk(Rec: TRadial): Boolean;
begin
Result := RadialRoadWalk(Rec.Col, Rec.MinR, Rec.MaxR, Rec.Rad, 0, 0);
end;
Function GetInsideMine: Boolean;
Var
X, Y: Integer;
TPA: TPointArray;
begin
If FindColors(TPA, FindStoneColor, MMX1, MMCY, MMCX, MMY2)then
begin
MiddleTPAEx(TPA, X, Y);
Mouse(X, Y, 3, 3, True);
Wait(100+Random(100));
Flag;
Result := True;
Exit;
end else
If FindSymbol(X, Y, 'mining shop')then
begin
Mouse(X, Y, 3, 3, True);
Wait(100+Random(100));
Flag;
Result := True;
Exit;
end;
end;
function WalkToMine: Boolean;
var
I: Integer;
begin
Result := False;
If Players[CurrentPlayer].Booleans[0] then
Exit;
For I:=0 to 7 do
Begin
Result := RWalk(LoadTRadial(I));
If Not Result then
Begin
Writeln('Walking #' + IntToStr(I) + ' Failed.');
Logout;
Exit;
end;
end;
If Not GetInsideMine then
begin
Writeln('Getting Inside the mine failed');
Logout;
end;
end;
function WalkToBank: Boolean;
var
I: Integer;
begin
For I:=8 to 16 do
Begin
Result := RWalk(LoadTRadial(I));
If Not Result then
Begin
Writeln('Walking #' + IntToStr(I) + ' Failed.');
Logout;
Exit;
end;
end;
Result := FindBank('veb');
end;
Procedure BackToBank;
var
I: Integer;
begin
If Not WalkToBank then
begin
Writeln('Walking to bank failed, NextPlayer.');
Logout;
Exit;
end;
If Not OpenBankFast('veb')then
begin
Writeln('Failed opening bank, NextPlayer.');
Logout;
Exit;
end;
If Players[CurrentPlayer].Booleans[1] then
Inc(I)
else
I := 2;
Deposit(I, 28, True);
Case Random(4) of
0: CloseBank;
end;
end;
Procedure WaitMining;
var
Time, C: Integer;
begin
C := InvCount;
Time := GetSystemTime;
While C = InvCount do
begin
AntiBan;
FindNormalRandoms;
If (GetSystemTime-Time) > 5000 then
Exit;
end;
end;
Procedure NewPlayer;
begin
DeclareRockColors;
SetAngle(True);
RunEnergy(40+Random(40));
end;
begin
{$IFDEF SRL_SMART}
Smart_Server := 65;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
{$ENDIF}
SetupSRL;
DeclarePlayers;
LoginPlayer;
NewPlayer;
repeat
If Not LoggedIn then
begin
NextPlayer(False);
NewPlayer;
end;
If Not WalkToMine then
begin
Writeln('Walking to mine failed, NextPlayer.');
Logout;
end;
Repeat
If FindRock then
WaitMining
else
AntiBan;
Until(InvFull);
If Players[CurrentPlayer].Booleans[0] then
DropOre
else
BackToBank;
Until(AllPlayersInactive);
end.