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.

Checking if other players are in a certain Area?

Featured Replies

How do i check if other players within my area (scArea)

case ATTACK:
  //if(getPlayers().getAll(f->f!=null && scArea.contains()g.size()>0) {
    if scArea.contains(getPlayers().closest(player -> player != null && !player.equals(myPlayer()));
    break;

public boolean areaContainsPlayers(Area a) {

        return getPlayers().closest(p -> p != null && !p.equals(myPlayer()) && a.contains(p)) != null;

}

Edited by Imateamcape

  • Author
49 minutes ago, Iwin said:

 

thank u, is this random area 0 to 25 or?

21 minutes ago, Imateamcape said:

public boolean areaContainsPlayers(Area a) {

        return getPlayers().closest(p -> p != null && !p.equals(myPlayer()) && a.contains(p)) != null;

}

didnt work for me :l

35 minutes ago, DrDu said:

thank u, is this random area 0 to 25 or?

didnt work for me :l

can i see the context in which you're using it? i am 100% sure the code is correct.

  • Author
2 hours ago, Imateamcape said:

can i see the context in which you're using it? i am 100% sure the code is correct.

dont worry i ended up using Iwin's snippet

 

thanks tho <3

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.