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.

Essence Mine Portal Problem

Featured Replies

Well, I have the rest of my ess miner working fine, but I've run into a problem.

 

Apparently there are two types of portals used to exit the mine. (I'm not talking about how it switches from "Use Portal" to "Exit Portal")

 

The first type of portal is detected fine, but I can't seem to get the second one. The real ID and the object ID both do not work, nor does trying to use it via a string method.

 

 When using the Entity Hover Debug its string name comes up as "<col=00ffff>Portal</col>" (which I found odd because it doesn't do that for any other objects that I've seen), with the ID next to it, and the realID has generally been around 2660 (with the object IDs being somewhere a little above that)

 

Not sure how to go about getting this object. any help would be appreciated.

 

  • Author

Search for entities for actions smile.png

How would I go about that? lol (thank you btw)

How would I go about that? lol (thank you btw)

 

You will have to write a custom method for it.

Add all RS2 objects and NPCs to a list and then go through that list by checking for all entities that have either Exit or Use in their actions then return the closest of that subset.

 

I would give you the method but I'm releasing an ess miner myself, no hard feelings :p

  • Author

Thank you everyone, I got it figured out!

 

 

You will have to write a custom method for it.

Add all RS2 objects and NPCs to a list and then go through that list by checking for all entities that have either Exit or Use in their actions then return the closest of that subset.

 

I would give you the method but I'm releasing an ess miner myself, no hard feelings tongue.png

 

 

Haha I appreciate the help, thank you, I'm not planning on releasing mine though. It's much more just for a learning experience, I haven't scripted in a few years since rsbot so I'm just trying to refresh myself. 

How would I go about that? lol (thank you btw)

public RS2Object filterPortal(String action){ 
 for(RS2Object o: objects.getAll()){
    if(o != null && o.getDefinition().getActions()[0].equals(action)){
          return o;
    }
  }
 return null;
}

The getActions()[0] will return the action in the first index of the list aka the First interaction option.

 

Guest
This topic is now closed to further replies.

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.