Jump to content

How do I logout and end the script?


DirtyDick

Recommended Posts

I'm trying to set up a simple logout function but for some reason it's not working.

 

    	log("No money - logging off in 5 seconds");
    	sleep(5000);
    	log("logging off");
		getLogoutTab().logOut();

When I run this, the log and sleeps work and then the bot navigates to the logout tab, highlights the 'logout' button and then does nothing 🤨

Link to comment
Share on other sites

I've managed to log out now using 

    	log("No money - logging off in 5 seconds");
    	sleep(5000);
    	log("logging off");
		getLogoutTab().open();
		getLogoutTab().logOut();

but the auto-logger just logs me back in repeatedly - how can I terminate the script if I have logged off, without the onLoop continuing to loop?

Link to comment
Share on other sites

3 hours ago, Khaleesi said:

Thanks Khal ❤️ and you're right, I'll read the API

ps thank you for your awesome wintertodt script, I got to 200m fm xp on a hcim babysitting it a few years ago without dying or getting banned

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...