Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!
RuneMate will permanently shut down on August 7, 2026
due to events outside our control. You can continue using RuneMate until this date after which it will no longer be available. Thank you to everyone that contributed to RuneMate's success and to the community for the opportunity to serve you all these years.

  • Learn about RuneMate Vault and how its zero knowledge local encryption already protects your sensitive information.
  • Edit or delete your RuneMate account from your Account Settings.
  • All account upgrade subscriptions have been cancelled. No action required.

Resolved Spam clicking the mine action

Joined
Oct 1, 2017
Messages
13
Code:
GameObject rocks = GameObjects.newQuery().filter((go) -> go.getId() == 7491 || go.getId() == 7458 && go.distanceTo(Players.getLocal()) < 3).results().nearest();
                if (rocks != null && rocks.isValid() && rocks.isVisible()
                                  && rocks.distanceTo(Players.getLocal()) < 3
                                  && !Players.getLocal().isMoving()) {
                    if (rocks.interact("Mine")) {
                        Execution.delayUntil(() -> Players.getLocal().isMoving(), 3000, 15000);
                        Execution.delayUntil(() -> Players.getLocal().getAnimationId() != -1, 5000, 15000);
                    }
                }
 
Joined
May 24, 2016
Messages
1,113
Code:
Execution.delayUntil(() -> !rocks.isValid(), () -> Players.getLocal().isMoving() || Players.getLocal().getAnimationId() != -1, 3000, 4000);

A reset delay is needed after you interact, and that's an example of how to do it.

Also IDs are discouraged so I'd look into colorSubstitutions as I assume you are on OSRS.
 
Joined
Oct 1, 2017
Messages
13
Code:
Execution.delayUntil(() -> !rocks.isValid(), () -> Players.getLocal().isMoving() || Players.getLocal().getAnimationId() != -1, 3000, 4000);

A reset delay is needed after you interact, and that's an example of how to do it.

Also IDs are discouraged so I'd look into colorSubstitutions as I assume you are on OSRS.

Hey, thanks for your reply.

I did try to use colorSubstitutions, like so:
Code:
GameObject gold = GameObjects.newQuery().within(GOLD_AREA).colorSubstitutions(empty, goldColor).results().nearest();
with gold area being defined as the area, empty being the rgb of a depleted ore, and goldColor being the rgb of the gold ore.

Sadly, this didn't work, and didn't click anything, however it could be because of my own mistakes.

Any idea?
 
Joined
May 24, 2016
Messages
1,113
Ok so open up the development kit, find where the colorSubs are located for your desired rock and there should be two colors at the very top (original and substitution) - these will work. You don't use the color from a depleted rock :)
 
Joined
Oct 1, 2017
Messages
13
Ok so open up the development kit, find where the colorSubs are located for your desired rock and there should be two colors at the very top (original and substitution) - these will work. You don't use the color from a depleted rock :)

Yes I know there should be two colors. The empty color being (48, 48, 48) and the other color being (106, 88, 30) according to Development Kit. The problem is is it's not clicking if I use colorSubstitution.


Edit: So weird, it suddenly worked.. when an hour ago it didn't, which is why I used IDs to begin with
 
Top