So to save this section from another thread I'll just add a post here.
I continued with the script and am now have this:
Simba Code:
Program PowerChopper;
//{$DEFINE SMART}
{$i SRL\SRL.simba}
Const
SRLStats_Username = ''; // Your SRL Stats Username
SRLStats_Password = ''; // Your SRL Stats Password
BreakEvery = 120; //How Many Minutes To Break After
BreakFor = 20; //How Long To Break For
Version = '1.0';
procedure DeclarePlayer;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := ''; //Your Runescape username
Players[0].Pass := ''; //Your Runescape password
Players[0].Active := True;
end;
Procedure StatsGuise(wat:String);
Begin
Status(wat);
Disguise(wat);
End;
Function CheckAndClick(Uptext, Option:String; X,Y:Integer; RClick:Boolean):Boolean;
Begin
MMouse(x, y, 5, 5)
If WaitUptext(UpText, 1500+Random(500)) Then
Begin
Result:=True;
GetMousePos(x, y);
If RClick Then
Begin
Mouse(x, y, 0, 0, False);
Result:= WaitOption(Option, 5000);
If Result Then FFlag(0);
End Else
Begin
Mouse(x, y, 0, 0, True);
Wait(100+Random(100));
FFlag(0);
End;
End;
End;
Procedure Antiban;
Begin
Case Random(250) Of
0: Begin StatsGuise('AntiBan') GameTab(tab_Inv) ExamineInv; GameTab(28); End;
1: Begin StatsGuise('AntiBan') RandomAngle(1); End;
2: Begin StatsGuise('AntiBan') GameTab(tab_Stats) HoverSkill('Woodcutting', False); GameTab(tab_Inv); End;
3: Begin StatsGuise('AntiBan') GameTab(tab_Stats); Wait(3000+Random(500)); GameTab(tab_Inv); End;
End;
End;
Procedure FailSafe(Reason:String);
Begin
Players[CurrentPlayer].Loc:=Reason;
Logout;
Stats_Commit;
TerminateScript;
End;
Function ChopDown:Boolean;
Var
seX, seY, PlusOne, TreeCounter: Integer;
Begin
PlusOne:= InvCount + 1;
if FindObjCustom(seX, seY, ['hop', 'own'], [1056282, 1582114], 5) Then
begin
StatsGuise('Hooray, we found a tree');
GetMousePos(seX, seY);
Case Random(1) Of
0: Mouse(seX, seY, 5, 5, True);
1: Begin
Mouse(seX, seY, 5, 5, False);
WaitOption('hop', 500);
End;
End;
Repeat
MarkTime(TreeCounter);
AntiBan;
Wait(200);
Until (InvCount=PlusOne) Or (TimeFromMark(TreeCounter) > 7000)
End;
End;
begin
SetupSRL;
DeclarePlayer;
repeat
ChopDown;
until(false);
end.
And still got the same error!
Code:
New window: 5571526
[Hint] (72:10): Variable 'Result' never used at line 71
Compiled successfully in 578 ms.
SRL Compiled in 0 msec
Exception: Range check error at line 286
The following DTMs were not freed: [SRL - Lamp bitmap, 1]
The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]
When ChopDown is like:
Simba Code:
//repeat
ChopDown;
//until(false)
It can click a tree successfully (I was unable to do that before). But for some reason it does not like to repeat 
If anyone can tell me what I did now to cause this I'd highly appreciate it