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.

EXITSUCCESS

Members
  • Joined

  • Last visited

Everything posted by EXITSUCCESS

  1. thank god, the forum used to be slower than christmas!
  2. well before you "laugh out loud" you might want to read my post. It says "modified the script to work with regular trees at seers bank". For anyone that wants to use the original script just change the expect to except where i mentioned.
  3. sweet man thanks for all the work. I am correct in my understanding that the bot's walking method walkExact for example will walk to any given tile in the game without the need to set up pathing (of course sometimes it may be desired, for which you could just use a number of walk methods using closer together directed tiles) ?
  4. Does anyone know code that I could incorporate into my scripts that would check for this screen while banking (comes up first bank after login) and then hit "yes, I want the pin" so that its not a problem if the bot ends up loging out/in Thanks
  5. import org.osbot.script.mouse.MouseDestinationimport org.osbot.script.rs2.map.Position@ScriptManifest(name = "SeersWillowChop", author = "Masamato", version = 1.2D, info="Start any where between Seers Bank and Willows.")class SeersWillowChop extends Script { int bankId = 25808 int[] treeIds = [1276, 1278] int[] axeIds = [1350, 1352, 1356, 1358, 1360, 1062] enum State { IDLE, CHOPPING, WALK_TO_BANK, PIN, BANKING, WALK_TO_WILLOWS } def state = State.IDLE def currentTree = null def bankTile = new Position(2723, 3493, 0) void onStart() { if (client.getInventory().isFull()) state = State.WALK_TO_BANK } int onLoop() { switch (state) { case State.IDLE: return onIdle() case State.CHOPPING: return onChopping() case State.WALK_TO_BANK: return walkToBank() case State.BANKING: return bank() case State.WALK_TO_WILLOWS: return walkToWillows() } return 300 + random(500) } int onIdle() { if (client.getInventory().isFull()) { state = State.WALK_TO_BANK //client.moveCameraToEntity(closestObject(bankId)) return 500 + gRandom(100, 400) } currentTree = closestObject(treeIds) if(currentTree != null) { log("Going to next Willow!") selectOption(currentTree, currentTree.getMouseDestination(), "Chop down", "Tree", true) client.moveCameraToEntity(currentTree) if (random(5) == 0) { client.moveCameraToEntity(currentTree) sleep(3000 + gRandom(500, 200)) } } return 100 + gRandom(600, 500); } int onChopping() { if (client.getInventory().isFull()) { state = State.WALK_TO_BANK //client.moveCameraToEntity(closestObject(bankId)) return 300 + gRandom(100, 400) } if (random(30) == 0 && currentTree != null && currentTree.exists()) client.moveCameraToEntity(currentTree) if (currentTree == null) { state = State.IDLE log("Chopped down Willow!") return 500 + gRandom(1000, 500) } if (!currentTree.exists()) { state = State.IDLE currentTree = null log("Chopped down Willow!") } return 500 + gRandom(100, 500) } int walkToBank() { log ("Walking to Bank!") walk(bankTile) sleep(5000 + gRandom(300, 50)) selectEntityOption(closestObject(bankId), "Bank", "Bank booth") if (myX() <= 2722 && myX() >= 2729 && myY() >= 3493 && myY() <= 3490) { selectEntityOption(closestObject(bankId), "Bank", "Bank booth") return 100 + gRandom(100, 200) } sleep(1000 + gRandom(300, 50)) if (client.getBank().isOpen()) state = State.BANKING return 200 + gRandom(100, 200) } int bank() { client.getBank().depositAllExcept(axeIds) client.getBank().close() state = State.WALK_TO_WILLOWS def tree = closestObject(treeIds) //if (tree != null) //client.moveCameraToEntity(tree) return 500 + gRandom(200, 300) } int walkToWillows() { log("Walking to Willow Trees") currentTree = closestObject(treeIds) if (currentTree != null) { log("Going to next Willow!") selectEntityOption(currentTree, "Chop down", "Tree") client.moveCameraToEntity(currentTree) } return 200 + gRandom(800, 300) sleep(8000 + gRandom(300, 50)) state = State.IDLE } void onMessage(String message) { if (message == "You swing your axe at the tree.") { log("Chopping down tree!") state = State.CHOPPING } else if (message == "You get some logs.") { state = State.IDLE } else if (message == "Your inventory is too full to hold any more logs.") { state = State.WALK_TO_BANK } } } modified the script to work with regular trees at seers bank. also the OP's original script has a typo at the depositAllExcept method inside the int bank function twoards the bottom of the script. locate this and change the expect to Except and it should work pretty well.
  6. this is going to be awesome. I've been considering either learning to script the scar bots or get on board with OSbot. Considering the rich update coming tomorrow I think I'm gonna start learning groovy.

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.