Jump to content

Method Update - More than 1 Check to "Sleep until" Method


Recommended Posts

Posted

Background

Currently, Sleep until supports one method on top of the time.

Eg. Sleep for 5000 or until it reaches area A

This sleep will break when either 5000ms have passed or when the bot is in area A.

 

Why is this useful?

One can set multiple conditions for the sleep to break where needed. It also helps with efficiency for when the API miss-clicks and the action fails, or when you want to cancel an ongoing action based on another condition.

 

How can it be used?

Abyss Runecrafting - One can set a sleep when interacting with the obstacles that breaks when one of these conditions have been met:

1. Time has passed

2. The bot reaches the area upstairs

2. The hp drops below 20 points. 

Combat - One can set a sleep when attacking the npc that breaks when

1. The time has passed

2. The bot is in combat

3. The onMessage "Another player is fighting that" shows.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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