Well ive been trying to replace some interface text in PJA.
Here's The Code ( That I Ripped From Jinrake So Credits To Him )
Code:
package org.hyperion.rs2.content.pvp;
import org.hyperion.rs2.model.Player;
import org.hyperion.rs2.model.World;
public class PvPTab {
public static final int INTERFACE_ID[] = {193, 274};
public static final int FREE_QUEST_IDS[] = {14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
public static final int FREE_QUEST_TITLE = 13;
public static final int HEADER = 10;
public static void removeAll(Player p) {
for (int i = 0; i < FREE_QUEST_IDS.length; i++) {
p.getActionSender().sendString("", 274, FREE_QUEST_IDS[i]);
}
}
public static void sendReplaceQuests(Player p) {
p.getActionSender().sendString("Net Worth: ", 274, FREE_QUEST_IDS[0]);
p.getActionSender().sendString("PK Points: ", 274, FREE_QUEST_IDS[1]);
p.getActionSender().sendString("Replacing Text", 193, 16);
p.getActionSender().sendString("Uptime", 274, FREE_QUEST_IDS[9]);
/*p.getActionSender().sendString("Kills "+p.kills, 274, FREE_QUEST_IDS[2]);
p.getActionSender().sendString("Deaths: "+p.deaths, 274, FREE_QUEST_IDS[3]);
p.getActionSender().sendString("Current Kill Streak: "+p.killStreak, 274, FREE_QUEST_IDS[4]);
p.getActionSender().sendString("Max Kill Streak: "+p.maxKillStreak, 274, FREE_QUEST_IDS[5]);
p.getActionSender().sendString("Fun PK Points: "+p.funPkPoints, 274, FREE_QUEST_IDS[6]);
p.getActionSender().sendString("Planet Points: "+p.donatorPoints, 274, FREE_QUEST_IDS[7]);
p.getActionSender().sendString(p.unlimitedDoubleXp ? "Unlimited Double XP" : p.starterExperience >= 0 ? "Starter Boost: "+p.starterExperience : DoubleXP.doubleXp ? "Double XP: ON!" : "Double XP: OFF", 274, FREE_QUEST_IDS[8]);
//p.getActionSender().sendConfig(FREE_QUEST_IDS[4], QuestHandler.getQuest(83).isFinished(p) ? FREE_QUEST_IDS[4] : QuestHandler.getQuest(83).isStarted(p) ? 1 : 0);
p.getActionSender().sendString("Minutes: "+Uptime.getMinutes(), 274, FREE_QUEST_IDS[10]);
p.getActionSender().sendString("Hours: "+Uptime.getHours(), 274, FREE_QUEST_IDS[11]);
p.getActionSender().sendString("Days: "+Uptime.getDays(), 274, FREE_QUEST_IDS[12]);*/
//p.getActionSender().sendConfig(101, p.getQuestPoints());
}
public static void sendReplaceHeader(Player p) {
p.getActionSender().sendString("Players Online: "+World.getWorld().getPlayers().size(), 274, HEADER);
}
public static void sendReplaceTitle(Player p) {
p.getActionSender().sendString("EP Amount: ", 274, FREE_QUEST_TITLE);
}
public static void sendAll(Player p) {
removeAll(p);
sendReplaceQuests(p);
sendReplaceTitle(p);
sendReplaceHeader(p);
}
public static void sendPkPoints(Player pSource) {
pSource.getActionSender().sendString("PK Points: ", 274, FREE_QUEST_IDS[1]);
}
public static void sendEp(Player pSource) {
pSource.getActionSender().sendString("EP Amount: ", 274, FREE_QUEST_TITLE);
}
public static void sendNetWorth(Player p) {
p.getActionSender().sendString("Net Worth: "+" coins", 274, FREE_QUEST_IDS[0]);
}
public static void sendFunPkPoints(Player p) {
p.getActionSender().sendString("Fun PK Points: ", 274, FREE_QUEST_IDS[2]);
}
}
Also I tried replacing some different text in the Jinrake Source Which Should Be Replaces the text for quests but not for the ancient teleport
Heres That Code
Code:
public class PvPTab {
public static final int INTERFACE_ID[] = {193, 274};
public static final int FREE_QUEST_IDS[] = {14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31};
public static final int FREE_ANCIENT_IDS[] = {16, 17};
public static final int FREE_QUEST_TITLE = 13;
public static final int HEADER = 10;
public static void removeAll(Player p) {
for (int i = 0; i < FREE_QUEST_IDS.length; i++) {
p.getActionSender().sendString("", 274, FREE_QUEST_IDS[i]);
}
p.getActionSender().sendString("", 274, HEADER);
p.getActionSender().sendString("", 274, FREE_QUEST_TITLE);
}
public static void removeAll1(Player p) {
for (int i = 0; i < FREE_ANCIENT_IDS.length; i++) {
p.getActionSender().sendString("", 193, FREE_ANCIENT_IDS[i]);
}
}
public static void sendReplaceQuests(Player p) {
//p.getActionSender().sendString("Net Worth: "+Inventory.getRiskValue(p)+" coins", 274, FREE_QUEST_IDS[0]);
//p.getActionSender().sendString("PK Points: "+p.pkPoints, 274, FREE_QUEST_IDS[1]);
//p.getActionSender().sendString("Kills "+p.kills, 274, FREE_QUEST_IDS[2]);
//p.getActionSender().sendString("Deaths: "+p.deaths, 274, FREE_QUEST_IDS[3]);
//p.getActionSender().sendString("Current Kill Streak: "+p.killStreak, 274, FREE_QUEST_IDS[4]);
p.getActionSender().sendString("Replacing Text", 193, FREE_ANCIENT_IDS[0]);
p.getActionSender().sendString("Max Kill Streak: "+p.maxKillStreak, 274, FREE_QUEST_IDS[5]);
p.getActionSender().sendString("Fun PK Points: "+p.funPkPoints, 274, FREE_QUEST_IDS[6]);
p.getActionSender().sendString("Planet Points: "+p.donatorPoints, 274, FREE_QUEST_IDS[7]);
p.getActionSender().sendString(p.unlimitedDoubleXp ? "Unlimited Double XP" : p.starterExperience >= 0 ? "Starter Boost: "+p.starterExperience : DoubleXP.doubleXp ? "Double XP: ON!" : "Double XP: OFF", 274, FREE_QUEST_IDS[8]);
//p.getActionSender().sendConfig(FREE_QUEST_IDS[4], QuestHandler.getQuest(83).isFinished(p) ? FREE_QUEST_IDS[4] : QuestHandler.getQuest(83).isStarted(p) ? 1 : 0);
p.getActionSender().sendString("Uptime", 274, FREE_QUEST_IDS[9]);
p.getActionSender().sendString("Minutes: "+Uptime.getMinutes(), 274, FREE_QUEST_IDS[10]);
p.getActionSender().sendString("Hours: "+Uptime.getHours(), 274, FREE_QUEST_IDS[11]);
p.getActionSender().sendString("Days: "+Uptime.getDays(), 274, FREE_QUEST_IDS[12]);
p.getActionSender().sendConfig(101, p.getQuestPoints());
}
public static void sendReplaceHeader(Player p) {
p.getActionSender().sendString("Players Online: "+World.getWorld().getPlayers().size(), 274, HEADER);
}
public static void sendReplaceTitle(Player p) {
p.getActionSender().sendString("EP Amount: "+p.epAmount, 274, FREE_QUEST_TITLE);
}
public static void sendAll(Player p) {
removeAll(p);
removeAll1(p);
sendReplaceQuests(p);
sendReplaceTitle(p);
sendReplaceHeader(p);
}
public static void sendPkPoints(Player pSource) {
pSource.getActionSender().sendString("PK Points: "+pSource.pkPoints, 274, FREE_QUEST_IDS[1]);
}
public static void sendEp(Player pSource) {
pSource.getActionSender().sendString("EP Amount: "+pSource.epAmount, 274, FREE_QUEST_TITLE);
}
public static void sendNetWorth(Player p) {
p.getActionSender().sendString("Net Worth: "+Inventory.getRiskValue(p)+" coins", 274, FREE_QUEST_IDS[0]);
p.setWeight(Weight.getTotalWeight(p));
}
public static void sendFunPkPoints(Player p) {
p.getActionSender().sendString("Fun PK Points: "+p.funPkPoints, 274, FREE_QUEST_IDS[2]);
}
public static void sendStarter(Player p) {
p.getActionSender().sendString(p.starterExperience >= 0 ? "Starter Boost: "+p.starterExperience : "", 274, FREE_QUEST_IDS[3]);
}
public static void updateUptime(Player p) {
p.getActionSender().sendString("Minutes: "+Uptime.getMinutes(), 274, FREE_QUEST_IDS[10]);
p.getActionSender().sendString("Hours: "+Uptime.getHours(), 274, FREE_QUEST_IDS[11]);
p.getActionSender().sendString("Days: "+Uptime.getDays(), 274, FREE_QUEST_IDS[12]);
}
}
THIS HAS NO ERRORS IN ECLIPSE
So For The First One It Does Not Replace Anything at all or do anything (PJA)
The Second only replaces the quests not the ancient button text (Jinrake)
The Only Thing I Can Think of for the Jinrake one is that it is replacing the text on the tele button itself instead of the text of the bottom ( the text that pops up when u hover over the button)( << if so can someone tell me ow to figure out the hover text id and interface?)
For PJA i haz no idea
More Info : 549 cache ,
Thx In Advance For ANY help