Skip 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.

v1.03 getInventory().contains and getNpcs().getAll()

Featured Replies

WTF.. a client restart solved the npcs.getall() there are just here for reference now

	@Override
	public boolean validate() throws InterruptedException {
//		return !ctx.getInventory().contains(ctx.getMyFood());
		if (ctx.atFightArea()) {
			ctx.log("Not at fight area lel: "+(ctx.getInventory().contains("Salmon"))+".");
			return !ctx.getInventory().contains("Salmon");
		} else {
			ctx.log("At fightarea, no layout");
			return !ctx.hasLayout();
		}
	}
Excuse the messy parts, it doesn't detect salmon whatsoever:

 

JAjTPcI.png

 

and for npcs:

	public void refreshList() {
		listModel.removeAllElements();
		added.clear();

		for (NPC n : ctx.getNpcs().getAll()) {
			if (!n.hasAction("Attack")) {
				continue;
			}
//			if (!inAdded(n) && !inAdded2(n)) {
				CzarNPC npc = new CzarNPC(n.getName(), n.getLevel());
				npc.setPosition(n.getPosition());
				added.add(npc);
				ctx.log("Added 1 : " + n.getName() + " - (" + n.getLevel()
						+ ")");
				listModel.addElement(npc);
//			}
		}
	}
Again, excuse the messy code, nothing appears in mirror client, yet both these features work in the normal client mode.

 

knuEN9H.png

 

(after clicking refresh, no npcs pop up in mirror client)

Edited by Czar

if you turn on entity hover debug and hover over an entity it doesnt recognize that there is an entity there.(for me atleast)

i was told it was fixed on the newest version that came out yesterday. I havent had a problem with it yet

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.