Jump to content

Custom break handler


Heiz

Recommended Posts

20 minutes ago, Heiz said:

How to create a custom "BREAK HANDLER" for my script? Is there any functionality that allows me to log off and pause the script for a certain amount of time?

yeah explv has written some base code for this. You should be able to find it when you google search for it.

  • Like 1
Link to comment
Share on other sites

Alternatively if you don't want to make a custom break manager, you can simply tell the bot to go to an area before breaks are triggered by using this method that based pat improved recently:

getBot().getTimeUntilNextBreak()

this will tell you the time (in seconds now) until breaks will trigger. So if getBot().getTimeUntilNextBreak() < 20, walk to bank or walk to a safe area.

  • Like 3
  • Heart 1
Link to comment
Share on other sites

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...