xNonCombat 0 Share Posted April 21, 2020 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 More sharing options...
Soldtodie 76 Share Posted April 21, 2020 getRandomManager().disableSolver(RandomEvent.ZOOM_SOLVER); Link to comment Share on other sites More sharing options...
Soldtodie 76 Share Posted April 21, 2020 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 More sharing options...
xNonCombat 0 Author Share Posted April 22, 2020 Thanks for your help! Really couldn't find it. I will look into exact zoom! Link to comment Share on other sites More sharing options...
xNonCombat 0 Author Share Posted April 22, 2020 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 More sharing options...
xNonCombat 0 Author Share Posted April 22, 2020 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.