Jump to content
Sign in to follow this  
EvolvedBlitz

Proper F Keys For People Who Need Them [PI Version]

Recommended Posts

F1 IS INV.
F2 IS THE EQUIPMENT
F3 IS PRAYERS
F4 IS MAGE BOOK
F5 IS COMBAT STYLE PAGE

You can change These in:

Client sided

File Location:

RSInterface.java Or Client.java Or rsapplet.java

Should Look Like This:

[code] public static int hotKey = 508;
public final void keyPressed(KeyEvent keyevent)
{
idleTime = 0;
int i = keyevent.getKeyCode();
int j = keyevent.getKeyChar();
//hotkeys here
if (hotKey == 508) {
if(i == KeyEvent.VK_ESCAPE){
client.setTab(3);
} else if(i == KeyEvent.VK_F5){
client.setTab(0);
} else if(i == KeyEvent.VK_F11){
client.setTab(1);
} else if(i == KeyEvent.VK_F12){
client.setTab(2);
} else if(i == KeyEvent.VK_F1){
client.setTab(3);
} else if(i == KeyEvent.VK_F2){
client.setTab(4);
} else if(i == KeyEvent.VK_F3){
client.setTab(5);
} else if(i == KeyEvent.VK_F4){
client.setTab(6);
} else if(i == KeyEvent.VK_F8){
client.setTab(7);
} else if(i == KeyEvent.VK_F9){
client.setTab(8);
} else if(i == KeyEvent.VK_F10){
client.setTab(9);
} else if(i == KeyEvent.VK_F11){
client.setTab(10);
} else if(i == KeyEvent.VK_F12){
client.setTab(11);
}
}[/code]

Share this post


Link to post
Share on other sites
Thank you! These are a very nice addition!

Share this post


Link to post
Share on other sites
anyone got the settab function ?

Share this post


Link to post
Share on other sites
I understand how to do this but, how come its not the same for my players? i can use them but they can't..

Share this post


Link to post
Share on other sites
[code]public static void setTab(int id) {
needDrawTabArea = true;
tabID = id;
tabAreaAltered = true;
}[/code]

Share this post


Link to post
Share on other sites
because it's client sided not server sided. They need the client you have.

Share this post


Link to post
Share on other sites
[code]switch (i) {
case KeyEvent.VK_ESCAPE:
client.setTab(3);
break;
case KeyEvent.VK_F:
client.setTab(0);
break;
}[/code]

Share this post


Link to post
Share on other sites
[quote name='tanknation']I understand how to do this but, how come its not the same for my players? i can use them but they can't..[/QUOTE]

They need the same client.

Share this post


Link to post
Share on other sites
Thanks alot for your contribution
not using

Share this post


Link to post
Share on other sites
Sign in to follow this  

×