Jump to content

getGraphicObjects to spare my ass cheeks


Recommended Posts

Posted

Hey. Getting clapped by p3 wardens. Gonna probably make auto eat scrip in osbot. From my experience it's not detected as much as other bots. Other bots, i would just hand play in the bot client without scripts and id get auto bandos for botting. 

Anyway. There's the ba-ba balder. It spawns above a tile and casts a shadow on the client. I believe it's a graphics object.

I guess you have to use getGraphicObjects, to figure out if it's at a tile.

java.util.List<GraphicsObject> lol = getGraphicObjects().filter((Filter<GraphicsObject>) position);

uhhh, yeah i'm don't know what im doing. I googled this getgraphicsobject method, and it's never mentioned anywhere on the forums besides in teh api 

can someone make a quick snippet for me how to detect a graphics object at a tile

Posted

@sexyrussian Probs some shit like this

    private GraphicsObject getGraphicsObjectOnPosition(final Position position) {
        final List<GraphicsObject> graphicsObjectList = getGraphicObjects().getAll();
        if (position == null || graphicsObjectList == null || graphicsObjectList.isEmpty()) {
            return null;
        }
        return graphicsObjectList.stream().filter(g -> g != null && g.getPosition() == position)
                .findFirst().orElse(null);
    }
  • Like 1
Posted
20 hours ago, Gunman said:

@sexyrussian Probs some shit like this

    private GraphicsObject getGraphicsObjectOnPosition(final Position position) {
        final List<GraphicsObject> graphicsObjectList = getGraphicObjects().getAll();
        if (position == null || graphicsObjectList == null || graphicsObjectList.isEmpty()) {
            return null;
        }
        return graphicsObjectList.stream().filter(g -> g != null && g.getPosition() == position)
                .findFirst().orElse(null);
    }

That actually looks legit AF. Don't have like fang and shadow, so I'm probably just gonna crank the difficulty to 400 and use the bot to not make mistakes 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...