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
  • Zoom Camera random and zoom out


    xNonCombat

    Recommended Posts

    I started scripting today, but I got hit by the camera zoom event everytime (I just want to be zoomed out) 

     

    How do I disable this? 

     

    And is getCamera().Z the zoom in and out? 

    Link to comment
    Share on other sites

    Dreambot hooked the exactZoom value but I dunno where to find it. But you could get the value with reflection.

            int exactZoom = -1;
            try {
                Field f = getClient().getInstance().getApplet().getClass().getClassLoader().loadClass("client").getDeclaredField("st");
                if(f != null) {
                    f.setAccessible(true);
                    exactZoom = f.getInt(getClient().getInstance().getApplet()) * 1508238603;
                }
            } catch (Exception e) {
                log(e.getMessage());
            }
            log("" + exactZoom);

    But you have to update this after (every) osrs update and it's not allowed on sdn.

    Link to comment
    Share on other sites

    8 hours ago, Soldtodie said:
    
    getRandomManager().disableSolver(RandomEvent.ZOOM_SOLVER);

     

    Works perfectly, but... 

     

    I did is the onStart, but it still executed which makes sense since its an client trigger. Could you point me in the right direction, is there a function that executes before client randoms? 

    Link to comment
    Share on other sites

    10 hours ago, Soldtodie said:
    
    getRandomManager().disableSolver(RandomEvent.ZOOM_SOLVER);

     

    Works perfectly, but... 

     

    I did is the onStart, but it still executed which makes sense since its an client trigger. Could you point me in the right direction, is there a function that executes before client randoms? 

     

    Also when it's disabled, and I zoom out finding objects is not working, it seems really off than (as in offset) 

    Link to comment
    Share on other sites

    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.