SRL Archive - RS3 Help

Why am i getting this error?


beefman

2014-07-02 20:06:37

This is probably a newbie error but why am i getting it?

var
CraftCount: integer;


procedure CutShafts();
begin
tabBackpack.Open;
if tabBackpack.isFull(); then
begin
tabBackpack.mouseSlot(RandomRange(2 ,4), MOUSE_LEFT);
CraftCount := CraftCount + 1 ;
end;
end;

if (CraftCount = 1) then
begin
wait(randomRange(700,1400));
Mouse(285, 209, 20, 20, MOUSE_LEFT);
end;

if (CraftCount > 1) then
begin
wait(randomRange(700,1400));
productionScreen.clickStart();
wait(randomRange(49000,53000));
end;



Error: Exception in Script: Unknown declaration "tabBackpack" at line 7, column 3
Line 7: tabBackpack.Open;

KeepBotting

2014-07-02 21:01:55

You haven't told us the error.

beefman

2014-07-02 21:21:58

From: KeepBotting
You haven't told us the error.

Sorry! My bad. Added now.

KeepBotting

2014-07-02 21:28:58

From: beefman
Sorry! My bad. Added now.


Have you
{$i srl-6/srl.simba}
at the top of the script?

Turpinator

2014-07-02 22:54:28

From: beefman
This is probably a newbie error but why am i getting it?

var
CraftCount: integer;


procedure CutShafts();
begin
tabBackpack.Open;
if tabBackpack.isFull(); then
begin
tabBackpack.mouseSlot(RandomRange(2 ,4), MOUSE_LEFT);
CraftCount := CraftCount + 1 ;
end;
end;

if (CraftCount = 1) then
begin
wait(randomRange(700,1400));
Mouse(285, 209, 20, 20, MOUSE_LEFT);
end;

if (CraftCount > 1) then
begin
wait(randomRange(700,1400));
productionScreen.clickStart();
wait(randomRange(49000,53000));
end;



Error: Exception in Script: Unknown declaration "tabBackpack" at line 7, column 3
Line 7: tabBackpack.Open;


Too many semicolons and not enough begins (or too many ends)…
procedure CutShafts();
begin
tabBackpack.Open;
if tabBackpack.isFull() then
begin
tabBackpack.mouseSlot(RandomRange(2 ,4), MOUSE_LEFT);
CraftCount := CraftCount + 1 ;
end;

if (CraftCount = 1) then
begin
wait(randomRange(700,1400));
Mouse(285, 209, 20, 20, MOUSE_LEFT);
end;

if (CraftCount > 1) then
begin
wait(randomRange(700,1400));
productionScreen.clickStart();
wait(randomRange(49000,53000));
end;
end;
that works for me. just make sure you have srl-6 updated and everything.

beefman

2014-07-03 03:50:08

Thanks guys, help appreciated :) Working!

beefman

2014-07-03 04:51:29

One last thing, why am i getting this error: "Exception in Script: Unknown declaration "CompassMovement" at line 33, column 7"

Line 33 : 5 : CompassMovement(10, 30, true);


procedure Shaft_antiBan();
begin
Case Random(500) of
0 : HoverSkill(SKILL_WOODCUTTING, False);
1 : mouseOffClient(OFF_CLIENT_RANDOM);
2 : randomGameTab(true);
3 : randomRClickItem();
4 : sleepAndMoveMouse(1000 + random(2000));
5 : CompassMovement(10, 30, true);
end;
end;


I've taking all of them from Simba\Includes\srl-6\lib\misc\antiban

The Mayor

2014-07-03 06:16:44

From: beefman
One last thing, why am i getting this error: "Exception in Script: Unknown declaration "CompassMovement" at line 33, column 7"

Line 33 : 5 : CompassMovement(10, 30, true);


procedure Shaft_antiBan();
begin
Case Random(500) of
0 : HoverSkill(SKILL_WOODCUTTING, False);
1 : mouseOffClient(OFF_CLIENT_RANDOM);
2 : randomGameTab(true);
3 : randomRClickItem();
4 : sleepAndMoveMouse(1000 + random(2000));
5 : CompassMovement(10, 30, true);
end;
end;


I've taking all of them from Simba\Includes\srl-6\lib\misc\antiban


There is no function called compassMovement. It's randomCompass. Whoever commented that function screwed it up :p

beefman

2014-07-03 20:56:28

Thanks again :)