The Intern
2008-02-09 09:50:18
ok.. so im like 89% done with my ranger script and i keep getting this error
Line 821: [Error] (9904:9): Unknown identifier 'SolveEvilBob' in script C:\Program\SCAR 3.14\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar
Line 821:
Full thingy:
…. can someone help, and i got rev 13
Line 821: [Error] (9904:9): Unknown identifier 'SolveEvilBob' in script C:\Program\SCAR 3.14\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar
Line 821:
if (not SolveEvilBob) thenFull thingy:
{*******************************************************************************
function NoGameTabLocs: Boolean;
by: Nielsie95 And Wizzup?
Description: Checks for missing GameTabs.
*******************************************************************************}
function NoGameTabLocs: Boolean;
var
i, c, x, y: Integer;
Tabs: TIntegerArray;
begin
Result := True;
for i := 1 to 14 do
if TabExists(i) then
begin
SetLength(Tabs, c +1);
Tabs[c] := i;
Inc(c);
end;
if (c > 4) and (c < 14) then
case c of //How many Tabs are visible?
5: if IntArrayMatch(Tabs, [8, 9, 10, 13, 14]) then
case LowerCase(GetMusic) of
'the quizmaster' : begin
//Quiz
Players[CurrentPlayer].Rand := 'Quiz Master';
WriteLn('GTL: ' + Players[CurrentPlayer].Rand + ' using music');
FindQuiz;
Players[CurrentPlayer].Active := LoggedIn;
Exit;
end;
'artistry' : begin
//Mime
Players[CurrentPlayer].Rand := 'Mime';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand + ' using music');
Inc(Mimes);
LogOut;
Exit;
end;
'time out' : begin
//Maze
Players[CurrentPlayer].Rand := 'Maze';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand + ' using music');
Inc(Mazes);
LogOut;
Exit;
end;
'corporal punishment' : begin
//Drill Demon
Players[CurrentPlayer].Rand := 'Drill Demon';
WriteLn('GTL: ' + Players[CurrentPlayer].Rand + ' using music');
SolveDemon;
Players[CurrentPlayer].Active := LoggedIn;
Exit;
end;
else
if (IsTextInAreaEx(MCX1, MCY1, MCX2, MCY2, x, y, 'mime', 0, SmallChars, False, False, 0, 1, 0)) then
begin
//Mime
Players[CurrentPlayer].Rand := 'Mime';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
Inc(Mimes);
LogOut;
Exit;
end else
if (IsTextInAreaEx(MCX1, MCY1, MCX2, MCY2, x, y, 'amien', 0, NPCChars, False, False, 0, 2, 128)) then
begin
//Drill Demon
Players[CurrentPlayer].Rand := 'Drill Demon';
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
SolveDemon;
Players[CurrentPlayer].Active := LoggedIn;
Exit;
end else
if (IsTextInAreaEx(MCX1, MCY1, MCX2, MCY2, x, y, 'maze', 0, SmallChars, False, False, 0, 1, 0)) or
(IsTextInAreaEx(MCX1, MCY1, MCX2, MCY2, x, y, 'maze', 0, NPCChars, False, False, 0, 2, 0)) then
begin
//Maze
Players[CurrentPlayer].Rand := 'Maze';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
Inc(Mazes);
LogOut;
Exit;
end else
if DetectFrogCave then
begin
//FrogCave
Players[CurrentPlayer].Rand := 'Frog Cave';
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
SolveFrogSwamp;
Players[CurrentPlayer].Active := LoggedIn;
Exit;
end else
if InQuizRandom then
begin
//Quiz
Players[CurrentPlayer].Rand := 'Quiz Master';
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
FindQuiz;
Players[CurrentPlayer].Active := LoggedIn;
Exit;
end else
begin
//Unknown
Players[CurrentPlayer].Rand := 'No GameTab';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
LogOut;
Exit;
end;
end;
6: if IntArrayMatch(Tabs, [8, 9, 10, 11, 13, 14]) then
begin
if (IsTextInAreaEx(MCX1, MCY1, MCX2, MCY2, x, y, 'ordaut', 0, NPCChars, False, False, 0, 2, 128)) then
begin
//Mordaut
Players[CurrentPlayer].Rand := 'Mordaut';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
LogOut;
Exit;
end else
if (PercentBlackMM > 90) then
begin
//Molly
Players[CurrentPlayer].Rand := 'Molly Evil Twin';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
LogOut;
Exit;
end else
begin
//Unknown
Players[CurrentPlayer].Rand := 'No GameTab';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
LogOut;
Exit;
end;
end;
7: if IntArrayMatch(Tabs, [8, 9, 10, 11, 12, 13, 14]) then
begin
//Pinball
Players[CurrentPlayer].Rand := 'Pinball';
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
if not SolvePinball then
Logout;
Players[CurrentPlayer].Active := LoggedIn;
Exit;
end else
if IntArrayMatch(Tabs, [4, 8, 9, 10, 11, 13, 14]) then
begin
//Leo
Players[CurrentPlayer].Rand := 'Leo the GraveDigger';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
LogOut;
Exit;
end else
begin
//Unknown
Players[CurrentPlayer].Rand := 'No GameTab';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
LogOut;
Exit;
end;
13: if IntArrayMatch(Tabs, [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14]) then
case LowerCase(GetMusic) of
'in the clink' : begin
//Prison Pete
Players[CurrentPlayer].Rand := 'Prison Pete';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand + ' using music');
Inc(ScapeRunes);
LogOut;
Exit;
end;
'evil bob''s island' : begin
//Evil Bob
Players[CurrentPlayer].Rand := 'Evil Bob Island';
WriteLn('GTL: ' + Players[CurrentPlayer].Rand + ' using music');
if (not SolveEvilBob) then
begin
Players[CurrentPlayer].Active := False;
Inc(ScapeRunes);
LogOut;
end;
Exit;
end;
else
begin
Players[CurrentPlayer].Rand := 'ScapeRune';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
Inc(ScapeRunes);
LogOut;
Exit;
end;
end;
end;
if (FindColor(x, y, 128, 150, 250, 500, 380)) then
if ClickContinue(False, False) then //we are talking
begin
if (PercentBlackMM < 15) then // not InBlack
begin
if (IsTextInAreaEx(MCX1, MCY1, MCX2, MCY2, x, y, 'rester', 0, NPCChars, False, False, 0, 2, 128)) or
(IsTextInAreaEx(MCX1, MCY1, MCX2, MCY2, x, y, 'heasan', 0, NPCChars, False, False, 0, 1, 0)) then
begin
// Freaky Forester
Players[CurrentPlayer].Rand := 'Freaky Forester';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
Inc(NOForester);
LogOut;
Exit;
end;
end else
if (IsTextInAreaEx(MCX1, MCY1, MCX2, MCY2, x, y, 'maze', 0, NPCChars, False, False, 0, 2, 0)) then
begin
// Maze
Players[CurrentPlayer].Rand := 'Maze';
Players[CurrentPlayer].Active := False;
WriteLn('GTL: ' + Players[CurrentPlayer].Rand);
LogOut;
Exit;
end;
end;
Result := False;
end;…. can someone help, and i got rev 13