Nah don't change the parameters.
Simba Code:
function FindNearestNPC(var x,y:Integer;Click,DoWait:Boolean):Boolean;
var
x,y:Integer;
begin
if FindColorSpiralTolerance(x,y,65536,558,6,690,153,4) then
begin
Result := True;
if (Click = True) and (Result = True) then
Mouse(x,y,1,1,True);
if DoWait = True then
begin
FFlag(1);
Wait(750 + random(200));
end;
end;
end;
function FindNearestNPC(var x,y:Integer;Click,DoWait:Boolean):Boolean;
x,y returns the values of the monster locations.
Click is a boolean(True/False) to click there
DoWait is another boolean which if clicked then will find the flag and wait until it walks there.