Difficulty: Easy
Description: A step-to-step guide about how to add skill menus when you click the stat. ( Need to know how to copy/paste, Ctrl F, and how to change the step for each skill )
Files To Be Edited: client.java
Server base: Any base that doesn't already have some sort of menu system set up.
Instructions
1. Adding the void:
Go into you client.java and find:
Code:
public void ResetWalkTo()
It will show you something like this:
Code:
public void ResetWalkTo() {
ActionType = -1;
destinationX = -1;
destinationY = -1;
destinationID = -1;
destinationRange = 1;
WalkingTo = false;
}
Above it, add this void:
*Of course you can change whatever you want.. this is my attack menu..*
Code:
public void attackmenu(){
sendFrame126("@gre@Attack Menu", 8144); //menu title
clearQuestInterface();
sendFrame126("@red@Level 1 - Bronze", 8145);
sendFrame126("@red@Level 1 - Iron", 8146);
sendFrame126("@red@Level 5 - Steel", 8147);
sendFrame126("@red@Level 10 - Black", 8148);
sendFrame126("@red@Level 20 - Mith", 8149);
sendFrame126("@red@Level 30 - Addy", 8150);
sendFrame126("@red@Level 40 - Rune", 8151);
sendFrame126("@red@Level 60 - Dragon", 8152);
sendFrame126("@red@Level 70 - Whip", 8153);
sendFrame126("@red@Level 70- Barrows", 8154);
sendQuestSomething(8143);
showInterface(8134);
}
Step 2: Adding the case
Now find:
Under it add this case:
case 33206:
attackmenu();
break;
^ (This is what tells your computer that when you click attack (case 33206) it opens the attack menu (void attackmenu())
Step 3: Adding the other skill menus.
It would be a complete waste of time to type out each skill. So I will remind you what to do.
Voids
Repeat step 1 but change the coding in the void to match the skill. (The example has the places of interest in red)
I've done mining for you as an example:
Code:
public void miningmenu(){
sendFrame126("@gre@Mining Menu", 8144); //menu title
clearQuestInterface();
sendFrame126("@red@Level 1 - Tin", 8145);
sendFrame126("@red@Level 1 - Copper", 8146);
sendFrame126("@red@Level 15 - Iron", 8147);
sendFrame126("@red@Level 40 - Coal", 8148);
sendFrame126("@red@Level 60 - Mith", 8149);
sendFrame126("@red@Level 70 - Addy", 8150);
sendFrame126("@red@Level 85 - Rune", 8151);
sendQuestSomething(8143);
showInterface(8134);
}
Classes
Repeat step two except changing the case # variables and the void:
Code:
Attack: 33206
Strength: 33209
Defense: 33212
Range: 33215
Prayer: 33218
Magic: 33221
RC: 33224
HP: 33207
Agility: 33210
Herblore: 33213
Theiving: 33216
Crafting: 33219
Fletching: 33222
Slayer: 47130
Mining: 33208
Smithing: 33211
Fishing: 33214
Cooking: 33217
Firemaking: 33220
Woodcutting: 33223
Farming: 54104
Again, I've done mining for you with the places of interest in red.
case 33208:
miningmenu();
break;
Thankyou and enjoy,
Jare