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.

Powerchopper (How do i make it drop logs)

Featured Replies

So after getting a bit help from a friend yesterday (and some guys here)

I manange to get my scripting started.

But i have no idea what to do here

if (!inventory.isFull())
return State.CHOP;
    return State.DROP;
 
It doesn't start chopping, but it drops the logs instant before the inventory is full (if i start chopping manually)

 

Edited by atoo

 

So after getting a bit help from a friend yesterday (and some guys here)

I manange to get my scripting started.

But i have no idea what to do here

if (!inventory.isFull())
return State.CHOP;
    return State.DROP;
 
It doesn't start chopping, but it drops the logs instant before the inventory is full (if i start chopping manually)

 

 

 

1. About your area, go into the client and activate entity hover-on. Move the cursor of your mouse to a tile, you will get 2 coordinates (1831, 1839) (x,y)

Do this one more time so you've got the coordinates of 2 tiles (2 corners so you have a square). if your second coordinate would be (0181, 4810) your area would then become --> AREA_TREES = new Area(1831, 1839, 0181, 4810)

 

2. About dropping the logs; take a look into the API.  http://osbot.org/api/org/osbot/rs07/api/Inventory.html

 

If you want it to perform the drop action if your inventory is full, it should be this -->

 

if (inventory.isFull()) 

 

not this --> if (!inventory.isFull())

the ! "means" "not". in this case that would be --> if inventory is not full

So what you'd have to do -->

 

if (inventory.isFull())
   inventory.dropAllExcept("Bronze Axe, Iron axe");  //etc

If you just want to drop everything in your inventory -->

 

if (inventory.isFull())
    inventory.dropAll();

      

Edited by Eagle Scripts

  • Author

Thanks alot!

I already added an exception for the axe but the rest Will Help me out madly!

Will Try it when i get home

Personally I have not used the drop methods so be aware if your inventory is full and you drop one log it isn't full any more. But I feel like if you use drop all except. It should probably drop most of your items before it execute choppibg. Try it out and let us know

  • Author

Fuck me im retarded, got it fixed

Edited by atoo

  • Author

Got everything working, I want to thank everybody that has taken time helping me!

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.