Jump to content

Help to implement tick manipulation


Recommended Posts

Posted

Hey guys, I'm trying to make a bot that uses tick manipulation, I need to drop an item and interact with an object on the same tick.

I tried a few different approaches but none worked perfectly. Any tips for me?

int gameTick = tickCounter.getCurrentTick();
if (barrels.get(0).interact("Take pickaxe")) {
	DropItemSlot(0);
	Sleep.sleepUntil(() -> (tickCounter.getCurrentTick() != gameTick), 600);
}

 

Posted
20 hours ago, Gunman said:

Don't forget to take in account for mouse speed

I tried to look for a method to change the mouse speed, but the ones I found didn't work

Another thing, I noticed that the "onGameTick" method is working for me only in Stealth Mode, in mirror mode it doesn't work, am I doing something wrong?

Posted
51 minutes ago, Heiz said:

I tried to look for a method to change the mouse speed, but the ones I found didn't work

Another thing, I noticed that the "onGameTick" method is working for me only in Stealth Mode, in mirror mode it doesn't work, am I doing something wrong?

onGameTick isn't supported in Mirror Mode. I think MGI said he won't be adding support either because of detection or something, I don't really know why.

https://osbot.org/api/org/osbot/rs07/event/interaction/MouseMoveProfile.html

	getBot().getMouseMoveProfile().setSpeedBaseTime(0); // What controls how fast the mouse is. Lower is faster
        getBot().getMouseMoveProfile().getSpeedBaseTime(); //Get also get the value so you can see the base settings.
        
        getBot().setMouseMoveProfile(new MouseMoveProfile()
                .setNoise(0)
                .setDeviation(0)
                .setOvershoots(0)
                .setSpeedBaseTime(0) 
                .setFlowSpeedModifier(0) 
                .setMinOvershootDistance(0)
                .setFlowVariety(MouseMoveProfile.FlowVariety.MEDIUM)
                .setOvershoots(0)
        );

New mouse has to be enabled to use this ^

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