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.

Attack more than one npc?

Featured Replies

If there is 5 different npcs in an area with different names how can i attack the closest one? 

:)

NPC monsterToAttack = getNPCs().closest("Name 1", "Name 2", "Name 3", "Name 4", "Name 5");

if (monsterToAttack != null && monsterToAttack.interact()) {

}

17 minutes ago, Tommm39 said:

NPC monsterToAttack = getNPCs().closest("Name 1", "Name 2", "Name 3", "Name 4", "Name 5");

if (monsterToAttack != null && monsterToAttack.interact()) {

}

small note its best to make the NPC monsterToAttack; in your class and when you use it in a method use monsterToAttack = getNPCs().closest("Name 1", "Name 2", "Name 3", "Name 4", "Name 5"); 

8 hours ago, TheMcPker said:

small note its best to make the NPC monsterToAttack; in your class and when you use it in a method use monsterToAttack = getNPCs().closest("Name 1", "Name 2", "Name 3", "Name 4", "Name 5"); 

obama-wtf.jpg

 

 

 

+1 @Tommm39

On 5/16/2018 at 2:06 PM, TheMcPker said:

small note its best to make the NPC monsterToAttack; in your class and when you use it in a method use monsterToAttack = getNPCs().closest("Name 1", "Name 2", "Name 3", "Name 4", "Name 5"); 

If you are not using the NPC outside the method, there's no reason to do so.

Edited by Canidae

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.