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.

Is there any way to extend the current MethodProvider?

Featured Replies

I have been tryin that for quite long now, without any luck sad.png I just wanna add a bit of my API in a  nice way.

I could really use some help biggrin.png Tyvm QwPha8E.png

 

Edit:

I wanna do something like this but in my "Nodes".. and in my whole script, Acctualy I just wanna change my scripts one :3

5RzSp8G.png

 

Says in my IntelliJ this method is deprecated, so whats the alternative way of doing what I want?

62zJb9G.png

Edited by PatriqDesigns

  • Author

It's fine to use exchangeContext(bot). I have used it some scripts before.

For some reasons it is deprecated, that means there are other ways of doing it :)

Just asking if anyone knows how to :3

For some reasons it is deprecated, that means there are other ways of doing it smile.png

Just asking if anyone knows how to :3

it doesn't necessarily mean there're other ways of doing it, just that it should be avoided

  • Author

it doesn't necessarily mean there're other ways of doing it, just that it should be avoided

 

Well just wanted to know the way of avoiding it..

Anyways if its not possible to avoid, how am I suppose to extend my API with that? Not managing to do it tongue.png

I would like if someone could give me an example.

 

I want to do something like this

class CustomMethodProvider extends MethodProvider{
 
   MyInventory inventory = (MyInventory) super.inventory;
  
}

How Im I suppose to extend my Script with that MethodProvider and not the OSBot one? like..

class Script extends MyMethodProvider{
   //rest of the class
}

I really could use some help sad.png

Edited by PatriqDesigns

The devs here generally deprecate methods that are meant for internal use. Which means that most of the deprecated stuff don't actually have alternatives

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.