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.

Who is attacking me?

Featured Replies

No, but you can get lazy and make some method to check each.

 

 

This would be helpful for the ATRareFinder script. If it detects a random or NPC is attacking it, It runs. If it's a player it teleports. Would cause much less deaths caused by people killing bots in wildy. :P

  • Author

No, but you can get lazy and make some method to check each.

I assume I could just get a list of the npcs around the area and check which one is facing my character. Any better ideas?

 

This would be helpful for the ATRareFinder script. If it detects a random or NPC is attacking it, It runs. If it's a player it teleports. Would cause much less deaths caused by people killing bots in wildy. tongue.png

This would benefit a lot of things.

i do not think there is any other way.
here you go

    public Entity[] getFacingEntity() {
        ArrayDeque<Entity> entities = new ArrayDeque<>();
        for (NPC e : client.getLocalNPCs())
            if (e.isFacing(myPlayer()))
                entities.add(e);
        for (Player e : client.getLocalPlayers())
            if (e.isFacing(myPlayer()))
                entities.add(e);
        return entities.toArray(new Entity[entities.size()]);
    }

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.