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.

Open Source Woodcutting Script

Featured Replies

  • Author
7 minutes ago, Eliot said:

Looks good, pretty similar to progressiveWC. You have a lot of nested if statements that could be shortened (e.g. if (tree != null && tree.interact("Chop down")). Tree names and areas should be final constants declared once instead of returning a new area/string each time. Logic of the script has some quirks such as not switching to the next tree when the current tree is chopped down (by someone else) and waiting until the animation ends.

I'll leave that for your one. But yes, that would be added normally :) 

if (Banks.VARROCK_WEST.contains(myPlayer())) {
            getWalking().webWalk(Banks.VARROCK_WEST);

Can somebody explain this to me? Trying to learn the code

From how I read it, if The Bank contains player, walk to the bank?

or am i reading this wrong?

3 hours ago, kingbutton said:

if (Banks.VARROCK_WEST.contains(myPlayer())) {
            getWalking().webWalk(Banks.VARROCK_WEST);

Can somebody explain this to me? Trying to learn the code

From how I read it, if The Bank contains player, walk to the bank?

or am i reading this wrong?

yea, think it's missing an ! at the if ;o

4 hours ago, kingbutton said:

if (Banks.VARROCK_WEST.contains(myPlayer())) {
            getWalking().webWalk(Banks.VARROCK_WEST);

Can somebody explain this to me? Trying to learn the code

From how I read it, if The Bank contains player, walk to the bank?

or am i reading this wrong?

if (!Banks.VARROCK_WEST.contains(myPlayer())) {
            getWalking().webWalk(Banks.VARROCK_WEST);

Easier way to get tree area;

Area yewArea = new Area(3203, 3506, 3225, 3497);
Area oakArea = new Area(3171, 3425, 3159, 3399);
          
Area areaToChop = getSkills().getDynamic(Skills.WOODCUTTING) >= 60 ? yewArea : oakArea;          

 

  • Author
On 8/2/2017 at 3:37 AM, kingbutton said:

if (Banks.VARROCK_WEST.contains(myPlayer())) {
            getWalking().webWalk(Banks.VARROCK_WEST);

Can somebody explain this to me? Trying to learn the code

From how I read it, if The Bank contains player, walk to the bank?

or am i reading this wrong?

! was left out, fixed

Create an account or sign in to comment

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.