Rian
July 1st, 2010, 07:48
How To Make Quest Tab Commands on A 317 Server.
I DON'T GIVE ANYONE PERMISSION TO POST THIS TUTORIAL ON ANY OTHER WEBSITE.
Difficulty: 5/10
Knowledge: Basic Java, How to read
Files Editing: texthandler.java, clickingmost.java
Credits: 15% To Mod Medic because I Said So. 85% To Me For Everything In This Tutorial.
Client Being Used: Blurr's
First, open up your client and goto your quest tab and find the quest you would like to replace for a Command.
For this tutorial I will be using the quest "The Wolf's Cure", you can use what ever quest you like.
After you have your quest, you'd like to make the command, open up texthandler.java and press Ctrl+f and then type in the name of the quest you want to edit and press enter.
There should be three of the same name like this.
if(c.q11 == 0){
c.sendQuest("The Wolf's Cure", 7342);
}
if(c.q11 > 0){
c.sendQuest("@yel@The Wolf's Cure", 7342);
}
if(c.q11 == 15){
c.sendQuest("@gre@The Wolf's Cure", 7342);
}
Now go back to your client, and go back to the quest tab and go look at your quest again,this time seeing what color it is. My quest isGreenSo i will be using the third Snippet
if(c.q11 == 15){
c.sendQuest("@gre@The Wolf's Cure", 7342);
}
If your quest is Yellow then use this Snippet
if(c.q11 > 0){
c.sendQuest("@yel@The Wolf's Cure", 7342);
} If your quest is RedUse this Snippet
if(c.q11 > 0){
c.sendQuest("The Wolf's Cure", 7342);
}
You can now change your Snippet to anything you would like the command to be,I will be spawning a whip so I will name the Snippet Whip
if(c.q11 > 0){
c.sendQuest("@gre@Whip", 7342);
}
Now save your work, and compile.
After you have compiled and restarted your server, go back to your client and click your Button, so I will click "Whip" and then Look on your clients CMD, and find the button you clicked, if it doesn't show, then right click your button, if it still doesn't show up, go find another tutorial for that.
Once, you get your button/interface ID open clickingmost.java,and press Ctrl+f and paste your button/interface ID, in this case, my button/interface ID is 28174, so i will search for that.
Once, you find it, it should look like this
case 28174:
c.q"yourquestnumber"help();
break;Go ahead and delete the
c.q"yourquestnumber"help();We won't need it since we are using the button as a command and not a quest interface.
Now to add your command.
Before anything add this snippet so you won't get error's
c.So since I will be spawning a whip I will add this command
c.addItem(4151, 1);I will also add a Message to verify you spawned the whip.
c.sM("You Spawned a Whip.");
My final Snippet will look like this
case 28174:
c.addItem(4151, 1);
c.sM("You Spawned a Whip.");
break;
Save, Compile, Then RESTART YOUR SERVER:)
How To Make A Quest Tab Teleport.
First, open up your client and goto your quest tab and find the quest you would like to replace for a Command.
For this tutorial I will be using the quest "Vampire Slayer", you can use what ever quest you like.
After you have your quest, you'd like to make the command, open up texthandler.java and press Ctrl+f and then type in the name of the quest you want to edit and press enter.
There should be three of the same name like this.
if(c.q4 == 0){
c.sendQuest("Vampire Slayer", 7336);
}
if(c.q4 > 0){
c.sendQuest("@yel@Vampire Slayer", 7336);
}
if(c.q4 == 15){
c.sendQuest("@gre@Vampire Slayer", 7336);
}
Now go back to your client, and go back to the quest tab and go look at your quest again,this time seeing what color it is. My quest isGreenSo i will be using the third Snippet
if(c.q4 == 15){
c.sendQuest("@gre@Vampire Slayer", 7333);
}
If your quest is Yellow then use this Snippet
if(c.q4 > 0){
c.sendQuest("@yel@Vampire Slayer", 7336);
} If your quest is RedUse this Snippet
if(c.q4 > 0){
c.sendQuest("Vampire Slayer", 7336);
}
You can now change your Snippet to anything you would like the command to be,I will be teleporting to Mith Drags so I will name the Snippet Mith Drags Teleport
if(c.q11 > 0){
c.sendQuest("@ora@Mith Drags Teleport", 7342);
}
Now save your work, and compile.
After you have compiled and restarted your server, go back to your client and click your Button, so I will click "Mith Drags Teleport" and then Look on your clients CMD, and find the button you clicked, if it doesn't show, then right click your button, if it still doesn't show up, go find another tutorial for that.
Once, you get your button/interface ID open clickingmost.java,and press Ctrl+f and paste your button/interface ID, in this case, my button/interface ID is 28168, so i will search for that.
Once, you find it, it should look like this
case 28168:c.q"yourquestnumber"help();
break;Go ahead and delete the
c.q"yourquestnumber"help();We won't need it since we are using the button as a command and not a quest interface.
Now to add your command.
Before anything add this snippet so you won't get error's
c.So since I will be teleporting I will add this command
c.toX = 2731;
c.toY = 9767;
I will also add a Message to verify you teleported.
c.sM("You have been teleported to Mith Drags.");
My final Snippet will look like this
case 28168:
c.sM("You have been teleported to Mith Drags.");
c.toX = 2731;
c.toY = 9767;
break;
Save, Compile, Then RESTART YOUR SERVER:)
THANKS FOR READING!
Don't believe I wrote this, look "Rian" up on Mopar :):cool:
I DON'T GIVE ANYONE PERMISSION TO POST THIS TUTORIAL ON ANY OTHER WEBSITE.
Difficulty: 5/10
Knowledge: Basic Java, How to read
Files Editing: texthandler.java, clickingmost.java
Credits: 15% To Mod Medic because I Said So. 85% To Me For Everything In This Tutorial.
Client Being Used: Blurr's
First, open up your client and goto your quest tab and find the quest you would like to replace for a Command.
For this tutorial I will be using the quest "The Wolf's Cure", you can use what ever quest you like.
After you have your quest, you'd like to make the command, open up texthandler.java and press Ctrl+f and then type in the name of the quest you want to edit and press enter.
There should be three of the same name like this.
if(c.q11 == 0){
c.sendQuest("The Wolf's Cure", 7342);
}
if(c.q11 > 0){
c.sendQuest("@yel@The Wolf's Cure", 7342);
}
if(c.q11 == 15){
c.sendQuest("@gre@The Wolf's Cure", 7342);
}
Now go back to your client, and go back to the quest tab and go look at your quest again,this time seeing what color it is. My quest isGreenSo i will be using the third Snippet
if(c.q11 == 15){
c.sendQuest("@gre@The Wolf's Cure", 7342);
}
If your quest is Yellow then use this Snippet
if(c.q11 > 0){
c.sendQuest("@yel@The Wolf's Cure", 7342);
} If your quest is RedUse this Snippet
if(c.q11 > 0){
c.sendQuest("The Wolf's Cure", 7342);
}
You can now change your Snippet to anything you would like the command to be,I will be spawning a whip so I will name the Snippet Whip
if(c.q11 > 0){
c.sendQuest("@gre@Whip", 7342);
}
Now save your work, and compile.
After you have compiled and restarted your server, go back to your client and click your Button, so I will click "Whip" and then Look on your clients CMD, and find the button you clicked, if it doesn't show, then right click your button, if it still doesn't show up, go find another tutorial for that.
Once, you get your button/interface ID open clickingmost.java,and press Ctrl+f and paste your button/interface ID, in this case, my button/interface ID is 28174, so i will search for that.
Once, you find it, it should look like this
case 28174:
c.q"yourquestnumber"help();
break;Go ahead and delete the
c.q"yourquestnumber"help();We won't need it since we are using the button as a command and not a quest interface.
Now to add your command.
Before anything add this snippet so you won't get error's
c.So since I will be spawning a whip I will add this command
c.addItem(4151, 1);I will also add a Message to verify you spawned the whip.
c.sM("You Spawned a Whip.");
My final Snippet will look like this
case 28174:
c.addItem(4151, 1);
c.sM("You Spawned a Whip.");
break;
Save, Compile, Then RESTART YOUR SERVER:)
How To Make A Quest Tab Teleport.
First, open up your client and goto your quest tab and find the quest you would like to replace for a Command.
For this tutorial I will be using the quest "Vampire Slayer", you can use what ever quest you like.
After you have your quest, you'd like to make the command, open up texthandler.java and press Ctrl+f and then type in the name of the quest you want to edit and press enter.
There should be three of the same name like this.
if(c.q4 == 0){
c.sendQuest("Vampire Slayer", 7336);
}
if(c.q4 > 0){
c.sendQuest("@yel@Vampire Slayer", 7336);
}
if(c.q4 == 15){
c.sendQuest("@gre@Vampire Slayer", 7336);
}
Now go back to your client, and go back to the quest tab and go look at your quest again,this time seeing what color it is. My quest isGreenSo i will be using the third Snippet
if(c.q4 == 15){
c.sendQuest("@gre@Vampire Slayer", 7333);
}
If your quest is Yellow then use this Snippet
if(c.q4 > 0){
c.sendQuest("@yel@Vampire Slayer", 7336);
} If your quest is RedUse this Snippet
if(c.q4 > 0){
c.sendQuest("Vampire Slayer", 7336);
}
You can now change your Snippet to anything you would like the command to be,I will be teleporting to Mith Drags so I will name the Snippet Mith Drags Teleport
if(c.q11 > 0){
c.sendQuest("@ora@Mith Drags Teleport", 7342);
}
Now save your work, and compile.
After you have compiled and restarted your server, go back to your client and click your Button, so I will click "Mith Drags Teleport" and then Look on your clients CMD, and find the button you clicked, if it doesn't show, then right click your button, if it still doesn't show up, go find another tutorial for that.
Once, you get your button/interface ID open clickingmost.java,and press Ctrl+f and paste your button/interface ID, in this case, my button/interface ID is 28168, so i will search for that.
Once, you find it, it should look like this
case 28168:c.q"yourquestnumber"help();
break;Go ahead and delete the
c.q"yourquestnumber"help();We won't need it since we are using the button as a command and not a quest interface.
Now to add your command.
Before anything add this snippet so you won't get error's
c.So since I will be teleporting I will add this command
c.toX = 2731;
c.toY = 9767;
I will also add a Message to verify you teleported.
c.sM("You have been teleported to Mith Drags.");
My final Snippet will look like this
case 28168:
c.sM("You have been teleported to Mith Drags.");
c.toX = 2731;
c.toY = 9767;
break;
Save, Compile, Then RESTART YOUR SERVER:)
THANKS FOR READING!
Don't believe I wrote this, look "Rian" up on Mopar :):cool: