Jump to content

getGraphicObjects to spare my ass cheeks


sexyrussian

Recommended Posts

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

Link to comment
Share on other sites

@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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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