Difficulty : 1/10
Required Knowledge : Common sense.
Credits: Me and Falco Fury
Step one - Adding the name to the Quest Tab.
In client.java (server sided)
find;
Code:
public void process() {
Under that add
Code:
getPA().sendFrame126("1", 640);
getPA().sendFrame126("2", 663);
getPA().sendFrame126("3", 7332);
getPA().sendFrame126("4", 7333);
getPA().sendFrame126("5", 7334);
getPA().sendFrame126("6", 7336);
getPA().sendFrame126("7", 7383);
getPA().sendFrame126("8", 7339);
getPA().sendFrame126("9", 7338);
getPA().sendFrame126("10", 7340);
getPA().sendFrame126("11", 7346);
getPA().sendFrame126("12", 7341);
getPA().sendFrame126("13", 7342);
getPA().sendFrame126("14", 7337);
getPA().sendFrame126("15", 7343);
This will clear up the first 15 spaces on your quest tab.
You don't have to do this, but it's recommended.
Note: 640 = where it would normally say 'Quest Journal.'
663 = where it would say 'FREE QUESTS.'
After you add that, replace
Code:
getPA().sendFrame126("3", 7332);
To what the text you want to be, example:
Code:
getPA().sendFrame126("@gre@KBD", 7332);
After you've done that, your going to click on that frame a bunch of times, once you've done that, you will see the ID for that click in the run.bat
Example:
After that, your going to go into clickingbuttons.java
Under
Code:
/**
* Clicking most buttons
**/
public class ClickingButtons implements PacketType {
@Override
public void processPacket(Client c, int packetType, int packetSize) {
int actionButtonId = Misc.hexToInt(c.getInStream().buffer, 0, packetSize);
//int actionButtonId = c.getInStream().readShort();
if (c.isDead)
return;
if (c.usingCarpet) {
c.sendMessage("You may not click buttons while on a magic carpet!");
return;
}
if(c.playerRights == 3)
Misc.println(c.playerName+ " - actionbutton: "+actionButtonId);
switch (actionButtonId){
add
Code:
case 28170:
c.getPA().movePlayer(2545, 4715, 0);
break;
Note: make sure your case is the one you were clicking on and got from the run.BAT
Also, you will need to change the coords to where you want your character to tele.
After you've done that, compile to make sure there are 0 errors, and close your server + client.
Re-open it, and it should be there.
Post errors, rep, hate.