So im just messing around trying to learn abit of reflection and i made this:
SCAR Code:
procedure FightCow;
var
NPC : TNPC;
begin
If not R_InFight then
repeat
begin
If FindFreeNPC('Cow', NPC) then
begin
x := NPC.MS.x;
y := NPC.MS.y;
Mouse(x, y, 0, 0, false);
ChooseOption('ttack');
end;
If not ChooseOption('ttack') then
begin
FightCow;
Until (R_InFight) then // LINE 38
If R_InFight then
begin
GameTab(tab_inv);
Until not (R_InFight);
end;
end;
but im getting
Line 38: [Error] (27710:1): Identifier expected in script
i have tried adding end; everywhere i can think but that hastn solved it =/ help is appreciated