sokrazy
10-22-2006, 03:42 PM
error
Spotted a random...
******** FOUND TALKING RANDOM TEXT********: Talk-to Sandwich lady
couldnt find question: logging out
[Runtime Error] : Out Of Range in line 1116 in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\AntiRandoms.scar
this is line 1116 in AntiRandoms.scar
{************************************************* ******************************
function SolveSandWich:Boolean;
by: WT-Fakawi
Description: Solves the sandwich lady random
************************************************** *****************************}
function SolveSandWich:Boolean;
begin
Wait(2000);
SandAnswer:=GetSandQuestion;
Writeln('Answer = ' + SandItemText[SandAnswer]); // Line 1116
case SandAnswer of
1: begin // pie
if SearchAllbyColor(6579308,10)<> 0 then // Pie Grey
begin
if FindSandbyShape(Pie,100,4000,0.6) then Result:=True;
end;
end;
2: begin // square
if SearchAllbyColor(1948408,20)<> 0 then // Cheese Yellow
begin
if FindSandbyShape(SquareSand,20,6000,0.30) then Result:=True;
end;
end;
3: begin // bread
if SearchAllbyColor(1147295,5)<> 0 then // Bread Light Brown
begin
if FindSandbyShape(Bread,50,3000,0.5) then Result:=True;
end;
end;
4: begin // triangle
// if SearchAllbyColor(1948408,20)<> 0 then // Cheese Yellow
if SearchAllbyColor(2145531,20)<> 0 then // Cheese Yellow
begin
if FindSandbyShape(TriangleSand,100,6000,0.7) then Result:=True;
end;
end;
5: begin // baguette
if SearchAllbyColor(5802396,5)<> 0 then // Common Baguette Color
begin
if FindSandbyShape(Baquette,100,6000,0.6) then Result:=True;
end;
end;
6: begin // chocolate
if SearchAllbyColor(2111836,10)<> 0 then // Chocolat Brown
begin
if FindSandbyShape(ChocolateBar,50,3000,0.2) then Result:=True;
end;
end;
7: begin // kebab
if SearchAllbyColor(1414417,70)<> 0 then // Leaf Green
begin
if FindSandbyShape(Kebab,50,3000,0.5) then Result:=True;
end;
end;
end;
end;
i cant figure out the problem or if its even important but leme know what you think plz :)
Spotted a random...
******** FOUND TALKING RANDOM TEXT********: Talk-to Sandwich lady
couldnt find question: logging out
[Runtime Error] : Out Of Range in line 1116 in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\AntiRandoms.scar
this is line 1116 in AntiRandoms.scar
{************************************************* ******************************
function SolveSandWich:Boolean;
by: WT-Fakawi
Description: Solves the sandwich lady random
************************************************** *****************************}
function SolveSandWich:Boolean;
begin
Wait(2000);
SandAnswer:=GetSandQuestion;
Writeln('Answer = ' + SandItemText[SandAnswer]); // Line 1116
case SandAnswer of
1: begin // pie
if SearchAllbyColor(6579308,10)<> 0 then // Pie Grey
begin
if FindSandbyShape(Pie,100,4000,0.6) then Result:=True;
end;
end;
2: begin // square
if SearchAllbyColor(1948408,20)<> 0 then // Cheese Yellow
begin
if FindSandbyShape(SquareSand,20,6000,0.30) then Result:=True;
end;
end;
3: begin // bread
if SearchAllbyColor(1147295,5)<> 0 then // Bread Light Brown
begin
if FindSandbyShape(Bread,50,3000,0.5) then Result:=True;
end;
end;
4: begin // triangle
// if SearchAllbyColor(1948408,20)<> 0 then // Cheese Yellow
if SearchAllbyColor(2145531,20)<> 0 then // Cheese Yellow
begin
if FindSandbyShape(TriangleSand,100,6000,0.7) then Result:=True;
end;
end;
5: begin // baguette
if SearchAllbyColor(5802396,5)<> 0 then // Common Baguette Color
begin
if FindSandbyShape(Baquette,100,6000,0.6) then Result:=True;
end;
end;
6: begin // chocolate
if SearchAllbyColor(2111836,10)<> 0 then // Chocolat Brown
begin
if FindSandbyShape(ChocolateBar,50,3000,0.2) then Result:=True;
end;
end;
7: begin // kebab
if SearchAllbyColor(1414417,70)<> 0 then // Leaf Green
begin
if FindSandbyShape(Kebab,50,3000,0.5) then Result:=True;
end;
end;
end;
end;
i cant figure out the problem or if its even important but leme know what you think plz :)