skvatboy
2009-07-06 16:07:23
How Long have You Played Runescape?
4 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
none
Are you a member of any other communities?
no
Tell us about yourself…
Please show us one (or multiple) of your scripts.
4 Year(s)
Are you affilated in anyway with Jagex LTD?
No
Were you Referred to SRL?
What is your general programming knowledge?
none
Are you a member of any other communities?
no
Tell us about yourself…
From: skvatboy
Am a 20 years
a communicate expert in denmark
and i like the open source commuter in here
the freedom of share :)
Please show us one (or multiple) of your scripts.
program EyeofNewtBuYeR;
{.include srl/srl/misc/smart.scar}
{.include srl/srl.scar}
{.include srl/srl/misc/FaladorColorFinder.scar}
const
SmartWorldNo = 120;
Signed = True;
Amount = 200;
procedure DeclarePlayers;
begin
NumberOfPlayers(1);
CurrentPlayer := 0;
Players[0].Name := ''; //Player username
Players[0].Pass := ''; //Player password
Players[0].Nick := ''; //Player nickname - 3-4 letters of Player usernamne.
Players[0].Active := True; //Is the player active (do you want to auto on this acc)?
Players[0].Pin := ''; //Bank Pink, leave as '' for no bank pin... MUST BE A STRING!
Players[0].BoxRewards := ['XP', 'ostume', 'Gem', 'ithril', 'oal', 'une', 'mote', 'oins'];
end;
var x,y: integer;
function Doortomagic: Integer;
var
dtmMainPoint: TDTMPointDef;
dtmSubPoints: Array [0..4] of TDTMPointDef;
TempTDTM: TDTM;
begin
dtmMainPoint.x := 920;
dtmMainPoint.y := 358;
dtmMainPoint.AreaSize := 0;
dtmMainPoint.AreaShape := 0;
dtmMainPoint.Color := 5793390;
dtmMainPoint.Tolerance := 255;
dtmSubPoints[0].x := 920;
dtmSubPoints[0].y := 358;
dtmSubPoints[0].AreaSize := 0;
dtmSubPoints[0].AreaShape := 0;
dtmSubPoints[0].Color := 5793390;
dtmSubPoints[0].Tolerance := 255;
dtmSubPoints[1].x := 929;
dtmSubPoints[1].y := 348;
dtmSubPoints[1].AreaSize := 2;
dtmSubPoints[1].AreaShape := 0;
dtmSubPoints[1].Color := 1793900;
dtmSubPoints[1].Tolerance := 15;
dtmSubPoints[2].x := 929;
dtmSubPoints[2].y := 339;
dtmSubPoints[2].AreaSize := 4;
dtmSubPoints[2].AreaShape := 0;
dtmSubPoints[2].Color := 6316135;
dtmSubPoints[2].Tolerance := 15;
dtmSubPoints[3].x := 930;
dtmSubPoints[3].y := 361;
dtmSubPoints[3].AreaSize := 4;
dtmSubPoints[3].AreaShape := 0;
dtmSubPoints[3].Color := 5793390;
dtmSubPoints[3].Tolerance := 15;
dtmSubPoints[4].x := 912;
dtmSubPoints[4].y := 366;
dtmSubPoints[4].AreaSize := 2;
dtmSubPoints[4].AreaShape := 0;
dtmSubPoints[4].Color := 65536;
dtmSubPoints[4].Tolerance := 5;
TempTDTM.MainPoint := dtmMainPoint;
TempTDTM.SubPoints := dtmSubPoints;
Result := AddDTM(TempTDTM);
end;
procedure OpenFaladorBank;
Begin
If(Not(LoggedIn)) Then Exit;
FindNormalRandoms;
if not BankScreen then
FindBank('fwb');
if not BankScreen then
FindBank('lb');
end;
Procedure CheckGetCash;
Begin
If(Not(LoggedIn)) Then Exit;
gametab(4);
IF (CoinAmount('inv') > 50) Then Exit;
if not BankScreen then OpenFaladorBank;
FindCoins(X, Y, 'bank');
begin
Mouse(x, y, 4, 4,false);
Wait(150 + random(200));
if (Amount > 0) then
begin
ChooseOption('Withdraw-X')
Wait(1000 + Random(100));
TypeSend(IntToStr(Amount));
end;
if (Amount = 0) then
begin
ChooseOption('Withdraw-All')
end;
end;
Deposit(2, 28, True);
CloseBank;
end;
Procedure DoorClosed;
var Door,C: Integer;
Begin
Door := DTMFromString('78DA63FCC5C0C0B0990105E4A6DA338800694' +
'6289FF13990C84755931263C9C085AE6612AA9A9A6277067E64354F8' +
'184292386392876ED01121750CD49CDC941510300F0D00CF9');
If(Not(LoggedIn)) Then Exit;
C:=0
repeat
C:=C+1
if (FindDTM(Door, x, y, MSX1, MSY1, MSX2, MSY2)) then
begin
Writeln('Door Found');
MMouse(x,y,5,5);
If Isuptext('pen')then
begin
mouse(x,y,0,0,true);
Writeln('Door clik');
end;
Writeln('Door open');
end;
until (C >=10);
FreeDTM(Door);
end;
procedure WalkToMagic;
begin
If(Not(LoggedIn)) Then Exit;
FindNormalRandoms;
MakeCompass('n');
SetRun(true);
begin
RadialWalk(FindFallyRoadColor, 200 , 230, 50, 2 , 2)
repeat
RadialWalk(FindFallyRoadColor, 165 , 195, 63, 2 , 2)
Until FindSymbol(x, y, 'tree');
WriteLn('Find tree');
repeat
wait(20)
if not RadialWalk(FindRoadColor, 190, 130, 70, 2 , 2) then
RadialWalk(FindRoadColor, 210, 130, 70, 2 , 2);
until FindSymbol(x, y, 'resting spot');
WriteLn('resting spot');
wait(2000);
Mouse(635, 130,15,20,true);
FFlag(0);
//SymbolAccuracy:=0.5;
if FindDTM(Doortomagic, X, Y, MMx1,MMy1,MMx2,MMy2) then
begin
Mouse(X, Y, 8, 8, True);
WriteLn('Walk to door');
FFlag(0);
end;
end;
FreeDTM(Doortomagic);
end;
Procedure WalkToBank;
begin
If(Not(LoggedIn)) Then Exit;
wait(200)
Mouse(610, 45,12,13,true);
wait(2000);
FFlag(0);
repeat
WriteLn('walk');
RadialRoadWalk(FindRoadColor, 340,375, 65, 2, 2);
FFlag(0);
Until (FindFallyRoadColor) > 0;
repeat
WriteLn('walkFallyRoad');
RadialRoadWalk(FindFallyRoadColor, 350,385, 65, 2, 2);
FFlag(0);
until FindSymbol(x, y, 'bank');
end;
procedure FindBrtty;
var
Betty, C: Integer;
Begin
Betty := DTMFromString('78DA630C65606098CE8002ECB5EC192481342' +
'394CF180824FA206C16A89888B030033FB29A0420B108558DA2B4148' +
'A1A00153E044B');
C:=0
If(Not(LoggedIn)) Then Exit;
If ShopScreen then Exit;
repeat
C:=C+1
Begin
Wait(1000 + Random(500));
if (FindDTM(Betty, x, y, MSX1, MSY1, MSX2, MSY2)) then
begin
Writeln('Betty found');
MMouse(x,y,5,5);
If Isuptext('etty')then
Mouse(x,y,2,2,False);
ChooseOption('Trade')
Begin
Writeln('Trade');
if ShopScreen then Break;
end;
end;
end;
until (C >=15);
FreeDTM(Betty);
end;
procedure ByNewts;
var Newt: Integer;
begin
Newt := BitmapFromString(5, 9, 'beNqbN+/q+fNXzp3bv3Xr8tmze5q' +
'a7t++LSazTVRqlbDEvAVTp4jL7heT2SkqLAxE03t7Prx7B2ED0cy+vicPH965' +
'fv3y2TOnDx+eO2kinHt8/75F06ZBuBdOnTy8a9fmFSuA3FtXr545ehRo1/rFi' +
'4Hc6xcvnjhwYPfGDasAVkNUxw==');
If(Not(LoggedIn)) Then Exit;
if not(ShopScreen) then Exit;
if(FindBitmapIn(Newt,x,y,msx1,msy1,msx2,msy2))then
Writeln('News');
MMouse(x,y,5,5);;
If Isuptext('ye of')then
Mouse(x,y,1,1,False);
ChooseOption('X');
begin
Wait(1000);
TypeSend('28');
closewindow;
end;
FreeDTM(Newt);
end;
Procedure ChatsSetUp;
Begin
If(Not(LoggedIn)) Then Exit;
setrun(true)
gametab(4);
MakeCompass('n');
FindNormalRandoms;
SetAllChats('all', 'on', 'off', '', '', '');
SetAngle(True);
end;
procedure SetupScript;
begin
{$IFDEF SRL_SMART}
Smart_Server := SmartWorldNo;
Smart_Signed := Signed;
{$ENDIF}
SetupSRL;
DeclarePlayers;
SetAudioOff;
If (Not(LoggedIn)) then LoginPlayer;
end;
begin
SetupScript;
ChatsSetUp;
CheckGetCash;
WalkToMagic;
DoorClosed;
FindBrtty;
ByNewts;
WalkToBank;
CheckGetCash;
end.