As for your second question relating to the six hour log.
You will need to add
Simba Code:
Smart_FixSpeed := TRUE;
SRL_SixHourFix := TRUE;
somewhere in your initialization of the program. That will tell your script to check for Runescape declaring your session has ended at a login attempt. However, for it to reach that point, you will have to tell your client to at some point in time it is logged out. For example, in one of my scripts I have a generic failure method I wrote and call whenever all my failsafes fail and the script should shutdown. I simply call this:
Simba Code:
procedure FailOutOfCode(message: String);
begin
If(not (LoggedIn)) then
begin
LogInPlayer;
end else
begin
WriteLn(message);
FreeMyDTMs;
Logout;
TerminateScript;
end;
end;
and it verifies first whether it's loggedin, at which point it will login the player (and bypass the six hour fix).
However, it's also possible to get around the issue in other manners, such as something along the lines of:
Simba Code:
repeat
//do all your normal code runtime stuff
until(not loginplayer);
LoginPlayer returns true if currently logged in OR if it was logged out and could log in, and that can also run your six hour fix.