Jump to content

invokes


CcozyD

Recommended Posts

37 minutes ago, CcozyD said:

i see 'enable invokes' on some of the script setup ui now but i have no idea what it is for.
ive done a forum search but nothing comes up.

 

any ideas?

It's like right clicking someting and clicking the action on the menu.
But this can be done in the background even with the menu not being open, so basicly instead of clicking you are send the Menu action invoke. Can be done with things offscreen and no more missclicking.

Did that make any sense for you? :D

Edited by Khaleesi
Link to comment
Share on other sites

1 minute ago, Khaleesi said:

It's like right clicking someting and clicking the action on the menu.
But this can be done in the background even with the menu not being open, so basicly instead of clicking you are send the Menu action invoke. Can be done with things offscreen and no more missclicking.

Did that make any sense for you? :D

i think so.

is it recommended to use it now?

 

Link to comment
Share on other sites

31 minutes ago, CcozyD said:

i think so.

is it recommended to use it now?

 

I find it usefull to use on fast paced scripts where the chance of missclicking is higher. So for bossing and some minigames it is really nice to use :)
Prayer/gear swapping without the tab being open, interact with something offscreen etc

Edited by Khaleesi
Link to comment
Share on other sites

39 minutes ago, CcozyD said:

i see 'enable invokes' on some of the script setup ui now but i have no idea what it is for.
ive done a forum search but nothing comes up.

 

any ideas?

Instead of having to click on something, then the game processes the action, then sends a packet to the server, an invoke just calls the games function to process the action and we give it the details to process. TL;DR we tell the game to do actions, without doing the action.

The point of clicking in the top left is to send a click packet before the action packet.
https://i.imgur.com/QgSkTUd.mp4

Toggling prayer twice instantly causing it to appear always on, virtually giving you infinite prayer.
https://i.imgur.com/T5LowpU.mp4

As long as the client has the data accessible we can call basically any action. Objects are Scene wide so you can call those even if they're off in the black void 50+ tiles away. Scene is a 104x104 area around the player. Scene is set when the loading message is in the top left corner.

Invoking a walk here action on a tile is different. You can invoke to walk to any tile, but the server only processes up to a 128x128 area around the player.

Link to comment
Share on other sites

21 minutes ago, Gunman said:

Instead of having to click on something, then the game processes the action, then sends a packet to the server, an invoke just calls the games function to process the action and we give it the details to process. TL;DR we tell the game to do actions, without doing the action.

The point of clicking in the top left is to send a click packet before the action packet.
https://i.imgur.com/QgSkTUd.mp4

Toggling prayer twice instantly causing it to appear always on, virtually giving you infinite prayer.
https://i.imgur.com/T5LowpU.mp4

As long as the client has the data accessible we can call basically any action. Objects are Scene wide so you can call those even if they're off in the black void 50+ tiles away. Scene is a 104x104 area around the player. Scene is set when the loading message is in the top left corner.

Invoking a walk here action on a tile is different. You can invoke to walk to any tile, but the server only processes up to a 128x128 area around the player.

is there any data on whether this is more commonly detected etc?

i guess for just bankstanding fletching and stuff it isnt really neccessary?

Link to comment
Share on other sites

5 hours ago, CcozyD said:

perfect. thanks for the info.

wasnt sure if i was missing out on something major :)

Np, if you want to try invokes on scripts that don't support them I made something to attempt to force enable them bot tab wide. Run the script and then any script you run will attempt to use invokes out side of walking and other circumstances.
https://github.com/MrGunman200/OSBot-Extended/tree/master/playground/compiled_jar

Link to comment
Share on other sites

  • 4 months later...
On 6/24/2024 at 7:58 AM, JellySp said:

What is the purpose of "human mouse" on bots/scripts in the first place then?

Sales pitch I suppose

6 hours ago, Fanny said:

interested to see some examples if anyone has any of invokes in actual code?

You generally use it like normal scripting code, not sure what examples you wanted. Here's an example of "infinite" prayer flicking I suppose
 

    @Override
    public void onGameTick() {
        super.onGameTick();
        
        final PrayerButton prayer = PrayerButton.THICK_SKIN;
        final RS2Widget widget = getPrayerWidget(prayer);
        final InvokeHelper ih = new InvokeHelper(this);

        if (widget == null) {
            return;
        }

        if (getPrayer().isActivated(prayer)) {
            ih.invoke(widget, 0);
            ih.invoke(widget, 0);
        } else {
            ih.invoke(widget, 0);
        }

    }

    private RS2Widget getPrayerWidget(PrayerButton prayer) {
        RS2Widget widget = getWidgets().getAll().stream()
                .filter(w -> w.getSpriteIndex1() == prayer.getSpriteId())
                .findFirst()
                .orElse(null);

        if (widget != null) {
            widget = getWidgets().get(widget.getRootId(), widget.getSecondLevelId());
        }

        return widget;
    }

 

Link to comment
Share on other sites

3 minutes ago, staker3000 said:

some of these seem like a very high ban rate

 

Surprisingly, while it is know Jagex collects mouse movements they maybe are ignoring them for botting bans. The general consensus is that invokes don't seem to increase ban rates over using osb regular mouse. This may or may not be the case in the future. Maybe mouse data is unreliable as touchscreen PCs do exist. 

I also think some runelite plugins use invokes. I've seen a world hopper plugin that allows a hotkey to be bound for hopping to the next world without having the use the standard interface. 

Link to comment
Share on other sites

On 6/26/2024 at 8:03 PM, Gunman said:

You generally use it like normal scripting code, not sure what examples you wanted. Here's an example of "infinite" prayer flicking I suppose

This is incredibly helpful, just seeing it in context makes a world of difference compared with reading the documentation; makes it a lot easier to understand what is going on

Thanks a lot!

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