botsmcbot 0 Posted July 18, 2016 Is there a way to prevent the camera from being repositioned when trying to interact with a GameObject? I've noticed that the camera seems to move most of the time I attempt to interact with something and there's times where it moves so there's actually other objects (walls, ground etc) blocking of the view of the GameObject it clicks on. I can understand needing to reposition to get a good angle to actually be able to perform the click but most of the time the GameObject appears to be on the screen and easily clickable.
Cardozz 46 Posted July 18, 2016 I've recently helped in another topic about camera movement. There is, at the moment, no way to disable the camera movement. I'm pretty sure Dreambot 3 will have this feature again, though. http://dreambot.org/forums/index.php/topic/5932-camera-rotating/ And take a specific look at my posts. You can modify this one: GameObject trapdoor = getGameObjects.closest("Trapdoor"); if(trapdoor.isOnScreen){ //Notice that i removed the "!", because there will only be a clickable point if the entity is visible. if(trapdoor.getClickablePoint() != null){ getMouse().click(trapdoor.getClickablePoint()); } else { getCamera().mouseRotateTo(Calculations.random(int,int), Calculations.random(int,int)); //Find the bounds of the X and Y rotation manually when it gets stuck. } Or have a while-loop like this: GameObject trapdoor = getGameObjects.closest("Trapdoor"); while(trapdoor.getClickablePoint() == null){ getCamera().mouseRotateTo(trapdoor); } if(trapdoor.getClickablePoint() != null){ getMouse().click(trapdoor.getClickablePoint()); } Please don't judge me on my while-loop code. Im pretty tired and heading to bed now lol.. Try to modify the first code and take a look at the topic link i sent with it above.
Diddy 265 Posted July 18, 2016 EntityDestination ed = new EntityDestination(s.getClient(), entityName); InteractionEvent ie = new InteractionEvent(ed); if (ie.interact(entityName.getActions()[1],InteractionSetting.EMPTY_SETTING)) { }
Hopewelljnj 46 Posted July 18, 2016 EntityDestination ed = new EntityDestination(s.getClient(), entityName); InteractionEvent ie = new InteractionEvent(ed); if (ie.interact(entityName.getActions()[1],InteractionSetting.EMPTY_SETTING)) { } ^that
Recommended Posts
Archived
This topic is now archived and is closed to further replies.