This exists in different forms, but none of the current ways worked for me, so here's how I did it.
client.java declare
Code:
public static int zoom = 1;
change
Code:
setCameraPos(600 + i * 3, i, anInt1014, method42(plane, myPlayer.y, myPlayer.x) - 50, k, anInt1015);
to
Code:
setCameraPos(600 + i * zoom, i, anInt1014, method42(plane, myPlayer.y, myPlayer.x) - 50, k, anInt1015);
RSApplet.java declare
Code:
public boolean badZoomPosition() {
if((mouseX > 0 && mouseY > 340 && mouseX < 510 && mouseY < 500) ||
(mouseY > 210 && mouseY < 473 && mouseX > 514 && mouseX < 762)) {
return true;
}
return false;
}
public boolean tabOpen() {
if((client.tabInterfaceIDs[client.tabID] == 638) || (client.tabInterfaceIDs[client.tabID] == 147) || (client.tabInterfaceIDs[client.tabID] == 638) || (client.tabInterfaceIDs[client.tabID] == 18128)
|| (client.tabInterfaceIDs[client.tabID] == 5715) || (client.tabInterfaceIDs[client.tabID] == 5065) || (client.openInterfaceID == 5292)) {
return true;
}
return false;
}
RSApplet.java in the mouseWheelMoved method add this before the last bracket
Code:
if (notches == -1 && !tabOpen() && !badZoomPosition()) {
if (client.zoom > -1)
client.zoom--;
} else {
if (client.zoom < 15 && !tabOpen() && !badZoomPosition())
client.zoom++;
}