This is the script part
SCAR Code:
// Fighting //
procedure Fight;
Var
Dx,Dy: Integer;
Begin
If (FindObj(Dx, Dy, 'ttack', Mon1Color, MonTol, MinCount)) Then
Begin
MMouse(Dx,Dy,0,0);
Mouse(Dx,Dy,0,0,true);
end;
Wait(4000+random(1000))
FindFastRandoms;
If (FindObj(Dx, Dy, 'ttack', Mon2Color, MonTol, MinCount)) Then
Begin
MMouse(Dx,Dy,0,0);
Mouse(Dx,Dy,0,0,true);
end;
end;
and this is the error:
Line 146: [Error] (15602:58): Invalid number of parameters in script C:\Program Files\SCAR 3.06\Scripts\TFighter1.0.scar