Curse Prayers [OverloadX]
I am trying to adding curse prayers, I currently have the sprite and Rsinterface already, I am just having a hard time adding it server sided. I have tried [Only registered and activated users can see links. Click Here To Register...] .
This is also what my Rsinterface looks like for the curse prayer.
Code:
public static void Curses(TextDrawingArea[] TDA) {
RSInterface Interface = addTabInterface(22500);
int index = 0;
setChildren(62, Interface);
addText(22501, "99/99", 0xFF981F, false, false, -1, TDA, 1);
/*Top Row*/
addPrayer(22503, 0, 83, 49, 7, "Protect Item", 22542);
setBounds(22503, 2, 5, index, Interface);index++;//Glow
setBounds(22504, 8, 8, index, Interface);index++;//Icon
addPrayer(22505, 0, 84, 49, 4, "Sap Warrior", 22544);
setBounds(22505, 40, 5, index, Interface);index++;//Glow
setBounds(22506, 47, 12, index, Interface);index++;//Icon
addPrayer(22507, 0, 85, 51, 5, "Sap Ranger", 22546);
setBounds(22507, 76, 5, index, Interface);index++;//Glow
setBounds(22508, 82, 11, index, Interface);index++;//Icon
addPrayer(22509, 0, 101, 53, 3, "Sap Mage", 22548);
setBounds(22509, 113, 5, index, Interface);index++;//Glow
setBounds(22510, 116, 8, index, Interface);index++;//Icon
addPrayer(22511, 0, 102, 55, 2, "Sap Spirit", 22550);
setBounds(22511, 150, 5, index, Interface);index++;//Glow
setBounds(22512, 155, 10, index, Interface);index++;//Icon
/*2nd Row*/
addPrayer(22513, 0, 86, 58, 18, "Berserker", 22552);
setBounds(22513, 2, 45, index, Interface);index++;//Glow
setBounds(22514, 9, 48, index, Interface);index++;//Icon
addPrayer(22515, 0, 87, 61, 15, "Deflect Summoning", 22554);
setBounds(22515, 39, 45, index, Interface);index++;//Glow
setBounds(22516, 42, 47, index, Interface);index++;//Icon
addPrayer(22517, 0, 88, 64, 17, "Deflect Magic", 22556);
setBounds(22517, 76, 45, index, Interface);index++;//Glow
setBounds(22518, 79, 48, index, Interface);index++;//Icon
addPrayer(22519, 0, 89, 67, 16, "Deflect Missiles", 22558);
setBounds(22519, 113, 45, index, Interface);index++;//Glow
setBounds(22520, 116, 48, index, Interface);index++;//Icon
addPrayer(22521, 0, 90, 70, 6, "Deflect Melee", 22560);
setBounds(22521, 151, 45, index, Interface);index++;//Glow
setBounds(22522, 154, 48, index, Interface);index++;//Icon
/*3rd Row*/
addPrayer(22523, 0, 91, 73, 9, "Leech Attack", 22562);
setBounds(22523, 2, 82, index, Interface);index++;//Glow
setBounds(22524, 6, 86, index, Interface);index++;//Icon
addPrayer(22525, 0, 103, 75, 10, "Leech Ranged", 22564);
setBounds(22525, 40, 82, index, Interface);index++;//Glow
setBounds(22526, 42, 86, index, Interface);index++;//Icon
addPrayer(22527, 0, 104, 77, 11, "Leech Magic", 22566);
setBounds(22527, 77, 82, index, Interface);index++;//Glow
setBounds(22528, 79, 86, index, Interface);index++;//Icon
addPrayer(22529, 0, 92, 79, 12, "Leech Defence", 22568);
setBounds(22529, 114, 83, index, Interface);index++;//Glow
setBounds(22530, 119, 87, index, Interface);index++;//Icon
addPrayer(22531, 0, 93, 81, 13, "Leech Strength", 22570);
setBounds(22531, 153, 83, index, Interface);index++;//Glow
setBounds(22532, 156, 86, index, Interface);index++;//Icon
/*Bottom Row*/
addPrayer(22533, 0, 94, 83, 14, "Leech Energy", 22572);
setBounds(22533, 2, 120, index, Interface);index++;//Glow
setBounds(22534, 7, 125, index, Interface);index++;//Icon
addPrayer(22535, 0, 95, 85, 19, "Leech Special Attack", 22574);
setBounds(22535, 40, 120, index, Interface);index++;//Glow
setBounds(22536, 45, 124, index, Interface);index++;//Icon
addPrayer(22537, 0, 96, 88, 1, "Wrath", 22576);
setBounds(22537, 78, 120, index, Interface);index++;//Glow
setBounds(22538, 86, 124, index, Interface);index++;//Icon
addPrayer(22539, 0, 97, 91, 8, "Soul Split", 22578);
setBounds(22539, 114, 120, index, Interface);index++;//Glow
setBounds(22540, 120, 125, index, Interface);index++;//Icon
addPrayer(23000, 0, 105, 94, 0, "Turmoil", 22580);
setBounds(23000, 151, 120, index, Interface);index++;//Glow
setBounds(23001, 153, 127, index, Interface);index++;//Icon
/*Prayer Icon/Text*/
addSprite(22502, 0, "Curses/ICON");
setBounds(22501, 85, 241, index, Interface);index++;//Text
setBounds(22502, 65, 241, index, Interface);index++;//Icon
/*Tooltips/Hover Boxes*/
addTooltip(22542, "Level 50\nProtect Item\nKeep 1 extra item if you die", 100, 150);
addTooltip(22544, "Level 50\nSap Warrior\nDrains 10% of enemy Attack,\nStrength and Defence,\nincreasing to 20% over time", 100, 150);
addTooltip(22546, "Level 52\nSap Ranger\nDrains 10% of enemy Ranged\nand Defence, increasing to 20%\nover time", 100, 175);
addTooltip(22548, "Level 54\nSap Mage\nDrains 10% of enemy Magic\nand Defence, increasing to 20%\nover time", 100, 175);
addTooltip(22550, "Level 56\nSap Spirit\nDrains enenmy special attack\nenergy", 100, 175);
addTooltip(22552, "Level 59\nBerserker\nBoosted stats last 15% longer", 100, 175);
addTooltip(22554, "Level 62\nDeflect Summoning\nReduces damage dealt from\nSummoning scrolls, prevents the\nuse of a familiar's special\nattack, and can deflect some of\ndamage back to the attacker", 125, 175);
addTooltip(22556, "Level 65\nDeflect Magic\nProtects against magical attacks\nand can deflect some of the\ndamage back to the attacker", 100, 175);
addTooltip(22558, "Level 68\nDeflect Missiles\nProtects against ranged attacks\nand can deflect some of the\ndamage back to the attacker", 100, 175);
addTooltip(22560, "Level 71\nDeflect Melee\nProtects against melee attacks\nand can deflect some of the\ndamage back to the attacker", 100, 175);
addTooltip(22562, "Level 74\nLeech Attack\nBoosts Attack by 5%, increasing\nto 10% over time, while draining\nenemy Attack by 10%,\nincreasing to 25% over time", 100, 175);
addTooltip(22564, "Level 76\nLeech Ranged\nBoosts Ranged by 5%, increasing\nto 10% over time,\nwhile draining enemy Ranged by\n10%, increasing to 25% over\ntime", 113, 175);
addTooltip(22566, "Level 78\nLeech Magic\nBoosts Magic by 5%, increasing\nto 10% over time, while draining\nenemy Magic by 10%, increasing\nto 25% over time", 100, 175);
addTooltip(22568, "Level 80\nLeech Defence\nBoosts Defence by 5%, increasing\nto 10% over time,\nwhile draining enemy Defence by\n10%, increasing to 25% over\ntime", 113, 180);
addTooltip(22570, "Level 82\nLeech Strength\nBoosts Strength by 5%, increasing\nto 10% over time,\nwhile draining enemy Strength by\n10%, increasing to 25% over\ntime", 113, 180);
addTooltip(22572, "Level 84\nLeech Energy\nDrains enemy run energy, while\nincreasing your own", 113, 180);
addTooltip(22574, "Level 86\nLeech Special Attack\nDrains enemy special attack\nenergy, while increasing your\nown", 113, 180);
addTooltip(22576, "Level 89\nWrath\nInflicts damage to nearby\ntargets if you die", 113, 180);
addTooltip(22578, "Level 92\nSoul Split\n1/4 of damage dealt is\nalso removed from\nopponent's Prayer and added to\nyour Hitpoints", 113, 180);
addTooltip(22580, "Level 95\nTurmoil\nIncreases Attack and Defence\nby 15%, plus 15% of enemy's\nlevel, and Strength by 23% plus\n10% of enemy's level", 113, 180);
setBounds(22542, 10, 40, index, Interface);index++;
setBounds(22544, 20, 40, index, Interface);index++;
setBounds(22546, 20, 40, index, Interface);index++;
setBounds(22548, 20, 40, index, Interface);index++;
setBounds(22550, 20, 40, index, Interface);index++;
setBounds(22552, 10, 80, index, Interface);index++;
setBounds(22554, 10, 80, index, Interface);index++;
setBounds(22556, 10, 80, index, Interface);index++;
setBounds(22558, 10, 80, index, Interface);index++;
setBounds(22560, 10, 80, index, Interface);index++;
setBounds(22562, 10, 120, index, Interface);index++;
setBounds(22564, 10, 120, index, Interface);index++;
setBounds(22566, 10, 120, index, Interface);index++;
setBounds(22568, 5, 120, index, Interface);index++;
setBounds(22570, 5, 120, index, Interface);index++;
setBounds(22572, 10, 160, index, Interface);index++;
setBounds(22574, 10, 160, index, Interface);index++;
setBounds(22576, 10, 160, index, Interface);index++;
setBounds(22578, 10, 160, index, Interface);index++;
setBounds(22580, 10, 160, index, Interface);index++;
}