View Full Version : Why am i getting this error?
beefman
07-03-2014, 12:06 AM
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
07-03-2014, 01:01 AM
You haven't told us the error.
beefman
07-03-2014, 01:21 AM
You haven't told us the error.
Sorry! My bad. Added now.
KeepBotting
07-03-2014, 01:28 AM
Sorry! My bad. Added now.
Have you {$i srl-6/srl.simba} at the top of the script?
Turpinator
07-03-2014, 02:54 AM
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
07-03-2014, 07:50 AM
Thanks guys, help appreciated :) Working!
beefman
07-03-2014, 08:51 AM
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
07-03-2014, 10:16 AM
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
07-04-2014, 12:56 AM
Thanks again :)
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.