Hey guys. My script keeps ending because it can't find a tree because it's been teleported to the wizzy tower. Why is this? Here is my anti-random procedure...
SCAR Code:
function DealWithThoseStupidRandoms: Boolean;
var
i: Integer;
var
solved: Boolean;
begin
if not LoggedIn then LoginPlayer;
for i := 0 to 6 do
begin
case I of
0: FTWait(4);
1: FindNormalRandoms;
2: URNfindfight(true,15000,2000,'E');
3: if(FindMod) then begin RunAway('E',true,1,15000 + random(500)); wait(1000); end;
4: FindEnt(x,y,true);
{5: if(InQuizRandom)then begin
Writeln('Found quiz. Solving...');
solved:= FindQuiz;
if(not solved) then begin
Writeln('Failed to solve quiz random. Ending Script!');
TerminateScript;
end else begin
Writeln('Quiz Solved!');
wait(4000 + random(1000));
end;
end;}
6: FTWait(4);
7: if(not FindAxe)then begin
Writeln('lost axe!');
Logout;
NextPlayer(false);
end;
//7: FindFrog;
end;
end;
end;