Jump to content

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


FushigiBot

Recommended Posts

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