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.

Colivar

Members
  • Joined

  • Last visited

  1. Thanks, this is really helpful!
  2. ouch, I guess after messing around too much I screwed up without realising, thanks! ;)
  3. ah wow... I feel foolish, thanks. only one error left: private State getState() { Entity tree = objects.closest("Willow Tree"); Entity booth = objects.closest("Bank Booth"); if (!myPlayer().isAnimating() && (!myPlayer().isMoving() && (tree == null))); return State.attrees; if (!myPlayer().isAnimating() && (!myPlayer().isMoving() && (booth == null))); // error: unreachable code return State.atbank; if (!myPlayer().isAnimating() && (!myPlayer().isMoving()) && (tree == null) && (inventory.isEmpty())); return State.walktotrees; if (!myPlayer().isAnimating() && !myPlayer().isMoving() && (booth == null) && (inventory.isFull())); return State.walktobank; return State.idle; }
  4. Hi, I`m trying to learn to script in OSbot, I was wondering if anyone could take the time and tell me what I am doing wrong. I get 3 errors that I dont quite understand. Thanks in advance! import org.osbot.rs07.api.LocalWalker; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.api.model.Player; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.api.model.*; @ScriptManifest(author = "", info = "", logo = "", name = "", version = 0) public class test extends Script { @Override public void onStart() { log("Welcome"); } private enum State { idle, walktobank, walktotrees, atbank, attrees } private State getState() { Entity tree = objects.closest("Willow Tree"); Entity booth = objects.closest("Bank Booth"); if (!myPlayer().isAnimating() && (!myPlayer().isMoving() && (tree == null))); return State.attrees; if (!myPlayer().isAnimating() && (!myPlayer().isMoving() && (booth == null))); return State.atbank; if (!myPlayer().isAnimating() && (!myPlayer().isMoving()) && (tree == null) && (inventory.isEmpty())); return State.walktotrees; if (!myPlayer().isAnimating() && !myPlayer().isMoving() && (booth == null) && (inventory.isFull())); return State.walktobank; return State.idle; } public int onLoop() throws InterruptedException { switch (getState()) { case idle: sleep(random(500, 700)); break; case attrees: Entity tree = objects.closest("Willow Tree"); tree.interact("Chop"); break; case walktobank: Entity booth = objects.closest("Bank Booth"); LocalWalker.walk(booth); break; case walktotrees: Entity tree_2 = objects.closest("Willow Tree"); LocalWalker.walk(tree_2); break; } return random(200,300); } public void onExit() { log("Bye"); } }

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.