Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Evaluating the break condition of a WalkingEvent more often?

Featured Replies

Hello, I have a break condition set up for my WalkingEvent. It works absolutely perfectly when the player is walking, but when the player is running I feel like the program does not evaluate the break condition fast enough that it would be useful to me. The path itself is rather short so it makes sense to me that the problem mostly exists only when running. The WalkingEvent always finishes before advancing instead of breaking halfway.

 

The objective is to simulate a more human-like interaction where a player starts walking towards an NPC and then. while it is still walking towards it, it interacts with the NPC. In the current state the player's character always stops (reaches the end of the path) for a period of time before interacting with the NPC. Again, the implementation works perfectly when the player's character is walking. Because of this I suspect the break condition is not evaluating fast enough for my scenario while the character is running.

 

Is there anyway to enable the bot to evaluate the break condition more often? Is there a different way about solving my problem? Thank you for your time.

Edited by aniki432789

I really doubt this is the case, the break condition should be getting evaluated multiple times a second. If you could post your code for the WalkingEvent it'd be much easier to help you.

Another option is to disable running for the WalkingEvent by setting the energy threshold to greater than 100 by using:

walkingEvent.setEnergyThreshold(101);

Are you sure you've set the break condition right? I use it all the time and have never had an issue with it.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.