Hello All,
I'm stuck on what to do with this issue, I've read multiple threads and posts about this issue saying that you need to reinstall java etc. I've done that, I've taken a look through some of the files in regards to the clicking function but i still cant figure out why i don't have a right click function in the client. It just registers as a left click and pretty much makes 90% of the game unusable (cant buy items from shop, cant select certain quantities from bank, cant trade or follow other player, cant pick up certain items in a stack on the ground and the list goes on.
My java version is jdk-13.0.1, i had my version on jdk1.8.0_231 but i kept receiving a JNI error when trying to run the server and client so i changed the version and now obviously have access to the game.
Thanks for the help in advance.
UPDATE: So the error was fixed, 100% thanks and credits go to NeilG. The code was outdated and needed to updated, to fix the issue, search the code in "RSApplet.java".
OUTDATED CODE!!! (Change this)
Code:
if(mouseevent.getButton() == 2) {
mouseWheelDown = true;
mouseWheelX = i;
mouseWheelY = j;
return;
}
UPDATED CODE!!! (to this)
Code:
if(SwingUtilities.isMiddleMouseButton(mouseevent)) {
mouseWheelDown = true;
mouseWheelX = i;
mouseWheelY = j;
return;
}
// if (mouseevent.isMetaDown()) {
if(SwingUtilities.isRightMouseButton(mouseevent)) {
clickType = RIGHT;
clickMode1 = 2;
clickMode2 = 2;
} else if (SwingUtilities.isLeftMouseButton(mouseevent)) {
clickType = LEFT;
clickMode1 = 1;
clickMode2 = 1;
}
}
Hope this helps any others.