Code:
public static void prayerTab(TextDrawingArea[] tda) {
RSInterface tab = addTabInterface(5608);
RSInterface currentPray = interfaceCache[687];
addSprite(5651, 0, "Prayer/PRAYER");
currentPray.textColor = 0xFF981F;
currentPray.textShadow = true;
currentPray.message = "%1/%2";
int[] ID1 = { 18016, 18017, 18018, 18019, 18020, 18021, 18022, 18023,
18024, 18025, 18026, 18027, 18028, 18029, 18030, 18031, 18032,
18033, 18034, 18035, 18036, 18037, 18038, 18039, 18040, 18041 };
int[] X = { 8, 44, 80, 114, 150, 8, 44, 80, 116, 152, 8, 42, 78, 116,
152, 8, 44, 80, 116, 150, 6, 44, 80, 116, 150, 6 };
int[] Y = { 6, 6, 6, 4, 4, 42, 42, 42, 42, 42, 79, 76, 76, 78, 78, 114,
114, 114, 114, 112, 148, 150, 150, 150, 148, 184 };
int[] hoverIDs = { 18050, 18052, 18054, 18056, 18058, 18060, 18062,
18064, 18066, 18068, 18070, 18072, 18074, 18076, 18078, 18080,
18082, 18084, 18086, 18088, 18090, 18092, 18094, 18096, 18098,
18100 };
int[] hoverX = { 12, 8, 20, 12, 24, 2, 2, 6, 6, 50, 6, 6, 10, 6, 6, 5,
5, 5, 5, 5, 18, 28, 28, 50, 1, 1 };
int[] hoverY = { 42, 42, 42, 42, 42, 80, 80, 80, 80, 80, 118, 118, 118,
118, 118, 150, 150, 150, 150, 150, 105, 80, 65, 65, 65, 110 };
String[] hoverStrings = {
"Level 01\nThick Skin\nIncreases your Defence by 5%",
"Level 04\nBurst of Strength\nIncreases your Strength by 5%",
"Level 07\nCharity of Thought\nIncreases your Attack by 5%",
"Level 08\nSharp Eye\nIncreases your Ranged by 5%",
"Level 09\nMystic Will\nIncreases your Magic by 5%",
"Level 10\nRock Skin\nIncreases your Defence by 10%",
"Level 13\nSuperhuman Strength\nIncreases your Strength by 10%",
"Level 16\nImproved Reflexes\nIncreases your Attack by 10%",
"Level 19\nRapid Restore\n2x restore rate for all stats\nexcept Hitpoints and Prayer",
"Level 22\nRapid Heal\n2x restore rate for the\nHitpoints stat",
"Level 25\nProtect Item\nKeep one extra item if you die",
"Level 26\nHawk Eye\nIncreases your Ranged by 10%",
"Level 27\nMystic Lore\nIncreases your Magic by 10%",
"Level 28\nSteel Skin\nIncreases your Defence by 15%",
"Level 31\nUltimate Strength\nIncreases your Strength by 15%",
"Level 34\nIncredible Reflexes\nIncreases your Attack by 15%",
"Level 37\nProtect from Magic\nProtection from magical attacks",
"Level 40\nProtect from Missiles\nProtection from ranged attacks",
"Level 43\nProtect from Melee\nProtection from close attacks",
"Level 44\nEagle Eye\nIncreases your Ranged by 15%",
"Level 45\nMystic Might\nIncreases your Magic by 15%",
"Level 46\nRetribution\nInflicts damage to nearby\ntargets if you die",
"Level 49\nRedemption\nHeals you when damaged\nand Hitpoints falls\nbelow 10%",
"Level 52\nSmite\n1/4 of damage dealt is\nalso removed from\nopponents Prayer",
"Level 60\nChivalry\nIncreases your Defence by 20%,\nStrength by 18% and Attack by\n15%",
"Level 70\nPiety\nIncreases your Defence by 25%,\nStrength by 23% and Attack by\n20%" };
int ID2[] = { 5609, 5610, 5611, 5612, 5613, 5614, 5615, 5616, 5617,
5618, 5619, 5620, 5621, 5622, 5623, 683, 684, 685, 5632, 5633,
5634, 5635, 5636, 5637, 5638, 5639, 5640, 5641, 5642, 5643,
5644, 686, 5645, 5649, 5647, 5648, 18000, 18001, 18002, 18003,
18004, 18005, 18006, 18007, 18008, 18009, 18010, 18011, 18012,
18013, 18014, 18015, 5651, 687 };
int X2[] = { 6, 42, 78, 6, 42, 78, 114, 150, 6, 114, 150, 6, 42, 78,
114, 42, 78, 114, 8, 44, 80, 8, 44, 80, 116, 152, 8, 116, 152,
8, 44, 80, 116, 44, 80, 116, 114, 117, 150, 153, 42, 45, 78,
81, 150, 153, 6, 9, 150, 157, 6, 8, 65, 14 };
int Y2[] = { 4, 4, 4, 40, 40, 40, 40, 40, 76, 76, 76, 112, 112, 112,
112, 148, 148, 148, 6, 6, 6, 42, 42, 42, 42, 42, 79, 78, 78,
114, 114, 114, 114, 150, 150, 150, 4, 8, 4, 7, 76, 80, 76, 79,
112, 116, 148, 151, 148, 151, 184, 194, 242, 244 };
String[] oldPrayerNames = { "Thick Skin", "Burst of Strength",
"Charity of Thought", "Rock Skin", "Superhuman Strength",
"Improved Reflexes", "Rapid Restore", "Rapid Heal",
"Protect Item", "Steel Skin", "Ultimate Strength",
"Incredible Reflexes", "Protect from Magic",
"Protect from Missiles", "Protect from Melee", "Retribution",
"Redemption", "Smite" };
addPrayer(18000, 0, 601, 7, 0, "Sharp Eye");
addPrayer(18002, 0, 602, 8, 1, "Mystic Will");
addPrayer(18004, 0, 603, 25, 2, "Hawk Eye");
addPrayer(18006, 0, 604, 26, 3, "Mystic Lore");
addPrayer(18008, 0, 605, 43, 4, "Eagle Eye");
addPrayer(18010, 0, 606, 44, 5, "Mystic Might");
addPrayer(18012, 0, 607, 59, 6, "Chivalry");
addPrayer(18014, 0, 608, 69, 7, "Piety");
for (int i = 0; i < 18; i++) {
addOldPrayer(ID2[i], oldPrayerNames[i]);
}
for (int i = 0; i < 26; i++) {
addPrayerHover(ID1[i], hoverIDs[i], i, hoverStrings[i]);
}
tab.totalChildren(106); // 54
tab.child(52, 5651, 70, 242);
for (int ii = 0; ii < 54; ii++) {
tab.child(ii, ID2[ii], X2[ii], Y2[ii]);
}
int frame = 54;
int frame2 = 0;
for (int i : ID1) {
tab.child(frame, i, X[frame2], Y[frame2]);
frame++;
frame2++;
}
int frame3 = 0;
for (int i : hoverIDs) {
tab.child(frame, i, hoverX[frame3], hoverY[frame3]);
frame++;
frame3++;
}
}