Skip 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.

Node help ...? Thanks babes

Featured Replies

How would I effectively initialize a fighting class?

 

My execute() is okay

Just my validate() is always returning true and takes a chunk out of my CPU : ~35%+ ( in my fighting node)

All my other node calls are fine and use low amounts! : ~8% altogether

 

I only want it to call the Fighting node when NPC is onscreen and Loot is not on the ground. I have tried workarounds to what I can understand from looking through the API but you big scripters can help OSBOTS #1 NOOB SCRIPTER? doge.png

 

 

 

Example of what I am using:

@Override
    public boolean shouldDoActivity(Script s) {
        return (Constants.areaDragons.contains(s.myPlayer()) && s.groundItems.closest(Constants.areaDragons,Constants.loot) == null && !s.myPlayer().isAnimating() && !s.myPlayer().isUnderAttack()); //This is where it willl validate if its truel... Execute... etc.
    } 

Help me babes doge.png

 

Hard to tell without seeing the architecture behind it all.

Might be this though:

s.groundItems.closest(Constants.areaDragons,Constants.loot) == null

Try and remove that and see how it affects your CPU ^^

  • Author

Hard to tell without seeing the architecture behind it all.

Might be this though:

s.groundItems.closest(Constants.areaDragons,Constants.loot) == null

Try and remove that and see how it affects your CPU ^^

This is my fight class:

public class Fighting implements Activity {
    @Override
    public boolean shouldDoActivity(Script s) {
        return (); //Code being validated
    }
    //attack anim =390 || 829 for eating
    @Override
    public int doActivity(Script s) throws InterruptedException {
            //....Code being executed
                 
                
            }
        return 0;
}

And I will try that

Edited by Sinatra

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.