Claymore
2008-10-18 22:41:42
function FindBridgeColors: Integer;
var
GC, I, L, TestColor, WaterColor, X, Y: integer;
P : TPointArray;
begin
WaterColor := FindWaterColor;
if (not (FindColor(X, Y, WaterColor, MMX1, MMY1, MMX2, MMY2))) then
WaterColor := FindWaterColor;
if (WaterColor = 0) then
begin
Result := 0;
Exit;
end;
GC := 1389645;
Flag;
FindColorsSpiralTolerance(MMCX, MMCY, P, GC, MMX1, MMY1, MMX2, MMY2, 60);
L := GetArrayLength(P);
for I := 0 to L - 1 do
begin
if rs_OnMinimap(P[I].X, P[I].Y) then
begin
TestColor := GetColor(P[I].X, P[I].Y);
if GetColor(P[I].X + 1, P[I].Y) = WaterColor then
if GetColor(P[I].X - 2, P[I].Y) = TestColor then
if GetColor(P[I].X, P[I].Y - 3) = TestColor then
begin
Result := TestColor;
WriteLn('Bridge Color = ' + IntToStr(Result));
Exit;
end;
end;
end;
WriteLn('Could not find Bridge Color.');
Result := 0;
end;
The old one is broken, this one works on the Entrana Bridge. Yes I am making a Law Crafter, but anyways this should be fixed (Mine might be incorrect, but I'm just saying this function needs to be fixed.)
Peace out! And look for my Law Crafter when it comes out! (Its not based on Reflection.) :f: