Ok so i'm trying to get this function to work in my script. I think i'm doing something wrong when i fill it out.
Original function from SRL:
SCAR Code:
function CastOn(Spell, Monster: string; MonsterColor: Integer; Tolerance:
Integer): Boolean;
How i filled it out:
SCAR Code:
function CastOn('curse','dummy': string; 10848112: Integer; 8:Integer): Result;
var
x, y:Integer;
begin
if (not Cast(Spell)) then Exit;
if (FindObj(x, y, Monster, MonsterColor, Tolerance)) then
begin
Mouse(x, y, 2, 2, True);
Result := True;
end;
end;
What am i doing wrong?