honestly when i first started to grasp the reflection include i crossed referenced with Fittas include it gave me something to compare and learn from.
i suggest having a look through his include... i wouldn't "use" it as Kyle's include is far more inclusive. Also beware there are a couple hooks missing...
ie. Playerhealth and isunderattack - check for animation instead GetInteractingIndex > 0
Code:
Procedure Debug(Comment: String; Error: Boolean);
var
S: String;
begin
Failed := Error;
If Error then
begin
Debug_screen(Comment);
S := '[ERROR] ';
end else
S := '[' + msToTime(GetTimeRunning, TIME_SHORT) + '] ';
Writeln(S + Comment);
end;
Code:
if Not isLoggedIn then
begin
Debug('Failed quickLogin', True);
TerminateScript;
end else
Debug('Welcome online!', False);
Kyle include may have a debug i havent actually checked. =|