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.

SeersWillowChop/Bank

Featured Replies

Seems to stop after banking.

having the same issue.

need to be able to click next when lvl up  please. got an error when trying to deposit willows into bank

need to be able to click next when lvl up  please. got an error when trying to deposit willows into bank

need to be able to click next when lvl up  please. got an error when trying to deposit willows into bank

Script Fail 2 out of 2 times it was ran: When trying deposit* (opens bank window but does nothing)

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.

 

    int[] treeIds = [1276, 1278]

 

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.

These are not willows lol..

These are not willows lol..

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.

Edited by EXITSUCCESS

Change to & it won't crash at bank:

 

 

 client.getBank().depositAllExcept(axeIds)
 
 

Change to & it won't crash at bank:

 

 

 client.getBank().depositAllExcept(axeIds)
 
 
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.

Does this mean it wont cut willows?

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.