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.

Optimum Chopper [My first Script] [Open Source]

Featured Replies

I'm new to the 07 scripting scene, but i love java so why not make a script. 

 

This script will contain some of my own anti-ban systems, and i will hopefully create a really efficient bot that cuts willow logs, this is obviously work in progress

 

 

Soruce Code: https://github.com/Optimumrsps/OptimumChopper

 

zBoIbBa.png

 

If you have any information or questios for me, don't be afraid to ask/say smile.png

 

 

Edited by optimumrsps

Thanks for this smile.png and gl on first release

Edited by Aibanker

some tips

 

  • Work with names, not ID's
  • Use myPlayer().isAnimating() 
  • you dont have to define the bank area, as it already exists in banks.DRAYNOR
  • Author

 

some tips

 

  • Work with names, not ID's
  • Use myPlayer().isAnimating() 
  • you dont have to define the bank area, as it already exists in banks.DRAYNOR

 

 

Thanks for this, about the id's, theres more than 1 bank booth object (one that's closed, one that's not even a bank but called bank booth) all within draynor, that's why i actually wanted to use the id's, about the npc's i will use the name smile.png

 

Thanks for the Banks.DRAYNOR, clearly i didn't read the API :P

 

Wouldn't isAnimating pickup walking as an animation ?

 

Edit: https://github.com/Optimumrsps/OptimumChopper/blob/master/src/com/optimum/impl/Started.java#L35

Edited by optimumrsps

Thanks for this, about the id's, theres more than 1 bank booth object (one that's closed, one that's not even a bank but called bank booth) all within draynor, that's why i actually wanted to use the id's, about the npc's i will use the name smile.png

 

Thanks for the Banks.DRAYNOR, clearly i didn't read the API :P

 

Wouldn't isAnimating pickup walking as an animation ?

 

Edit: https://github.com/Optimumrsps/OptimumChopper/blob/master/src/com/optimum/impl/Started.java#L35

for the bank id, just use this

if (getBank().open()) //open the bank
{
    new ConditionalSleep(3500 + random(1500))// sleep UNTILL the bank is open, with a 3500+random 1500 timeout
    {
      @Override
      public boolean condition() throws InterruptedException 
      {
         return getBank().isOpen(); //if bank is open, break out of sleep
      }
    }.sleep();


walking is not animating :P

Edited by The Hero of Time

for your interaction with the trees, instead of sleeping randomly, you could just cond  sleep until you're not animating anymore or something along those lines.

Edited by Saiyan

For your decide() method, you can replace your if else nest for a switch statement.

 

You should have a "setter getter" method for your OCAction, i see you have setAction(), but not getAction() (could be useful, like using it in the switch statement)

 

Also, if you want some ideas for antiban, go watch someone play on twitch or a youtube video and watch what they do and try to replicate that into the script. I, for one, right click every player in the area and examine things randomly when I'm bored.

  • Author

For your decide() method, you can replace your if else nest for a switch statement.

 

You should have a "setter getter" method for your OCAction, i see you have setAction(), but not getAction() (could be useful, like using it in the switch statement)

 

Also, if you want some ideas for antiban, go watch someone play on twitch or a youtube video and watch what they do and try to replicate that into the script. I, for one, right click every player in the area and examine things randomly when I'm bored.

 

I was planning on right clicking players nearby :), I've been analyzing my own behaviors ingame

 

Setter and getter's aren't really necessary atm, i know it's bad practice not using proper encapsulation but hey, it's a start.

 

and again, thanks a lot!

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.