
Originally Posted by
i3egoHan
Yeah i guess so, just seen so many people have bad fundamentals and make a complete mess of there main loops.
Probarly not needed, But what i mean is when i was working on Nexus/iBot we had a Random which if ever you got logged out, it would simply log you back in.
So yeah, basically just check ifLoggedIn in the FindRandoms procedure, Could be somewhat usefull what with the new Randoms system (being able to disable it if not needed)
Oh that's actually not a bad idea. I handle logouts like that in my scripts, but I would assume that most people don't account for connection losses or the like.
I think I will add something like this:
Simba Code:
if ((not loggedIn()) and (players[currentPlayer].active)) then
begin
addToSRLLog('_FindAllRandoms: Unexpected logout, logging back in');
if (not loginPlayer()) then
exit;
end;
Seems simple enough.