Thread: Basic scroll wheel zooming

Results 1 to 7 of 7
  1. #1 Basic scroll wheel zooming 
    Registered Member
    Join Date
    Oct 2009
    Posts
    407
    Thanks given
    123
    Thanks received
    64
    Rep Power
    4
    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++;
    				
    		}
    Attached image
    Reply With Quote  
     

  2. #2  
    Registered Member Sheddy's Avatar
    Join Date
    Jul 2009
    Age
    31
    Posts
    1,053
    Thanks given
    56
    Thanks received
    89
    Rep Power
    69
    Is notches just declared and that's it? Because I don't have nothces so I just removed it and my zoom doesn't work. It zooms in but then gets stuck. It won't zoom out.
    Reply With Quote  
     

  3. #3  
    plz dont take my wizard mind bombs Women's Avatar
    Join Date
    Mar 2010
    Posts
    1,881
    Thanks given
    724
    Thanks received
    1,162
    Rep Power
    4763
    Quote Originally Posted by Sheddy View Post
    Is notches just declared and that's it? Because I don't have nothces so I just removed it and my zoom doesn't work. It zooms in but then gets stuck. It won't zoom out.
    might be called rotation in your client
    Reply With Quote  
     

  4. #4  
    Registered Member Sheddy's Avatar
    Join Date
    Jul 2009
    Age
    31
    Posts
    1,053
    Thanks given
    56
    Thanks received
    89
    Rep Power
    69
    Quote Originally Posted by Women View Post
    might be called rotation in your client
    You da Bomb.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Aug 2014
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    can you help please? In my 317 it is saying client on the tabInterfaceIDs can not be resolved to a variable. Do you have a suggestion of what to change these to? thank you for your good work
    Reply With Quote  
     

  6. #6  
    Registered Member Grandpa's Avatar
    Join Date
    Dec 2015
    Posts
    106
    Thanks given
    13
    Thanks received
    3
    Rep Power
    13
    Quote Originally Posted by Kimmi View Post
    can you help please? In my 317 it is saying client on the tabInterfaceIDs can not be resolved to a variable. Do you have a suggestion of what to change these to? thank you for your good work
    Might be to late to answer this, but i had the same problem. Posting this if somebody had the same question.

    In Client.java search for tabInterfaceIDs.
    Change it to
    Code:
    static int[]
    I had the same problem with anInt1211 & anInt1089, make sure they are visible.
    For me it worked with static int ****.
    I'm not good at this myself, but this worked for me. Might not be the best way of doing it.
    Reply With Quote  
     

  7. #7  
    Registered Member IcEbLiTzMeHh's Avatar
    Join Date
    Jul 2010
    Posts
    241
    Thanks given
    3
    Thanks received
    16
    Rep Power
    4
    worked a treat, thank you

    Quote Originally Posted by onemorenight View Post


    plz i need the cape name who the guy is wearing
    Quote Originally Posted by Liam Baby View Post


    Never go full retard
    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. remove ctrl + scroll to zoom
    By Mr Dream in forum Help
    Replies: 16
    Last Post: 05-27-2017, 01:23 AM
  2. How to fix scroll wheel zoom Perception
    By OmniPS in forum Help
    Replies: 2
    Last Post: 04-08-2017, 09:34 PM
  3. Mouse Wheel Zooming In & Out
    By Provider in forum Help
    Replies: 1
    Last Post: 04-14-2016, 03:51 AM
  4. Client zooming via scroll wheel for 718
    By Sammi in forum Buying
    Replies: 4
    Last Post: 05-29-2015, 03:43 AM
  5. [PI]Very basic Clue Scroll
    By Xyger in forum Snippets
    Replies: 11
    Last Post: 05-20-2013, 11:07 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
  •