SRL Archive - RS3 Outdated / Broken Scripts

Leyser's Vial Filler


Leyser

2012-06-02 07:10:21

Leyser Vial Filler (LeyVial) V-1.0.
Basic script at the moment I've tested it and it works for the moment its still running right now.
02/06/2012

This works at Varrock East Bank.

program VialFiller;
{$DEFINE SMART}
{$i srl/srl.simba}
{$i srl/srl/core/sps/sps.simba}
// {$i sps/sps.simba} if you get an error put a // above and before the include and delete the // in this and this message.

Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := ''; //Your UserName
Players[0].Pass := ''; //Your PassWord
Players[0].Nick := ''; //Your NickName
Players[0].Pin := ''; //Your Pin if you dont have a pin
Players[0].Active:=True; //leave pin blank

end;

var
VialDTM, VialDTM2:Integer;

Procedure Antiban;
begin
begin
Wait(300 + RandomRange(250, 300));
Case Random(60) Of
10:
begin
HoverSkill('random', False);
end;

20:
begin
Boredhuman;
end;

30:
begin
RandomRClick;
end;
end;
end;
end;

procedure DeclareDTMs;

begin
WriteLn('Declaring DTMs');
VialDTM := DTMFromString('mggAAAHicY2NgYOgD4ilAPAGIO4G4DYjbgXgOEM8C4mVAvBTKng7EIaERDMbGxkAWEwrmYsAOGHFgCAAAUp0Isw==');
VialDTM2 := DTMFromString('mwQAAAHicjcyxCYAwAAXRH63ihBEynFUKQYQ0gm6SQi0ERZfwKsvEg9eelXTU0o0HOxJWbDhxIRppxIwFEwYEdOjhWs+tympUzvzw9QJZQQ+H');
end;

procedure FreeeDTMs;

begin
WriteLn('Freeing DTMs');
FreeDTM(VialDTM);
FreeDTM(VialDTM2);
end;
procedure TakeOutVials;
var
x, y:Integer;
begin
if OpenBankFast('veb') then
DepositAll;
if FindDTM(VialDTM, x, y, MSX1, MSY1, MSX2, MSY2) then
begin
Mouse(x, y, 5, 5, 0);
ChooseOption('ithdraw-All');
end;
end;

procedure WalkToMiddle;
var
x, y:Integer;
MyPath:TPointArray;
begin
SPS_Areas := ['11_3'];
MyPath := [Point(4634, 1422), Point(4638, 1400), Point(4633, 1388), Point(4623, 1388), Point(4603, 1378), Point(4590, 1374), Point(4583, 1366)];
if SPS_WalkPath(MyPath) then
begin
Wait(575+random(1556));
if FindDTM(VialDTM2, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
Mouse(x, y, 5, 5, 1);
end;
end;
end;

procedure FillIt;
var
c, v:Integer;
begin
if FindObjCustom(c, v, ['ountain'], [1006119, 15968903], 5) then
if IsUpText('ountain') then
wait(450+random(50));
Mouse(c, v, 5, 5, 1);
Wait(20000+random(1300))
end;

procedure WalkBackNBANk;
var
MyPath2:TPointArray;
begin
SPS_Areas := ['11_3'];
MyPath2 := [Point(4580, 1367), Point(4588, 1376), Point(4601, 1388), Point(4612, 1388), Point(4644, 1391), Point(4642, 1397), Point(4640, 1413), Point(4640, 1418)];
if SPS_WalkPath(MyPath2) then
begin
if FindBank('veb') then
Wait(500+random(156));
DepositAll;
end;
end;





begin
SetUpSRL;
ActivateClient;
DeclarePlayers;
LoginPlayer;
repeat
DeclareDTMs;
TakeOutVials;
WalkToMiddle;
FillIt;
WalkBackNBANk;
FreeeDTMs;
until(False);
end.

Twisterz

2012-06-02 21:35:24

Where does this even work?

Gucci

2012-06-02 22:19:32

Looks nice you just need to work on those standards that'll increase the readability.

@Twisterz it works at Varrock East Bank

Scarface9703

2012-06-03 02:49:50

Doesnt run =/

Leyser

2012-06-03 05:53:47

From: Scarface9703
Doesnt run =/



Can you give more info? What is it doing?

Twisterz

2012-06-03 12:07:42

I get errors like crazy. I had to manually change
{$i srl/srl/core/sps/sps.simba} to {$sps/sps.simba}
to get it to even go further than the first line.

Then there were about 3 more errors I can't remember.

awesomem8

2012-06-04 09:18:50

how do i change "DTMFromString" to a different item. Ive been trying to figure that out for ages.

Leyser

2012-06-05 05:42:03

From: Twisterz
I get errors like crazy. I had to manually change
{$i srl/srl/core/sps/sps.simba} to {$sps/sps.simba}
to get it to even go further than the first line.

Then there were about 3 more errors I can't remember.


Ahh, yes I had to manually use my own SPS because its very weird for me.

Leyser

2012-06-06 10:23:45

Bump

dafuq

2012-06-07 17:58:28

{$i srl/srl/core/sps/sps.simba}
Should be:
{$i sps/sps.simba}
Problem fixed lawl… ;)

But this shiz only give errors -.-

Leyser

2012-06-13 10:08:40

Bump, Updated the script

Leonardo Da Vinci

2012-07-06 18:14:14

I'll give it a go and see how it turns out.

I keep getting this as an error:
Exception in Script: Unable to find file 'srl/srl/core/sps/sps.simba' used from ''

The Killer

2012-12-01 09:25:01

From: Leonardo Da Vinci
I'll give it a go and see how it turns out.

I keep getting this as an error:
Exception in Script: Unable to find file 'srl/srl/core/sps/sps.simba' used from ''


l2read :P
change
{$i srl/srl/core/sps/sps.simba}
// {$i sps/sps.simba} if you get an error put a // above and before the include and delete the // in this and this message.

to
{$i sps/sps.simba}