Heiz Posted June 2, 2021 Posted June 2, 2021 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); }
Heiz Posted June 3, 2021 Author Posted June 3, 2021 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?
Gunman Posted June 3, 2021 Posted June 3, 2021 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 ^ 1