private String prayerBook;
private boolean clickedQuickPrayers;
public void drawPrayer() {
Sprite prayerHover = new Sprite("Gameframe/orbs/Hover");
String OD = signlink.findcachedir()+"/Sprites/Frame/";
String lol1 = RSInterface.interfaceCache[13000].message;
String lol2 = RSInterface.interfaceCache[13001].message;
int currentPR = Integer.parseInt(lol1);
int maxPR2 = Integer.parseInt(lol2);
int prayer = (int)(((double)currentPR/(double)maxPR2) * 100D);
ORBS[0] = new Sprite(OD + "ORBS 0.png", 27, getOrbFill(prayer));
if (super.mouseX >= 706 && super.mouseX <= 762 && super.mouseY >= 52 && super.mouseY < 87)
prayerHover.drawSprite(190, 53);
else
ORBS[1].drawSprite(190, 53);
if (clickedQuickPrayers)
ORBS[5].drawSprite(193, 56);
else
ORBS[4].drawSprite(193, 56);
ORBS[0].drawSprite(194, 56);
ORBS[6].drawSprite(197, 60);
smallText.method382(getOrbTextColor(prayer), 234, "" + currentPR, 79, true);
}
} else if(super.mouseX >= 706 && super.mouseX <= 762 && super.mouseY >= 52 && super.mouseY < 87){
menuActionName[2] = prayClicked ? "Turn Prayer off" : "Turn quick " + prayerBook + " on";
menuActionID[2] = 1500;
menuActionRow = 2;
menuActionName[1] = "Select quick " + prayerBook;
menuActionID[1] = 1506;
menuActionRow = 3;
clickedQuickPrayers = false;
case 1500: //Toggle quick prayers
prayClicked = !prayClicked;
stream.createFrame(185);
stream.writeWord(5000);
break;
case 1506: //Select quick prayers
stream.createFrame(185);
stream.writeWord(5001);
break;
clickedQuickPrayers = false;
if (text.startsWith(":quicks:"))
clickedQuickPrayers = text.substring(
.equalsIgnoreCase("on");
if (text.startsWith(":prayer:"))
prayerBook = text.substring(
;
quickPrayers(textDrawingAreas);
quickCurses(textDrawingAreas);
public static void quickPrayers(TextDrawingArea[] TDA) {
int i = 0;
RSInterface localRSInterface = addTabInterface(20000);
addSprite(17201, 3, "/Interfaces/QuickPrayer/Sprite");
addText(17240, "Select your quick prayers:", TDA, 0, 16750623, false, true);
addTransparentSprite(17249, 0, "/Interfaces/QuickPrayer/Sprite", 50);
int j = 17202;
for (int k = 630; (j <= 17231) || (k <= 659); ++k) {
addConfigButton(j, 17200, 2, 1, "/Interfaces/QuickPrayer/Sprite", 14, 15, "Select", 0, 1, k);
j++;
}
addHoverButton(17241, "/Interfaces/QuickPrayer/Sprite", 4, 190, 24, "Confirm Selection", -1, 17242, 1);
addHoveredButton(17242, "/Interfaces/QuickPrayer/Sprite", 5, 190, 24, 17243);
setChildren(58, localRSInterface);
setBounds(25001, 5, 28, i++, localRSInterface);
setBounds(25003, 44, 28, i++, localRSInterface);
setBounds(25005, 79, 31, i++, localRSInterface);
setBounds(25007, 116, 30, i++, localRSInterface);
setBounds(25009, 153, 29, i++, localRSInterface);
setBounds(25011, 5, 68, i++, localRSInterface);
setBounds(25013, 44, 67, i++, localRSInterface);
setBounds(25015, 79, 69, i++, localRSInterface);
setBounds(25017, 116, 70, i++, localRSInterface);
setBounds(25019, 154, 70, i++, localRSInterface);
setBounds(25021, 4, 104, i++, localRSInterface);
setBounds(25023, 44, 107, i++, localRSInterface);
setBounds(25025, 81, 105, i++, localRSInterface);
setBounds(25027, 117, 105, i++, localRSInterface);
setBounds(25029, 156, 107, i++, localRSInterface);
setBounds(25031, 5, 145, i++, localRSInterface);
setBounds(25033, 43, 144, i++, localRSInterface);
setBounds(25035, 83, 144, i++, localRSInterface);
setBounds(25037, 115, 141, i++, localRSInterface);
setBounds(25039, 154, 144, i++, localRSInterface);
setBounds(25041, 5, 180, i++, localRSInterface);
setBounds(25043, 41, 178, i++, localRSInterface);
setBounds(25045, 79, 183, i++, localRSInterface);
setBounds(25047, 116, 178, i++, localRSInterface);
setBounds(25049, 161, 180, i++, localRSInterface);
//setBounds(18015, 4, 210, i++, localRSInterface);
setBounds(25051, 5, 217, i++, localRSInterface);
//setBounds(18061, 78, 212, i++, localRSInterface);
//setBounds(18121, 116, 208, i++, localRSInterface);
setBounds(17249, 0, 25, i++, localRSInterface);
setBounds(17201, 0, 22, i++, localRSInterface);
setBounds(17201, 0, 237, i++, localRSInterface);
setBounds(17202, 2, 25, i++, localRSInterface);
setBounds(17203, 41, 25, i++, localRSInterface);
setBounds(17204, 76, 25, i++, localRSInterface);
setBounds(17205, 113, 25, i++, localRSInterface);
setBounds(17206, 150, 25, i++, localRSInterface);
setBounds(17207, 2, 65, i++, localRSInterface);
setBounds(17208, 41, 65, i++, localRSInterface);
setBounds(17209, 76, 65, i++, localRSInterface);
setBounds(17210, 113, 65, i++, localRSInterface);
setBounds(17211, 150, 65, i++, localRSInterface);
setBounds(17212, 2, 102, i++, localRSInterface);
setBounds(17213, 41, 102, i++, localRSInterface);
setBounds(17214, 76, 102, i++, localRSInterface);
setBounds(17215, 113, 102, i++, localRSInterface);
setBounds(17216, 150, 102, i++, localRSInterface);
setBounds(17217, 2, 141, i++, localRSInterface);
setBounds(17218, 41, 141, i++, localRSInterface);
setBounds(17219, 76, 141, i++, localRSInterface);
setBounds(17220, 113, 141, i++, localRSInterface);
setBounds(17221, 150, 141, i++, localRSInterface);
setBounds(17222, 2, 177, i++, localRSInterface);
setBounds(17223, 41, 177, i++, localRSInterface);
setBounds(17224, 76, 177, i++, localRSInterface);
setBounds(17225, 113, 177, i++, localRSInterface);
setBounds(17226, 150, 177, i++, localRSInterface);
setBounds(17227, 1, 211, i++, localRSInterface);
//setBounds(17228, 1, 211, i++, localRSInterface);
//setBounds(17229, 75, 211, i++, localRSInterface);
//setBounds(17230, 113, 211, i++, localRSInterface);
setBounds(17240, 5, 5, i++, localRSInterface);
setBounds(17241, 0, 237, i++, localRSInterface);
setBounds(17242, 0, 237, i++, localRSInterface);
}
public static void quickCurses(TextDrawingArea[] TDA) {
int frame = 0;
RSInterface tab = addTabInterface(22000);
addSprite(17201, 3, "/Interfaces/QuickPrayer/Sprite");
addText(17235, "Select your quick curses:", TDA, 0, 16750623, false, true);
addTransparentSprite(17249, 0, "/Interfaces/QuickPrayer/Sprite", 50);
int j = 17202;
for (int k = 630; (j <= 17222) || (k <= 656); k++) {
addConfigButton(j, 17200, 2, 1, "/Interfaces/QuickPrayer/Sprite", 14, 15, "Select", 0, 1, k);
j++;
}
setChildren(46, tab);
setBounds(22504, 5, 8+17, frame++, tab);
setBounds(22506, 44, 8+20, frame++, tab);
setBounds(22508, 79, 11+19, frame++, tab);
setBounds(22510, 116, 10+18, frame++, tab);
setBounds(22512, 153, 9+20, frame++, tab);
setBounds(22514, 5, 48+18, frame++, tab);
setBounds(22516, 44, 47+21, frame++, tab);
setBounds(22518, 79, 49+20, frame++, tab);
setBounds(22520, 116, 50+19, frame++, tab);
setBounds(22522, 154, 50+20, frame++, tab);
setBounds(22524, 4, 84+21, frame++, tab);
setBounds(22526, 44, 87+19, frame++, tab);
setBounds(22528, 81, 85+20, frame++, tab);
setBounds(22530, 117, 85+20, frame++, tab);
setBounds(22532, 156, 87+18, frame++, tab);
setBounds(22534, 5, 125+19, frame++, tab);
setBounds(22536, 43, 124+19, frame++, tab);
setBounds(22538, 83, 124+20, frame++, tab);
setBounds(22540, 115, 125+21, frame++, tab);
setBounds(22542, 154, 126+22, frame++, tab);
setBounds(17249, 0, 25, frame++, tab);
setBounds(17201, 0, 22, frame++, tab);
setBounds(17201, 0, 237, frame++, tab);
setBounds(17202, 2, 25, frame++, tab);
setBounds(17203, 41, 25, frame++, tab);
setBounds(17204, 76, 25, frame++, tab);
setBounds(17205, 113, 25, frame++, tab);
setBounds(17206, 150, 25, frame++, tab);
setBounds(17207, 2, 65, frame++, tab);
setBounds(17208, 41, 65, frame++, tab);
setBounds(17209, 76, 65, frame++, tab);
setBounds(17210, 113, 65, frame++, tab);
setBounds(17211, 150, 65, frame++, tab);
setBounds(17212, 2, 102, frame++, tab);
setBounds(17213, 41, 102, frame++, tab);
setBounds(17214, 76, 102, frame++, tab);
setBounds(17215, 113, 102, frame++, tab);
setBounds(17216, 150, 102, frame++, tab);
setBounds(17217, 2, 141, frame++, tab);
setBounds(17218, 41, 141, frame++, tab);
setBounds(17219, 76, 141, frame++, tab);
setBounds(17220, 113, 141, frame++, tab);
setBounds(17221, 150, 141, frame++, tab);
setBounds(17235, 5, 5, frame++, tab);
setBounds(17241, 0, 237, frame++, tab);
setBounds(17242, 0, 237, frame++, tab);
}
private int transparency;
private static void addTransparentSprite(int id, int spriteId, String spriteName, int transparency) {
RSInterface tab = interfaceCache[id] = new RSInterface();
tab.id = id;
tab.parentID = id;
tab.type = 5;
tab.atActionType = 0;
tab.contentType = 0;
tab.transparency = (byte) transparency;
tab.hoverType = 52;
tab.sprite1 = imageLoader(spriteId, spriteName);
tab.sprite2 = imageLoader(spriteId, spriteName);
tab.width = 512;
tab.height = 334;
tab.drawsTransparent = true;
}
} else if(class9_1.type == 5) {
Sprite sprite;
if(interfaceIsSelected(class9_1))
sprite = class9_1.sprite2;
else
sprite = class9_1.sprite1;
if (sprite != null)
if(class9_1.drawsTransparent) {
sprite.drawTransparentSprite(k2, l2, alpha);
} else {
sprite.drawSprite(k2, l2);
}
}
}
c.getPA().sendFrame126(":quicks
ff", -1);
getPA().sendFrame126(":prayer:" + (altarPrayed == 1 ? "curses" : "prayers"), -1);
if (actionButtonId >= 67050 && actionButtonId <= 67075) {
if (c.altarPrayed == 0)
QuickPrayers.clickPray(c, actionButtonId);
else
QuickCurses.clickCurse(c, actionButtonId);
}
case 19136: //Toggle quick prayers
if (c.quickPray || c.quickCurse) {
QuickCurses.turnOffQuicks(c);
return;
}
QuickCurses.turnOnQuicks(c);
break;
case 19137: //Select quick prayers
QuickCurses.selectQuickInterface(c);
break;
case 67089: //quick curse confirm
QuickCurses.clickConfirm(c);
break;
case 70082: //select your quick prayers/curses
QuickCurses.selectQuickInterface(c);
c.getPA().sendFrame106(5);
break;
Copyright © 2026, NextGenUpdate.
All Rights Reserved.