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.

Explv

Scripter II
  • Joined

  • Last visited

Everything posted by Explv

  1. This is what I used: Stream.concat(getObjects().getAll().stream(), getNpcs().getAll().stream()) .filter(entity -> entity.getName().contains("Portal")) .findAny() .ifPresent(portal -> { if (portal.interact("Use", "Exit")) { Sleep.sleepUntil(() -> !portal.isVisible(), 10_000); } });
  2. Explv replied to Explv's topic in Tutorials
    In the onStart() method, set a global Position variable to myPosition()
  3. Ok I see the issue, I'll take a look when I'm home.
  4. In what way does it break? Did you make sure to null check before comparing IDs like in the updated getTabSlot() method I just posted?
  5. Ah, good catch. Yes it looks like getBank().getItems() returns new instances of Item each time, so using == will not work. In that case if you are using ids, you can use the following code: Item item = getBank().getItem("Yew logs"); if (item != null) { getBank().scrollToSlot(getTabSlot(item.getId()), getBank().getSlot(item.getId())); } private int getTabSlot(final int itemId) { int tabForItem = getBank().getTabForItem(itemId); if (tabForItem == -1) { return -1; } Item[] itemsInTab = getBank().getItemsInTab(tabForItem); for(int i = 0; i < itemsInTab.length; i++) { if(itemsInTab[i] != null && itemsInTab[i].getId() == itemId) { return i; } } return -1; }
  6. Did you check that the item you are passing to the methods is not null? If you have, then I will take a look at this when I get home from work
  7. There is a private method in the Bank class for getting the tab slot, not sure why it is not public.
  8. // See next page for updated solution
  9. You need to make sure there is an item in the slot (in my example the first slot), otherwise it will throw an NPE. You will also need to check that the hover() method was successful, because if the mouse is not hovering over the item, then the tooltip will be null. No problem. What exactly is your use case for this?
  10. There are a lot of things incorrect here. As mentioned by @wwwat you have two functions that achieve nothing, and are also infinitely recursive, which will just break. It also looks like you have some of your conditions in the wrong place.
  11. I'm not sure if there is a better solution, but this would work: getInventory().getItemInSlot(0).hover(); if (getMenuAPI().getTooltip().contains("Members object")) { // item is members } Essentially, it hovers the mouse over the item, then checks the tooltip message
  12. You probably need to get the widget of the box then interact with that
  13. Explv replied to whipz's topic in Scripting Help
    Item item = getInventory().getItemInSlot(28); If (item != null) item.interact(); Sorry about the formatting, on my phone
  14. Create an array of bank areas that you want to include, and then call getWalking().webWalk(area[]). The documentation states: So: getWalking().webWalk(Banks.VARROCK_WEST, Banks.LUMBRIDGE_UPPER, Banks.FALADOR_EAST); Would walk to the closest bank out of those three
  15. I'll take a look Yep, this is an issue with finding the exit portal, I will fix it soon See above
  16. I'll take a look, thanks I did update the script so that it should upgrade pickaxes, I will take a look if it is not working Is this only an issue in mirror mode? If it is not walking to the gnome stronghold then that is a webwalking issue, post in the client bugs section. I am aware of the rooftop mark of grace issue, I will fix it when I have the time I still need to fix GUI saving/loading. Once that is fixed I will add a CLI option to load a saved configuration
  17. Try: cd C:\Users\admin\Downloads\proguard5.3.2\proguard_configs\ Followed by: java -jar C:\Users\admin\Downloads\proguard5.3.2\proguard5.3.2\lib\proguard.jar @nmz.pro
  18. You are running the command incorrectly. It should be: java -jar path_to_proguard.jar @path_to_config.pro Where config.pro is your .pro file and the jar you run is the proguard.jar file
  19. Perhaps I should make it hover WC xp
  20. Explv replied to Explv's topic in Others
    Those are issues with web walking, and should be posted in client bugs. I believe haunted tree has now been fixed (don't quote me on that)
  21. If you don't understand the code, you should either learn how it works or not use it. I would recommend you start off learning the basics of Java and building up from there. I would recommend you continue with your original code, and add a while loop to get your desired functionality rather than adding a GUI at this point
  22. If the script has a GUI and no CLI support, then the GUI will open when the script starts just like when you run it normally.

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.