Athylus
2013-08-13 20:12:20
[Error] (56:11): Duplicate identifier 'OPENBANK' at line 55
Compiling failed.
It's an error I keep getting on my script. Trying to open a bank so I can store my items in it. But it keeps on giving this error code.
Compiling failed.
It's an error I keep getting on my script. Trying to open a bank so I can store my items in it. But it keeps on giving this error code.
function BankColors: Integer;
var
arP: TPointArray;
arC: TIntegerArray;
tmpCTS, i, arL: Integer;
begin
tmpCTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.02, 2.44);
if not (FindColorsTolerance(arP, 3563636, MSX1, MSY1, MSX2, MSY2, 5)) then
begin
//Writeln('Failed to find the color, no result.');
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
Exit;
end;
arC := GetColors(arP);
ClearSameIntegers(arC);
arL := High(arC);
for i := 0 to arL do
begin
Result := arC;
//Writeln('AutoColor = ' + IntToStr(arC));
Break;
end;
ColorToleranceSpeed(tmpCTS);
SetColorSpeed2Modifiers(0.2, 0.2);
if (i = arL + 1) then
//Writeln('AutoColor failed in finding the color.');
end;
procedure OpenBank;
var x, y: integer;
begin
Repeat
If FindObj(x, y, 'ank', BankColors, 5) Then
ClickMouse(x, y, mouse_Left);
end
else
MakeCompass(randomrange(25, 35));
until(BankScreen)
end;