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.

myPlayer().isUnderAttack()

Featured Replies

1. OSBot Version (do NOT put "current version", be specific) 2.4.85

2. A description of the issue. Include relevant logs. 

myPlayer().isUnderAttack();

Will return false if you are under attack but not interacting with the target attacking you, the best way to replicate this is by simply initiating combat with something with your auto-retaliate off, then clicking the ground to stop your attacks. I do realize that this is apparently working as intended, according to the API documentation. I am reporting as a bug because I thought perhaps, given the scenario I mentioned, there was an oversight when the method was created.

3. Are you receiving any errors in the client canvas or the logger? No

4. How can you replicate the issue? See above.

5. Has this issue persisted through multiple versions? If so, how far back? Not entirely sure.

If we change it to only healthbar being visible, it would solve this issue. If we do that then, many combat scripts which rely on isUnderAttack() will operate dramatically slower because they would all wait for the healthbar to disappear. 

 

I'll try figuring something out. 

I looked into it briefly and during the small rewrite, I ran across something that is either broken or not behaving as intended. Pinged both MGI/Zach about it since they know more about the game than I do. 

Just wanted to keep you updated. 

It should be configured so that after X amount of time that you have not received a hitsplat, you are no longer under attack. If you have received a hitsplat in the specified amount of time, you are under attack. No need for health bars.

It should be configured so that after X amount of time that you have not received a hitsplat, you are no longer under attack. If you have received a hitsplat in the specified amount of time, you are under attack. No need for health bars.

Attacks vary at different speeds. Someone did the banning for me already.

Guest
This topic is now closed to further replies.

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.