Thread: Adding Menu's the Right way!

Results 1 to 4 of 4
  1. #1 Adding Menu's the Right way! 
    Registered Member Amirtje12's Avatar
    Join Date
    Apr 2007
    Posts
    329
    Thanks given
    22
    Thanks received
    6
    Rep Power
    2
    Objective:How to make a menu and make a command to open it
    Server Base:Any
    Difficulty:1/10
    Assumed Knowledge:Editing and adding simple things.
    Files Modified:Client.java

    Ok, I will Show u how to add menu's

    Ok, I will now tell you where to add these things. Search public void in client.java and find out where most of them are. Than add it after a method AFTER the last bracket ( } )
    Begining of Tut:
    Ok, open up client.java. Next you need to add a method for the menu. Like this:


    Code:
    public void menuname() {
    sendQuest("Title",8144);
    sendQuest("@blu@",8147);
    sendQuest("@yel@",8148);
    sendQuest("@red@",8149);
    sendQuest("@cya@",8150);
    sendQuest("@gre@",8151);
    showInterface(8134);
    flushOutStream();
    }
    Thats what a basic menu would look like

    Now I will tell you what this means so you can make one from the top of your head.



    Code:
    public void menuname() {
    That is the methods name. You would put your menu name (NOTE:That is not the title of the menu it is just the name) that you would want to use.



    Code:
    sendQuest("Title",8144);
    As you can see this is the title. The first line of a menu is the title.



    Code:
    sendQuest("@yel@",8147);
    This is what you want the menu to say. Like if you wanted it to say "hi" you would put hi between the " "

    It should come out like this:


    Code:
    sendQuest("@yel@hi",8147);
    Notice that there is a "@yel@"  That is saying that the color of the text should be yellow.  You could use @blu@, @red@, @gre@, @cya@, and @yel@ those are your basic colors.  There might be more, but I don't feel like finding out if there are.
    Notice that the numbers in after the comma (,) there are numbers. Those numbers are were you want to put your text (the line.)

    Code:
    public void menuname() {
    sendQuest("Title",8144);
    sendQuest("@yel@",8147);
    sendQuest("@gre@",8148);
    sendQuest("@cya@",8149);
    sendQuest("@red@",8150);
    sendQuest("@blu@",8151);
    showInterface(8134);
    flushOutStream();
    }
    If you want to add more just copy the
    Code:
    sendQuest("@blu@",8151);and change the number one (1) up. Like if it was 8151 the
    next one would be 8152. Make sure you copy it than paste it directly under the one before it.

    The command:
    I am not supposed to give you command, but I will teach you how. Which is very simple.

    Search "imgay" or "master" and add this command after it of after the your first command.
    Copy the begining of any command up to the first bracket, { , than just type the name of your menu and add this after it (NO SPACES):


    Code:
    ();
    So it would look like:


    Code:
    menuname();
    than add an ending bracket }

    Save then compile and run
    No Leech Or Will Remove & Comment if u used ( or if u got any errors i might help..)!!(H)
     

  2. #2  
    Registered Member
    Join Date
    Jan 2008
    Posts
    35
    Thanks given
    0
    Thanks received
    0
    Rep Power
    2
    Good Job, Will help out for some I guess
    ~I didn't use :O
    Well, hello there.
     

  3. #3  
    Registered Member pHametic's Avatar
    Join Date
    Nov 2006
    Posts
    637
    Thanks given
    3
    Thanks received
    1
    Rep Power
    11
    lol there is no right way of adding menus just add it like anything else

    just change your title to how to add menus...
     

  4. #4  
    Registered Member Amirtje12's Avatar
    Join Date
    Apr 2007
    Posts
    329
    Thanks given
    22
    Thanks received
    6
    Rep Power
    2
    i dont carE.. if it helps im happy
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •