Jump to content

Help to implement tick manipulation


Heiz

Recommended Posts

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);
}

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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