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.

2 npc's with same name but different levels

Featured Replies

id?

 

 

 

 

getCombatLevel()

 

 

 

I am no scripter at all but grab the ID and use the ID instead of the Name ? (Different Levels have different ID's)

You can get the ID under settings on the client. (Same is used if you want to interact with a door, inventory and so)

Edited by Oliver

 

 

getCombatLevel()

 

That's what I did when making my thieving script compatible with guards on DMM. I'd shy away from using ids as Sentende mentioned, only because Jagex in the past has changed them and could easily do so again. Not a super big deal but it is annoying to have to go grab new ids to change your script.

I am no scripter at all but grab the ID and use the ID instead of the Name ? (Different Levels have different ID's)

You can get the ID under settings on the client. (Same is used if you want to interact with a door, inventory and so)

 

Check Molly's post underneath. Using ID's to grab the correct NPC is like trying to kill someone with a plastic knife.

 

That's what I did when making my thieving script compatible with guards on DMM. I'd shy away from using ids as Sentende mentioned, only because Jagex in the past has changed them and could easily do so again. Not a super big deal but it is annoying to have to go grab new ids to change your script.

 

Haven't touched RS since december, but DMM guards don't have the "Pickpocket" option? Could you not just check npc.hasAction("Pickpocket")? Could always be wrong.

 

Also OP: seems as if getCombatLevel() isn't a thing; use getLevel()

Check Molly's post underneath. Using ID's to grab the correct NPC is like trying to kill someone with a plastic knife.

 

 

Haven't touched RS since december, but DMM guards don't have the "Pickpocket" option? Could you not just check npc.hasAction("Pickpocket")? Could always be wrong.

 

Also OP: seems as if getCombatLevel() isn't a thing; use getLevel()

 

Honestly I don't recall if they have the pickpocket option, but yeah you could always check for action of course, assuming they don't.

Edited by Molly

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.