GREEN GIANT
2013-08-07 08:09:01
Hi Guys,
When repeating my main loop it seems to skip out a few lines at the start resulting in it failing :( Can anyone see why?
I haven't included the whole loop just the beginning and end.
For some reason after completing the loop and starting again it skips out StairsetUno and StairsetDos then does the NPCCheck, writes 'Not in main hall' and terminates. Cant figure why it is skipping the first few lines of the repeat?
When repeating my main loop it seems to skip out a few lines at the start resulting in it failing :( Can anyone see why?
I haven't included the whole loop just the beginning and end.
Begin
begin
ClearDebug;
setupsrl;
DeclarePlayers;
LoginPlayer;
Loads := 0;
end;
Begin
Repeat
Loads := (Loads + 1);
begin
wait(1500);
StairSetUno;
wait(1500);
StairSetDos;
wait(1500);
end;
If AreaCheckNPC < 3 then
begin
Writeln('Not in Main Hall');
TerminateScript;
end else
begin......
........
end;
end;
until Loads = Trips;
end;
End.For some reason after completing the loop and starting again it skips out StairsetUno and StairsetDos then does the NPCCheck, writes 'Not in main hall' and terminates. Cant figure why it is skipping the first few lines of the repeat?