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.

What are the characters that appear randomly and how do you interact with them?

Featured Replies

These characters appear randomly, I assume, which are part of the bot detection.
I have captured some IDs as I have developed the code.
Before trying the code that I try to do, first, to "dismiss" said characters, I would like to know:

Sorry if my question is a bit absurd, but I confuse a few types of statements.

The code that I have so far is:

final int[] npcsList = new int[] {
		5427, 6744, //Flippa
		312, 479, 2145, 3290, //Frog
		380, 2122, //Pillory Guard
		375, 376, //Rick Turpentine
		5510, //Sandwich lady
		5438, 5441, //Giles
		322, 2408, 2409, 2429, 4301, 4302, 4303, 4304, 4305, //Drunken Dwarf
};
final NPC npc = npcs.closest(npcsList);
if (npc != null) {
	if(npc.isVisible()) {
		npc.interact("Dismiss");
	}
}


I assume that the error in what I have code is if the NPC or objecto nose digire to me.


First of all, Thanks.

 

osbot npc.jpg

You're going to be updating that list every Thursday until you die. Also they are not used in part of bot detection, at all - there was a lengthy post made about this 2 years ago.

Looks like the lads above answered your question, but just for future reference: As a general rule of thumb, if you have to use an id for something, there's probably a better solution. Try and filter objects based on static features which are unlikely to change, for example name or interaction options. This is better practice and will mean your script is unlikely to break following game updates. It's also mandatory to avoid the use of ids if you wish to submit a script to the SDN.

If you have any further questions, don't hesitate to let me know / drop me a PM. I'm always happy to help :)

Best

Apa

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.