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.

RXScripts

Members
  • Joined

  • Last visited

  1. Is there any way to check that the player is indeed moving towards a certain area? That is, I click the mouse to move to a tile, how can I check that the player is actually moving towards that tile now?
  2. Perfect thank you, I do remember OOP to a certain extent, its just that I need a refresher and the best way I learn is through trial and error like this.
  3. I am getting into scripting using tasks and I have a question about inheritance and how to go about doing this. I have my main class: public class Test extends Script { ArrayList<Task> tasks = new ArrayList<Task>(); @Override public void onStart() throws InterruptedException { // Add tasks tasks.add(new DropTask(this)); tasks.add(new CutTask(this)); } @Override public final int onLoop() throws InterruptedException { tasks.forEach(tasks -> tasks.run()); return random(100,300); } } And I have my task class: public abstract class Task extends Test { protected MethodProvider api; public Task(MethodProvider api) { this.api = api; } public abstract boolean canProcess(); public abstract void process(); public void run() { if (canProcess()) process(); } } And I have my cutting task: public class CutTask extends Task { public CutTask(MethodProvider api) { super(api); } @Override public boolean canProcess() { return !api.getInventory().isFull(); } @Override public void process() { api.log("Chop tree task initiated!"); Entity tree = api.getObjects().closest(1276,1278); if (tree != null && tree.interact("Chop down")) { // Just testing } } } Now the above code is super basic while I get my feet wet again in scripting (I haven't scripted in over 6 years so I'm trying to jump start my memory). Basically what I want to do is set a variable, most likely should be in the main class (Test), for the tree Entity. And I want to be able to access and edit this Entity variable from within the tasks themselves. My reasoning for this is that I want to be able to check in the task canProcess() that a tree has been selected, and if it has, that it still exists. This will allow my script to more quickly respond to when a tree is cut down, rather than relying on the cutting animation which often lags behind the actual tree being cut down.
  4. RXScripts posted a topic in Scripting Help
    Solved

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.