SRL Archive - Help and Support

FFlag...


gerauchert

2008-02-14 22:11:34

I seem to be having some issues with FFlag, which the source of the problem is (i think) HumanCircleFlag…

Whenever I put a distance in it will always just wait until the flag is gone…even if i put FFlag(30) it will stop maybe 2-3 pixels away from it. I did a direct test with HumanCircleFlag, and it didnt seem to work at all.

Is anyone having this problem? If not, then what the hell am I doing wrong? :p

Garrett

2008-02-14 23:19:15

If your using an autocolor function, I think it has FFlag(0) inside it.

If you aren't, then I have no idea.

gerauchert

2008-02-14 23:24:49

ugh, yeah I just checked RRW, and it has a flag function in it. :( ewww

I just want it to click before it reaches the damn flag grrrrrrr. How would I go about doing that?

Garrett

2008-02-14 23:29:15

something like this mabey? not sure if this will work:

function FlagRadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod: Integer; SetFFlag: Integer): Boolean;
var
tpa: TPointArray;
i: Integer;
begin
Result := False;
if RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, StartRadial, EndRadial, Radius) then
for i := 0 to High(tpa) do
if MFNF(tpa[i].x, tpa[i].y, Xmod, Ymod) then
begin
FFLag(SetFFlag);
Result := True;
Break;
end;
end;

function FlagRadialRoadWalk(TheColor: Integer; StartRadial, EndRadial: Integer; Radius: Integer; Xmod, Ymod, Flag: Integer): Boolean;
var
tpa: TPointArray;
i: Integer;
begin
Result := False;
if (not LoggedIn) then Exit;
if (RoadColorChecker) then
if (DebugRadialRoad) then
WriteLn(' THROUGH RADIALROADWALK= ---> ' + IntToStr(RoadColor));
if RadialWalkEx(tpa, MMCX, MMCY, TheColor, 0, StartRadial, EndRadial, Radius) then
for i := 0 to High(tpa) do
if MFNF(tpa[i].x, tpa[i].y, Xmod, Ymod) then
begin
CountFlag(Flag);
Result := True;
Break;
end;
end;

gerauchert

2008-02-15 14:16:45

thanks for the idea :)

I ended up just editing out the CountFlag and designing my own flag waiting proc though :D