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):
So it would look like:
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)