View Full Version : how to detext logout
cynicz
06-18-2012, 02:08 AM
OK my net like disconnects every 30minutes for a split second. On normal timescale this would just cause a 1 second lag but on simba it logs me out immediately. How can i add detect logout to restart a script or just log me in and continue doing what it was doing. I have 130k pots to make and I'd like to bot while at work etc also what's a good detect random and logout loop I can add.
Thanks for any help
Based Lord
06-18-2012, 02:20 AM
LoggedIn returns true or false (LoggedIn or Not)
LoginPlayer; Logs in your player if you put your info in the DeclarePlayers
add this to various parts of the script:
if not LoggedIn then
LoginPlayer;
cynicz
06-18-2012, 02:26 AM
So would I just put a loop at the beginning of the script to check if logged in if true then continue if false then login and then continue?
Based Lord
06-18-2012, 02:28 AM
So would I just put a loop at the beginning of the script to check if logged in if true then continue if false then login and then continue?
You would want it through out the script so that if it logs out at any point it will just log in again and continue where it left off.
So would I just put a loop at the beginning of the script to check if logged in if true then continue if false then login and then continue?
No. U dont need a loop to check that repeatedly. Putting it at the beginning of the mainloop means that it will ONLY check it at the beginning. Put them before every action if u want to be safe.
cynicz
06-18-2012, 02:43 AM
Thanks guys I was planning on looking it up and coding it myself not leeching but i appreciate the guy who post the script code and appreciate everyone's input
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.