Bad Boy JH
2010-02-18 00:59:52
Now, I need a couple of people to dissapear over to the wizzards tower (F2P) south of draynor, the bottom level, and make sure this function works, it should open doors if needed, and walk over to the water symbol. Yes, Coordinates are used, but I couldn't think of a better option…
Procedure OpenDoors;
var
CCount:Array of Integer;
TPoint:Tpoint;
begin
Setlength(CCount, 2);
CCount[0] := CountColorTolerance(4024458, 320, 140, 340, 160, 20);
CCount[1] := CountColorTolerance(4024458, 390, 15, 410, 35, 20);
Writeln(IntToStr(CCount[0]));
Writeln(IntToStr(CCount[1]));
if CCount[0] >= 100 then
begin
Mouse(325, 175, 5, 5, True);
Flag;
Wait(RandomRange(1000, 1500));
If CCount[1] >= 50 then
begin
Mouse(350, 25, 5, 5, true);
Flag;
Wait(RandomRange(1000, 1500));
end;
end else
if not(CCount[0] >= 100) and (CCount[1] >= 50) then
begin
Mouse(390, 25, 5, 5, True);
Flag;
Wait(RandomRange(1000, 1500));
end else
Writeln('Doors all Open');
FindSymbol(Tpoint.x, TPoint.y, 'water');
Mouse(Tpoint.x+25, Tpoint.y, 5, 5, true);
Flag;
end;
begin
SetupSRL;
OpenDoors;
end;