Purpose: To edit the quest tab to display information about player stats or anything.
Difficulty: 0
Assumed Knowledge: Copy and paste.
Classes Modified: Client.java
Tested On(if it applies): Any pi source, unsure of others.
Seen a few posts about this, unsure if it has been posted before but thought I'd post my first tutorial.
Open client.java (server-side). Search for:
Right under the void add:
This will clear the first 15 rows. Which looks like this:
You can then edit the text to whatever you want.
Example:
You can also display characters stats. eg pest control points, players online etc, which can be useful.
Here's an example:
Credits: 100% Rapidshare from RuneServer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
All below this must be added into the clickingbuttons.java
Credits: All done by me. A great waste of an hour.
Difficulty: 0
Assumed Knowledge: Copy and paste.
Classes Modified: Client.java
Tested On(if it applies): Any pi source, unsure of others.
Seen a few posts about this, unsure if it has been posted before but thought I'd post my first tutorial.
Open client.java (server-side). Search for:
Code:
public void process() {
Right under the void 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 the first 15 rows. Which looks like this:
You can then edit the text to whatever you want.
Example:
Code:
getPA().sendFrame126("Welcome to PI", 640);
You can also display characters stats. eg pest control points, players online etc, which can be useful.
Here's an example:
Code:
getPA().sendFrame126("Players Online: "+PlayerHandler.getPlayerCount()+ " ", 640); //quest journal title
getPA().sendFrame126("Player Statistics", 663); //quest title
getPA().sendFrame126("@gre@Exp Lock Status", 7332);
getPA().sendFrame126(" @yel@"+expLock+" ", 7333); //quest title
getPA().sendFrame126("@gre@PC Points", 7334); //quest title
getPA().sendFrame126(" @yel@"+pcPoints+" ", 7336);
getPA().sendFrame126("@gre@Mage Points", 7383); //quest title
getPA().sendFrame126(" @yel@"+magePoints+" ", 7339);
getPA().sendFrame126(" @yel@"+Server.npcHandler.getNpcListName(slayerTask)+" ", 7340); //quest title
getPA().sendFrame126("@gre@Current Slayer Task", 7338); //quest title
getPA().sendFrame126("@gre@Amount Remaining", 7346); //quest title
getPA().sendFrame126(" @yel@"+taskAmount+" ", 7341); //quest title
getPA().sendFrame126("@gre@Current Player Kills:@yel@ "+KC+"", 7342);
getPA().sendFrame126("@gre@Current Player Deaths:@yel@ "+DC+"", 7337);
getPA().sendFrame126("@yelProject Insanity@", 7343);
Credits: 100% Rapidshare from RuneServer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Code:
getPA().sendFrame126("@gre@Players Online: @blu@"+PlayerHandler.getPlayerCount()+ " ", 640); //quest journal title
getPA().sendFrame126("Player Statistics", 663); //quest title
getPA().sendFrame126("@gre@Pk Points: @blu@ "+pkPoints+" ", 7332);
getPA().sendFrame126("@gre@Noted Manta ray", 7333);
getPA().sendFrame126("@gre@Inventory of Rocktail", 7334);
getPA().sendFrame126("@gre@Arrows and Bolts", 7336);
getPA().sendFrame126("@gre@Potions", 7383);
getPA().sendFrame126("@gre@Veng Runes" , 7339);
getPA().sendFrame126("@gre@Dharoks", 7340);
getPA().sendFrame126("@gre@Barrage Runes", 7338);
getPA().sendFrame126("@gre@Guthans", 7346);
getPA().sendFrame126("@gre@Torags", 7341);
getPA().sendFrame126("@gre@Veracs", 7342);
getPA().sendFrame126("@gre@Karils", 7337);
getPA().sendFrame126("@gre@Ahrims", 7343);
getPA().sendFrame126("@gre@Range Gear", 7335);
getPA().sendFrame126("@gre@Zerk Gear", 7344);
getPA().sendFrame126("@gre@Ancient Staff", 7345);
getPA().sendFrame126("@gre@Abyssal Whip", 7347);
getPA().sendFrame126("@gre@TeleTabs", 7348);
getPA().sendFrame126("Miscellaneous", 682);
getPA().sendFrame126("@gre@Spec", 12772);
getPA().sendFrame126("@gre@Bank", 673);
getPA().sendFrame126("@yel@Lvl 5 Edgeville", 7352);
getPA().sendFrame126("@red@Mage Arena", 17510);
getPA().sendFrame126("@red@East Dragons", 7353);
getPA().sendFrame126("@red@44 portals", 12129);
getPA().sendFrame126("@yel@Low-Level Varrock", 8438);
getPA().sendFrame126("@red@Demonic Ruins", 12852);
getPA().sendFrame126("@red@Red Dragon Isle", 15841);
getPA().sendFrame126("@gre@Empty", 7354);
getPA().sendFrame126("@gre@Funpk Spot 1", 7355);
getPA().sendFrame126("@gre@Funpk Spot 2", 7356);
getPA().sendFrame126("@gre@Funpk Spot 3", 8679);
getPA().sendFrame126("@gre@Funpk Spot 4", 7459);
getPA().sendFrame126("@gre@Funpk Spot 5", 16149);
getPA().sendFrame126("@red@Donor Only:@cya@Karamja", 6987);
getPA().sendFrame126("@gre@Mining", 7357);
getPA().sendFrame126("@gre@Fletching", 12836);
getPA().sendFrame126("@gre@WC Axe", 7358);
getPA().sendFrame126("@gre@Fishing Gear", 7359);
getPA().sendFrame126("@gre@Smithing", 14169);
getPA().sendFrame126("@gre@Runecraft", 10115);
All below this must be added into the clickingbuttons.java
Code:
case 28165:
c.getItems().addItem(392, 500);
break;
case 28166:
if (c.inWild())
return;
c.getItems().addItem(15272, 28);
break;
case 28168:
if (c.inWild())
return;
c.getItems().addItem(892, 500);
c.getItems().addItem(9244, 500);
break;
case 28215:
c.getItems().addItem(3027, 250);
c.getItems().addItem(6688, 250);
c.getItems().addItem(158, 250);
c.getItems().addItem(164, 250);
c.getItems().addItem(146, 250);
c.getItems().addItem(140, 250);
c.getItems().addItem(170, 250);
break;
case 28171:
if (c.inWild())
return;
c.getItems().addItem(557, 1000);
c.getItems().addItem(560, 200);
c.getItems().addItem(9075, 400);
break;
case 28170:
if (c.inWild())
return;
c.getItems().addItem(560, 400);
c.getItems().addItem(565, 200);
c.getItems().addItem(555, 600);
break;
case 28172:
if (c.inWild())
return;
c.getItems().addItem(4716, 1);
c.getItems().addItem(4718, 1);
c.getItems().addItem(4720, 1);
c.getItems().addItem(4722, 1);
break;
case 28178:
if (c.inWild())
return;
c.getItems().addItem(4724, 1);
c.getItems().addItem(4726, 1);
c.getItems().addItem(4728, 1);
c.getItems().addItem(4730, 1);
break;
case 28173:
if (c.inWild())
return;
c.getItems().addItem(4745, 1);
c.getItems().addItem(4747, 1);
c.getItems().addItem(4749, 1);
c.getItems().addItem(4751, 1);
break;
case 28174:
if (c.inWild())
return;
c.getItems().addItem(4753, 1);
c.getItems().addItem(4755, 1);
c.getItems().addItem(4757, 1);
c.getItems().addItem(4759, 1);
break;
case 28169:
if (c.inWild())
return;
c.getItems().addItem(4732, 1);
c.getItems().addItem(4734, 1);
c.getItems().addItem(4736, 1);
c.getItems().addItem(4738, 1);
c.getItems().addItem(4740, 500);
break;
case 28175:
if (c.inWild())
return;
c.getItems().addItem(4708, 1);
c.getItems().addItem(4710, 1);
c.getItems().addItem(4712, 1);
c.getItems().addItem(4714, 1);
c.getItems().addItem(7462, 1);
c.getItems().addItem(6920, 1);
c.getItems().addItem(2414, 1);
break;
case 28167:
if (c.inWild())
return;
c.getItems().addItem(3749, 1);
c.getItems().addItem(2497, 1);
c.getItems().addItem(2503, 1);
c.getItems().addItem(7462, 1);
c.getItems().addItem(11235, 1);
c.getItems().addItem(9185, 1);
c.getItems().addItem(6585, 1);
break;
case 28176:
if (c.inWild())
return;
c.getItems().addItem(6585, 1);
c.getItems().addItem(3751, 1);
c.getItems().addItem(10551, 1);
c.getItems().addItem(1079, 1);
c.getItems().addItem(7462, 1);
c.getItems().addItem(8850, 1);
c.getItems().addItem(4151, 1);
c.getItems().addItem(5698, 1);
c.getItems().addItem(6568, 1);
c.getItems().addItem(11732, 1);
break;
case 28177:
if (c.inWild())
return;
c.getItems().addItem(4675, 1);
break;
case 28179:
if (c.inWild())
return;
c.getItems().addItem(4151, 1);
break;
case 49228:
if (c.inWild())
return;
c.specAmount = 10.0;
break;
case 2161:
if (c.inWild())
return;
c.getPA().openUpBank();
break;
case 28184:
if (c.inWild())
return;
c.getPA().movePlayer(3087, 3557, 0);
break;
case 68102:
if (c.inWild())
return;
c.getPA().movePlayer(3105, 3934, 0);
break;
case 28180:
if (c.inWild())
return;
c.getItems().addItem(8007, 25);
c.getItems().addItem(8008, 25);
c.getItems().addItem(8009, 25);
c.getItems().addItem(8010, 25);
c.getItems().addItem(8011, 25);
break;
case 47097:
if (c.inWild())
return;
c.getPA().movePlayer(2980, 3866, 0);
break;
case 28185:
if (c.inWild())
return;
c.getPA().movePlayer(3357, 3721, 0);
break;
case 32246:
if (c.inWild())
return;
c.getPA().movePlayer(3244, 3513, 0);
break;
case 50052:
if (c.inWild())
return;
c.getPA().movePlayer(3288, 3886, 0);
break;
case 61225:
if (c.inWild())
return;
c.getPA().movePlayer(3198, 3822, 0);
break;
case 28186:
if (c.inWild())
return;
c.getPA().removeAllItems();
break;
case 28187:
if (c.inWild())
return;
c.getPA().movePlayer(2272, 4697, 0);
break;
case 28188:
if (c.inWild())
return;
c.getPA().movePlayer(2287, 4681, 0);
break;
case 33231:
if (c.inWild())
return;
c.getPA().movePlayer(2287, 4711, 0);
break;
case 29035:
if (c.inWild())
return;
c.getPA().movePlayer(2256, 4710, 0);
break;
case 63021:
if (c.inWild())
return;
c.getPA().movePlayer(2256, 4680, 0);
break;
case 27075:
if (c.memberStatus == 1) {
c.getPA().spellTeleport(2916, 3168, 0);
} else {
c.sendMessage("@red@Your not a donor.");
}
break;
case 28189:
if (c.inWild())
return;
c.getItems().addItem(1265, 1);
c.getPA().movePlayer(3042, 9779, 0);
break;
case 50036:
c.getItems().addItem(1512, 5000);
c.getItems().addItem(946, 1);
break;
case 28190:
c.getItems().addItem(1351, 1);
break;
case 28191:
c.getItems().addItem(303, 1);
c.getItems().addItem(301, 1);
c.getItems().addItem(311, 1);
break;
case 55089:
if (c.inWild())
return;
c.getPA().movePlayer(3079, 9502, 0);
c.getItems().addItem(2347, 1);
break;
case 39131:
if (c.inWild())
return;
c.getPA().movePlayer(3486, 9497, 0);
break;
Credits: All done by me. A great waste of an hour.