[Tut] [317] Skill menus when you click a skill

Results 1 to 5 of 5
  1. #1
    Alpha Member Jare is offline
    MemberRank
    Mar 2007 Join Date
    AB, CanadaLocation
    1,711Posts

    [Tut] [317] Skill menus when you click a skill

    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:

    case 2429:
    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


  2. #2
    Novice cowscape is offline
    MemberRank
    Jun 2007 Join Date
    1Posts

    Re: [Tut] Skill menus when you click a skill

    nice helped me a lot. you can check my server out runescope.no-ip.org

  3. #3
    Alpha Member Jare is offline
    MemberRank
    Mar 2007 Join Date
    AB, CanadaLocation
    1,711Posts

    Re: [Tut] Skill menus when you click a skill

    Not a good idea to write your server IP, could be taken as a advertisement..

  4. #4
    There's no RL just AFK -fedexer- is offline
    MemberRank
    May 2006 Join Date
    ScotlandLocation
    1,632Posts

    Re: [Tut] Skill menus when you click a skill

    Its ok i suppose, suprising still some people dont have this in their servers >.<

  5. #5
    Alpha Member Jare is offline
    MemberRank
    Mar 2007 Join Date
    AB, CanadaLocation
    1,711Posts

    Re: [Tut] Skill menus when you click a skill

    Quote Originally Posted by -fedexer- View Post
    Its ok i suppose, suprising still some people dont have this in their servers >.<

    I agree, it's very simple and not super wonderful. But to me this is a helpful tutorial, as it helps people understand void/case relations for newbie java coders. And I think that there is no point of having tutorials if there isn't some kind of learning involved.



Advertisement