okokokok
06-19-2012, 07:52 PM
Hello guys,
I finally picked up scripting again.
So I made a script, still a rough beta version.
I made all the other procedures except walking. I used to walk with sps, so i thought, why not again. But this time i can't get SPS to even walk.
If someone could help me out and tell me what to change or recommend me another walking method i'd be very thankfull :)
program EssenceMiner;
{$DEFINE SMART}
{$DEFINE SRL5}
{$i SRL\SRL.simba}
{$i SPS\SPS.simba}
{$i SRL\SRL\skill\mining.simba}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Pin := '';
Players[0].Active:= True;
Players[0].BoxRewards := ['oins'];
end;
procedure AntiBan;
begin
if (not(LoggedIn)) then
Exit;
Case Random (1000) of
0..4:
begin
HoverSkill('Constitution', false);
wait(2453+Random(432));
end;
40.44:
begin
HoverSkill('Attack', false);
wait(2453+Random(432));
end;
80..84:
begin
HoverSkill('Strength', false);
wait(2453+Random(432));
end;
120..124:
begin
HoverSkill('Defence', false);
wait(2453+Random(432));
end;
150: BoredHuman;
200..203: PickUpMouse;
250..252: RandomRClick;
300..302: RandomMovement;
350..352: ExamineInv;
400..404:
begin
HoverSkill('random', false);
sleepandmovemouse(276 + Random(100));
PickUpMouse;
ChooseOption('Cancel');
SetAngle(SRL_ANGLE_HIGH);
end;
450..452: BoredHuman;
500..502: PickUpMouse;
550..552: RandomRClick;
600..602: RandomMovement;
650..652: SleepAndMoveMouse(3000 + Random(500));
end;
end;
procedure AntiRandom;
begin
FindNormalRandoms;
LampSkill := 'mining';
LevelUp;
end;
procedure SetDoorDTM;
var x, y, i: Integer;
Door: Array [0..2] of Integer;
begin
Door[0] := DTMFromString('mWAAAAHicY2FgYAhhZGAIBeJIII4B4r1AsW NAfASI9wFxeaYzQ3GaI0NhigNDdrwNAzpgRMMgAADtyQjI');
Door[1] := DTMFromString('mWAAAAHicY2FgYIhlZGAIB+JIRgj7NgMEPw TipyD5IBOG5HALMAax0QEjGgYBAO7FCJ0=');
Door[2] := DTMFromString('mWAAAAHicY2FgYAhnZGDwAeIARgj7HAMEXw Hiq0BcnukMxunRVgypkZYM6IARDYMAAPJTCNU=');
end;
procedure FreeDoorDTM;
var x, y: Integer;
Door: Array [0..2] of Integer;
begin
FreeDTM(Door[0]);
FreeDTM(Door[1]);
FreeDTM(Door[2]);
end;
procedure OpenDoor;
var x, y, i: Integer;
Door: Array [0..2] of Integer;
aFound: Extended;
begin
Door[0] := DTMFromString('mWAAAAHicY2FgYAhhZGAIBeJIII4B4r1AsW NAfASI9wFxeaYzQ3GaI0NhigNDdrwNAzpgRMMgAADtyQjI');
Door[1] := DTMFromString('mWAAAAHicY2FgYIhlZGAIB+JIRgj7NgMEPw TipyD5IBOG5HALMAax0QEjGgYBAO7FCJ0=');
Door[2] := DTMFromString('mWAAAAHicY2FgYAhnZGDwAeIARgj7HAMEXw Hiq0BcnukMxunRVgypkZYM6IARDYMAAPJTCNU=');
for i:= 0 to 2 do
If FindDTM(Door[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
Writeln('Oh Oh Door Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Ope');
Writeln('Door opened');
Wait(1000 + random(100));
end;
end;
procedure WalkToAubury;
var x,y: Integer;
myPath: TPointArray;
begin
SetupSRL;
writeln('gonna walk')
SPS_Setup(RUNESCAPE_SURFACE,['12_7']);
myPath := [Point(4849, 2972), Point(4849, 2966), Point(4850, 2959), Point(4852, 2950), Point(4855, 2943), Point(4858, 2939), Point(4867, 2935), Point(4874, 2939), Point(4878, 2944), Point(4879, 2951), Point(4880, 2957), Point(4880, 2964), Point(4880, 2970), Point(4880, 2976), Point(4880, 2981), Point(4879, 2986), Point(4879, 2992), Point(4875, 2996), Point(4874, 3000), Point(4872, 3005), Point(4869, 3008), Point(4867, 3014), Point(4866, 3018), Point(4866, 3024), Point(4865, 3032), Point(4863, 3038), Point(4863, 3043), Point(4863, 3048), Point(4860, 3053), Point(4856, 3057), Point(4850, 3060)]
writeln('fail?');
SPS_WalkPath(myPath);
writeln('fuck yea');
Wait(1000 + Random(100));
Writeln('Fucking arrived');
end;
procedure WalkToBank;
var x,y: Integer;
myPath: TPointArray;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['12_7']);
myPath := [Point(4849, 3047), Point(4848, 3054), Point(4850, 3061), Point(4856, 3058), Point(4860, 3048), Point(4864, 3040), Point(4868, 3029), Point(4870, 3019), Point(4870, 3012), Point(4874, 3003), Point(4882, 2993), Point(4881, 2982), Point(4883, 2973), Point(4882, 2968), Point(4883, 2962), Point(4879, 2951), Point(4880, 2941), Point(4867, 2935), Point(4857, 2935), Point(4851, 2940), Point(4851, 2950), Point(4851, 2961), Point(4851, 2969)];
SPS_WalkPath(myPath);
Wait(1000 + Random(100));
end;
function AuburyColor: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
X, Y, Z: Extended;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.08, 0.07);
FindColorsSpiralTolerance(MMCX, MMCY, arP, 4019035, MMX1, MMY1, MMX2, MMY2, 8);
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
ColorToXYZ(arC[i], X, Y, Z);
if (X >= 4.44) and (X <= 13.48) and (Y >= 4.70) and (Y <= 14.30) and (Z >= 3.14) and (Z <= 9.09) then
begin
Result := arC[i];
Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;
end;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
if (i = arL + 1) then
Writeln('AutoColor failed in finding the color.');
end;
procedure TeleportToMine;
var x,y: Integer;
begin
SetAngle(SRL_ANGLE_HIGH);
If FindObj(x,y,'Aubury',AuburyColor,5) then
begin
Writeln('Aubury Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Tele');
Writeln('Teleporting!');
Wait(3000 + Random(100));
end
else
If FindObj(x,y,'Aubury',AuburyColor,5) then
begin
Writeln('Aubury Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Tele');
Writeln('Teleporting!');
Wait(3000 + Random(100));
end
else
If FindObj(x,y,'Aubury',AuburyColor,5) then
begin
Writeln('Aubury Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Tele');
Writeln('Teleporting!');
Wait(3000 + Random(100));
end;
end;
procedure MineEssence;
var x,y,i: Integer;
Essence: Array [0..4] of Integer;
begin
Essence[0] := DTMFromString('mWAAAAHicY2FgYPgCxO+B+AMQfwfiGiCuBu J6IG4A4t2bNzPs3boVjtEBIxoGAQAlYw5f');
Essence[1] := DTMFromString('mQwAAAHicY2ZgYPgDxcyMDAxrgPRKKJ4zdR rD9AkTwTQyYETCQAAAizsJRw==');
Essence[2] := DTMFromString('mlwAAAHicY2dgYNBlZGDQBGItINYHYkMg1o Gy1zJA8AYoXgPEq4B4BRD3dbQzTO7tZZjY3c3Q09aGwscHGPFg KAAAJ4IRgw==');
Essence[3] := DTMFromString('mQwAAAHicY2ZgYNBkZGCQB2JVIE5mgOAoIK 6vqmSYMWkSw4TOTgZkwIiEgQAA8wEGZw==');
Essence[4] := DTMFromString('mQwAAAHicY2ZgYDgPxGeA+DIQ1wJxFRBXA/HerVvBeN+2bQzIgBEJAwEAsHgKXw==');
for i:= 0 to 4 do
If FindDTM(Essence[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
SetAngle(SRL_ANGLE_HIGH);
Writeln('Essence Found');
repeat
Wait (50 + random(50));
case Random(5) of
0:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Min');
Wait(25000 + random(4000));
end;
1:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Min');
Wait(25000 + random(4000));
end;
2:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,true);
Wait(25000 + random(4000));
end;
3:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,true);
Wait(25000 + random(4000));
end;
4:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,true);
Wait(25000 + random(4000));
end;
end;
until (InvFull);
Exit;
end;
end;
Procedure OpenBankCustom;
var x,y,i: Integer;
Booth: Array [0..1] of Integer;
begin
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);
Booth[0] := DTMFromString('mQwAAAHicY2ZgYOBmZGDgA2IRIGYFYgYgZg Hi0hQThvx4QzCNDBiRMBAAAHhdA1w=');
Booth[1] := DTMFromString('mQwAAAHicY2ZgYGBjZGDgBWJRIP4E5L8H4m 9A3FwZz9BWncBQlB3JgAwYkTAQAAAXagb7');
If FindDTM(Booth[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
Writeln('Booth Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('ank');
Wait(3000 + random(500));
end;
if not(BankScreen) then
begin
Writeln('Bank did not open the first time')
if FindDTM(Booth[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('ank');
Wait(3000 + random(500));
end;
end;
if not(BankScreen) then
begin
Writeln('Bank did not open the second time')
if FindDTM(Booth[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('ank');
Wait(3000 + random(500));
end;
end;
FreeDTM(Booth[0]);
FreeDTM(Booth[1]);
end;
procedure DepositEssence;
var x,y: Integer;
begin
If (PinScreen) then
InPin(Players[0].Pin);
If (BankScreen) then
Begin
Writeln('In the Bank');
DepositAll;
Writeln('Everything Banked');
CloseBank;
end;
end;
procedure OneRun;
begin
MakeCompass('N');
SetAngle(SRL_ANGLE_LOW);
WalkToAubury;
//OpenDoor;
//TeleportToMine;
//MineEssence;
//WalkToBank;
//OpenBankCustom;
//DepositEssence;
end;
begin
Smart_Server := 17;
Smart_Members := false;
Smart_Signed := true;
Smart_SuperDetail := false;
clearDebug();
setupSRL;
DeclarePlayers;
if (Not(LoggedIn)) then
begin
LogInPlayer;
Wait(2500 + Random(1500));
end;
OneRun;
end.
The problem is in the procedure 'WalkToAubury' and 'WalkToBank'. This is ofcourse in east varrock for the rune essence.
Greetz and thanks in advance! :)
EDIT: Still need to change my antiban :) (Picked it up from my fighting scripts)
I finally picked up scripting again.
So I made a script, still a rough beta version.
I made all the other procedures except walking. I used to walk with sps, so i thought, why not again. But this time i can't get SPS to even walk.
If someone could help me out and tell me what to change or recommend me another walking method i'd be very thankfull :)
program EssenceMiner;
{$DEFINE SMART}
{$DEFINE SRL5}
{$i SRL\SRL.simba}
{$i SPS\SPS.simba}
{$i SRL\SRL\skill\mining.simba}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= 0;
Players[0].Name := '';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Pin := '';
Players[0].Active:= True;
Players[0].BoxRewards := ['oins'];
end;
procedure AntiBan;
begin
if (not(LoggedIn)) then
Exit;
Case Random (1000) of
0..4:
begin
HoverSkill('Constitution', false);
wait(2453+Random(432));
end;
40.44:
begin
HoverSkill('Attack', false);
wait(2453+Random(432));
end;
80..84:
begin
HoverSkill('Strength', false);
wait(2453+Random(432));
end;
120..124:
begin
HoverSkill('Defence', false);
wait(2453+Random(432));
end;
150: BoredHuman;
200..203: PickUpMouse;
250..252: RandomRClick;
300..302: RandomMovement;
350..352: ExamineInv;
400..404:
begin
HoverSkill('random', false);
sleepandmovemouse(276 + Random(100));
PickUpMouse;
ChooseOption('Cancel');
SetAngle(SRL_ANGLE_HIGH);
end;
450..452: BoredHuman;
500..502: PickUpMouse;
550..552: RandomRClick;
600..602: RandomMovement;
650..652: SleepAndMoveMouse(3000 + Random(500));
end;
end;
procedure AntiRandom;
begin
FindNormalRandoms;
LampSkill := 'mining';
LevelUp;
end;
procedure SetDoorDTM;
var x, y, i: Integer;
Door: Array [0..2] of Integer;
begin
Door[0] := DTMFromString('mWAAAAHicY2FgYAhhZGAIBeJIII4B4r1AsW NAfASI9wFxeaYzQ3GaI0NhigNDdrwNAzpgRMMgAADtyQjI');
Door[1] := DTMFromString('mWAAAAHicY2FgYIhlZGAIB+JIRgj7NgMEPw TipyD5IBOG5HALMAax0QEjGgYBAO7FCJ0=');
Door[2] := DTMFromString('mWAAAAHicY2FgYAhnZGDwAeIARgj7HAMEXw Hiq0BcnukMxunRVgypkZYM6IARDYMAAPJTCNU=');
end;
procedure FreeDoorDTM;
var x, y: Integer;
Door: Array [0..2] of Integer;
begin
FreeDTM(Door[0]);
FreeDTM(Door[1]);
FreeDTM(Door[2]);
end;
procedure OpenDoor;
var x, y, i: Integer;
Door: Array [0..2] of Integer;
aFound: Extended;
begin
Door[0] := DTMFromString('mWAAAAHicY2FgYAhhZGAIBeJIII4B4r1AsW NAfASI9wFxeaYzQ3GaI0NhigNDdrwNAzpgRMMgAADtyQjI');
Door[1] := DTMFromString('mWAAAAHicY2FgYIhlZGAIB+JIRgj7NgMEPw TipyD5IBOG5HALMAax0QEjGgYBAO7FCJ0=');
Door[2] := DTMFromString('mWAAAAHicY2FgYAhnZGDwAeIARgj7HAMEXw Hiq0BcnukMxunRVgypkZYM6IARDYMAAPJTCNU=');
for i:= 0 to 2 do
If FindDTM(Door[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
Writeln('Oh Oh Door Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Ope');
Writeln('Door opened');
Wait(1000 + random(100));
end;
end;
procedure WalkToAubury;
var x,y: Integer;
myPath: TPointArray;
begin
SetupSRL;
writeln('gonna walk')
SPS_Setup(RUNESCAPE_SURFACE,['12_7']);
myPath := [Point(4849, 2972), Point(4849, 2966), Point(4850, 2959), Point(4852, 2950), Point(4855, 2943), Point(4858, 2939), Point(4867, 2935), Point(4874, 2939), Point(4878, 2944), Point(4879, 2951), Point(4880, 2957), Point(4880, 2964), Point(4880, 2970), Point(4880, 2976), Point(4880, 2981), Point(4879, 2986), Point(4879, 2992), Point(4875, 2996), Point(4874, 3000), Point(4872, 3005), Point(4869, 3008), Point(4867, 3014), Point(4866, 3018), Point(4866, 3024), Point(4865, 3032), Point(4863, 3038), Point(4863, 3043), Point(4863, 3048), Point(4860, 3053), Point(4856, 3057), Point(4850, 3060)]
writeln('fail?');
SPS_WalkPath(myPath);
writeln('fuck yea');
Wait(1000 + Random(100));
Writeln('Fucking arrived');
end;
procedure WalkToBank;
var x,y: Integer;
myPath: TPointArray;
begin
SPS_Setup(RUNESCAPE_SURFACE, ['12_7']);
myPath := [Point(4849, 3047), Point(4848, 3054), Point(4850, 3061), Point(4856, 3058), Point(4860, 3048), Point(4864, 3040), Point(4868, 3029), Point(4870, 3019), Point(4870, 3012), Point(4874, 3003), Point(4882, 2993), Point(4881, 2982), Point(4883, 2973), Point(4882, 2968), Point(4883, 2962), Point(4879, 2951), Point(4880, 2941), Point(4867, 2935), Point(4857, 2935), Point(4851, 2940), Point(4851, 2950), Point(4851, 2961), Point(4851, 2969)];
SPS_WalkPath(myPath);
Wait(1000 + Random(100));
end;
function AuburyColor: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
X, Y, Z: Extended;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.08, 0.07);
FindColorsSpiralTolerance(MMCX, MMCY, arP, 4019035, MMX1, MMY1, MMX2, MMY2, 8);
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
ColorToXYZ(arC[i], X, Y, Z);
if (X >= 4.44) and (X <= 13.48) and (Y >= 4.70) and (Y <= 14.30) and (Z >= 3.14) and (Z <= 9.09) then
begin
Result := arC[i];
Writeln('AutoColor = ' + IntToStr(arC[i]));
Break;
end;
end;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
if (i = arL + 1) then
Writeln('AutoColor failed in finding the color.');
end;
procedure TeleportToMine;
var x,y: Integer;
begin
SetAngle(SRL_ANGLE_HIGH);
If FindObj(x,y,'Aubury',AuburyColor,5) then
begin
Writeln('Aubury Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Tele');
Writeln('Teleporting!');
Wait(3000 + Random(100));
end
else
If FindObj(x,y,'Aubury',AuburyColor,5) then
begin
Writeln('Aubury Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Tele');
Writeln('Teleporting!');
Wait(3000 + Random(100));
end
else
If FindObj(x,y,'Aubury',AuburyColor,5) then
begin
Writeln('Aubury Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Tele');
Writeln('Teleporting!');
Wait(3000 + Random(100));
end;
end;
procedure MineEssence;
var x,y,i: Integer;
Essence: Array [0..4] of Integer;
begin
Essence[0] := DTMFromString('mWAAAAHicY2FgYPgCxO+B+AMQfwfiGiCuBu J6IG4A4t2bNzPs3boVjtEBIxoGAQAlYw5f');
Essence[1] := DTMFromString('mQwAAAHicY2ZgYPgDxcyMDAxrgPRKKJ4zdR rD9AkTwTQyYETCQAAAizsJRw==');
Essence[2] := DTMFromString('mlwAAAHicY2dgYNBlZGDQBGItINYHYkMg1o Gy1zJA8AYoXgPEq4B4BRD3dbQzTO7tZZjY3c3Q09aGwscHGPFg KAAAJ4IRgw==');
Essence[3] := DTMFromString('mQwAAAHicY2ZgYNBkZGCQB2JVIE5mgOAoIK 6vqmSYMWkSw4TOTgZkwIiEgQAA8wEGZw==');
Essence[4] := DTMFromString('mQwAAAHicY2ZgYDgPxGeA+DIQ1wJxFRBXA/HerVvBeN+2bQzIgBEJAwEAsHgKXw==');
for i:= 0 to 4 do
If FindDTM(Essence[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
SetAngle(SRL_ANGLE_HIGH);
Writeln('Essence Found');
repeat
Wait (50 + random(50));
case Random(5) of
0:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Min');
Wait(25000 + random(4000));
end;
1:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('Min');
Wait(25000 + random(4000));
end;
2:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,true);
Wait(25000 + random(4000));
end;
3:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,true);
Wait(25000 + random(4000));
end;
4:
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,true);
Wait(25000 + random(4000));
end;
end;
until (InvFull);
Exit;
end;
end;
Procedure OpenBankCustom;
var x,y,i: Integer;
Booth: Array [0..1] of Integer;
begin
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);
Booth[0] := DTMFromString('mQwAAAHicY2ZgYOBmZGDgA2IRIGYFYgYgZg Hi0hQThvx4QzCNDBiRMBAAAHhdA1w=');
Booth[1] := DTMFromString('mQwAAAHicY2ZgYGBjZGDgBWJRIP4E5L8H4m 9A3FwZz9BWncBQlB3JgAwYkTAQAAAXagb7');
If FindDTM(Booth[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
Writeln('Booth Found');
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('ank');
Wait(3000 + random(500));
end;
if not(BankScreen) then
begin
Writeln('Bank did not open the first time')
if FindDTM(Booth[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('ank');
Wait(3000 + random(500));
end;
end;
if not(BankScreen) then
begin
Writeln('Bank did not open the second time')
if FindDTM(Booth[i],x,y,MSX1,MSY1,MSX2,MSY2) then
begin
MMouse(x,y,0,0);
Mouse(x,y,5,5,false);
ChooseOption('ank');
Wait(3000 + random(500));
end;
end;
FreeDTM(Booth[0]);
FreeDTM(Booth[1]);
end;
procedure DepositEssence;
var x,y: Integer;
begin
If (PinScreen) then
InPin(Players[0].Pin);
If (BankScreen) then
Begin
Writeln('In the Bank');
DepositAll;
Writeln('Everything Banked');
CloseBank;
end;
end;
procedure OneRun;
begin
MakeCompass('N');
SetAngle(SRL_ANGLE_LOW);
WalkToAubury;
//OpenDoor;
//TeleportToMine;
//MineEssence;
//WalkToBank;
//OpenBankCustom;
//DepositEssence;
end;
begin
Smart_Server := 17;
Smart_Members := false;
Smart_Signed := true;
Smart_SuperDetail := false;
clearDebug();
setupSRL;
DeclarePlayers;
if (Not(LoggedIn)) then
begin
LogInPlayer;
Wait(2500 + Random(1500));
end;
OneRun;
end.
The problem is in the procedure 'WalkToAubury' and 'WalkToBank'. This is ofcourse in east varrock for the rune essence.
Greetz and thanks in advance! :)
EDIT: Still need to change my antiban :) (Picked it up from my fighting scripts)