Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Disable automatic camera movement


    botsmcbot

    Recommended Posts

    Posted

    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.

    Posted

    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.

    Posted

    EntityDestination ed = new EntityDestination(s.getClient(), entityName);
    InteractionEvent ie = new InteractionEvent(ed);
    if (ie.interact(entityName.getActions()[1],InteractionSetting.EMPTY_SETTING)) { }
    Posted

     

    EntityDestination ed = new EntityDestination(s.getClient(), entityName);
    InteractionEvent ie = new InteractionEvent(ed);
    if (ie.interact(entityName.getActions()[1],InteractionSetting.EMPTY_SETTING)) { }
    

    ^that

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.