# Thread: 6 Hour OSRS logout?

1. SRL Junior Member
Join Date
Mar 2015
Posts
42
Mentioned
0 Post(s)
Quoted
14 Post(s)

## 6 Hour OSRS logout?

I'm not sure if there's still a 6 hour log-out for OSRS, but my script just logged out at pretty much exactly 6 hours of perfect running, so I'm assuming there is and it's not a fluke.

Anyways, I know this is probably REALLY basic for most of you guys, but I just was wondering if this simple little code would work for the 6 hour logout (as it not only logs you out but refreshes client right?):

Code:
begin
if not LoggedIn then LoginPlayer else
begin
(REST OF CODE)
end;
end;
Above procedure is part of main loop.

Customary apologies if this is the wrong section.

2. SRL Junior Member
Join Date
Dec 2011
Posts
69
Mentioned
0 Post(s)
Quoted
15 Post(s)
Originally Posted by Polack
I'm not sure if there's still a 6 hour log-out for OSRS, but my script just logged out at pretty much exactly 6 hours of perfect running, so I'm assuming there is and it's not a fluke.

Anyways, I know this is probably REALLY basic for most of you guys, but I just was wondering if this simple little code would work for the 6 hour logout (as it not only logs you out but refreshes client right?):

Code:
begin
if not LoggedIn then LoginPlayer else
begin
(REST OF CODE)
end;
end;
Above procedure is part of main loop.

Customary apologies if this is the wrong section.

yea that will work, but you should try to take breaks before you hit 6 hours if possible

I use aerolib's breakhandler to do that in my scripts. Just remember to ReflectPlayer.Create after logging back in if you are using lape reflection as well.

3. SRL Junior Member
Join Date
Mar 2015
Posts
42
Mentioned
0 Post(s)
Quoted
14 Post(s)
Originally Posted by Myke
yea that will work, but you should try to take breaks before you hit 6 hours if possible

I use aerolib's breakhandler to do that in my scripts. Just remember to ReflectPlayer.Create after logging back in if you are using lape reflection as well.
Thanks, but what is the purpose of breaks? Is it only for antiban or as a method to stop getting force-logged (or both)? I'm generally not too worried about getting banned, as where I bot there are rarely any people, and the account I bot is expendable. However, I do plan on possibly adding a world hopper if a player does show up.

On a separate but related note, how do you add anti-ban during a wait period. Say for instance I have to wait between clicks for 10000 ms, how do I make it so any antiban my script has is in between those 10000 ms and not after it? Do I have to make a another begin-end statement after the wait or what?
i.e.
Code:
begin
if not LoggedIn then LoginPlayer else
begin
(Code to click object);
Wait(10000);
begin
(antiban);
end;

end;
end;
Sorry if I'm not making much sense! I just started scripting a few days ago, and while I'm quite proud of my progress I know that I have a lot to learn.

4. Hmm, I know the RS3 limit was changed to 23 hours but I'm not sure if that holds true for OSRS.

5. SRL Junior Member
Join Date
Dec 2011
Posts
69
Mentioned
0 Post(s)
Quoted
15 Post(s)
Originally Posted by Polack
Thanks, but what is the purpose of breaks? Is it only for antiban or as a method to stop getting force-logged (or both)? I'm generally not too worried about getting banned, as where I bot there are rarely any people, and the account I bot is expendable.
It's for both. It's really not much trouble for the benefit and the breaks can be only a few minutes every couple hours if you wanted. If you truly don't care about a ban then no need, though depending on how your script works 6 hour logs could lead to it getting stuck. Breaks give you more control over when the account logs and leads to less problems.

Originally Posted by Polack

On a separate but related note, how do you add anti-ban during a wait period. Say for instance I have to wait between clicks for 10000 ms, how do I make it so any antiban my script has is in between those 10000 ms and not after it? Do I have to make a another begin-end statement after the wait or what?
i.e.
Code:
begin
if not LoggedIn then LoginPlayer else
begin
(Code to click object);
Wait(10000);
begin
(antiban);
end;

end;
end;
Sorry if I'm not making much sense! I just started scripting a few days ago, and while I'm quite proud of my progress I know that I have a lot to learn.

In that case, you wouldn't call Wait(10000), you would call an antiban procedure that does whatever antiban you want. If you just wait it will do nothing for that duration ( you can include waits in your antiban of course). You should also try to use Wait( randomrange( 8000, 12000)) instead of static sleeps. Make the range whatever works.

Code:

procedure doAntiBan();
begin
//
//do antiban things
//
end;

begin
if not LoggedIn then LoginPlayer else
begin
(Code to click object);
doAntiBan();

end;
end;
Originally Posted by KeepBotting
Hmm, I know the RS3 limit was changed to 23 hours but I'm not sure if that holds true for OSRS.
still 6 for osrs

6. SRL Junior Member
Join Date
Mar 2015
Posts
42
Mentioned
0 Post(s)
Quoted
14 Post(s)
Thanks for your help Myke. My script requires a precise amount of time to elapse between clicks, and too short of an antiban or too long of an antiban would both drastically reduce its' efficiency.
I think I'll stick with the bare minimum basics and hope for the best.