Thread: OSBrutality right click function broken/bugged.

Results 1 to 2 of 2
  1. #1 OSBrutality right click function broken/bugged. 
    Registered Member
    Join Date
    Jan 2014
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    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.
    Reply With Quote  
     

  2. #2  
    Registered Member
    NeilG's Avatar
    Join Date
    Jul 2013
    Posts
    246
    Thanks given
    65
    Thanks received
    366
    Discord
    View profile
    Rep Power
    1240
    Wadup dawg.

    Discord Jesus#8539

    I should've just googled it. Only noticed the fix was posted here somewhere 3 or 4 years ago.
    Funtimes.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [667/7**] How to fix right click bug in PvP
    By Zach in forum Tutorials
    Replies: 5
    Last Post: 06-30-2014, 05:06 PM
  2. PI right click option bug only on players
    By syndrome-scape in forum Help
    Replies: 2
    Last Post: 07-07-2013, 06:18 PM
  3. Battlescape 317 right click bug
    By kaszasjani in forum Help
    Replies: 12
    Last Post: 09-13-2010, 07:14 PM
  4. Weird right click bug..
    By FuckThePolice in forum Help
    Replies: 4
    Last Post: 06-17-2010, 11:49 PM
  5. Right Clicking bug
    By NICKname in forum Help
    Replies: 2
    Last Post: 01-19-2010, 09:58 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •