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. the end.
  2. the end.
  3. I don't seem to be able to reproduce this. In what location were you firemaking? These issues should now be fixed. Thanks
  4. Yes I could do something like that, maybe default settings with optional overrides.
  5. To help me improve this application please answer the following polls: Should proxies be tied to accounts instead of configurations? Should options be set on all configurations, or individually?
  6. The item IDs are different to on rsbuddy (where I am getting the data from) On rsbuddy Mithril platebody(t) is 12287 for example. You should make use of the RSExchange class I wrote on the first page, passing the names of the items, to ensure that the correct IDs are used.
  7. I do plan on adding this, haven't had time to get around to it just yet
  8. Thanks for the report, I'll take a look
  9. You could either have a single paint and update the information you want to be displayed when you change tasks, or if you REALLY want a new onPaint method for each task you could make your Task class implement Painter: import org.osbot.rs07.canvas.paint.Painter; import java.awt.*; public class Example implements Painter { @Override public void onPaint(Graphics2D graphics2D) { } } And then when you change the current Task that is executing: getBot().removePainter(previousTask); getBot().addPainter(newTask);
  10. Pushed a fix for this, will be available when the SDN is next updated
  11. I have pushed a fix for this, it will be available when the SDN is next updated
  12. You are only allowed to read and write files in the OSBot data directory. You can retrieve that directory using the getDirectoryData() method in the Script class
  13. Yes but there is a method exchangeContext(Bot bot) which in simple terms basically copies all the variables from the bot instance to your class. Which would fix your Null pointer exception. Fletch fletch = new Fletch(); fletch.exchangeContext(getBot());
  14. Or just pass a MethodProvider reference to the constructor of your class (your main class extends MethodProvider) so that you can access the API methods Another alternative is to extend MethodProvider and call exchangeContext(Bot bot)
  15. It's because you're extending your class called main. Consider reading up on inheritance
  16. No that is not close. You have to create a new instance of MessageListener, how could a null MessageListener be of any use? You also only want to add a message listener once, not every time canProcess() is called. I understand you may have bad dyslexia, I am not trying to be rude, I am just saying that you may want to follow some Java tutorials before trying to write scripts, because it seems like you don't understand the fundamentals just yet.
  17. Not too sure what everyone else in this thread is smoking, all you need is: NPC cow = getNpcs().closest(npc -> npc.getName().startsWith("Cow") && npc.isAttackable()); The isAttackable() method in the Character class returns true if: It is multiway combat and the character has health > 0 OR The character has health > 0 and is not under attack OR The character is interacting with your player
  18. I suspect you may need to spend some more time learning Java, before writing scripts
  19. You need to use a MessageListener You can add one by calling api.getBot().addMessageListener(messageListener); Check that the message received is of type Message.MessageType.RECEIEVE_TRADE Then set a global boolean variable inside your Task class to true And return that boolean variable from your canProcess method
  20. Use a message listener to check for trade messages. If it receives one set some boolean to true indicating that the script should begin the trading task. Also store the username of the player trading with you. Then interact with that player to commence trading. There are methods for interacting with the trade window in the API.
  21. https://osbot.org/forum/topic/115124-explvs-scripting-101/
  22. Consider reading my tutorial: https://osbot.org/forum/topic/115124-explvs-scripting-101/

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.