PDA

View Full Version : Better Start to Ancient Curses!



colten804
January 31st, 2011, 00:02
This isn't necessarily the correct way to do curses but it is sufficient if you want basic head icons, "glowing" prayers, and some gfx and animations.
Step 1
Add these to player.java

public boolean curses = false;
public transient boolean ProtectItem = false;
public transient boolean SapWarrior = false;
public transient boolean SapRanger = false;
public transient boolean SapMage = false;
public transient boolean SapSpirit = false;
public transient boolean Berserker = false;
public transient boolean DeflectSummoning = false;
public transient boolean DeflectRange = false;
public transient boolean DeflectMagic = false;
public transient boolean DeflectMelee = false;
public transient boolean LeechAttack = false;
public transient boolean LeechRange = false;
public transient boolean LeechMagic = false;
public transient boolean LeechDefence = false;
public transient boolean LeechStrength = false;
public transient boolean LeechEnergy = false;
public transient boolean SpecialAttackLeech = false;
public transient boolean Wrath = false;
public transient boolean Turmoil = false;
public transient boolean Soulsplit = false;
public boolean QuickProtectItem = false;
public boolean QuickSapWarrior = false;
public boolean QuickSapRanger = false;
public boolean QuickSapMage = false;
public boolean QuickSapSpirit = false;
public boolean QuickBerserker = false;
public boolean QuickDeflectSummoning = false;
public boolean QuickDeflectRange = false;
public boolean QuickDeflectMagic = false;
public boolean QuickDeflectMelee = false;
public boolean QuickLeechAttack = false;
public boolean QuickLeechRange = false;
public boolean QuickLeechMagic = false;
public boolean QuickLeechDefence = false;
public boolean QuickLeechEnergy = false;
public boolean QuickLeechStrength = false;
public boolean QuickSpecialAttackLeech = false;
public boolean QuickWrath = false;
public boolean QuickTurmoil = false;
public boolean QuickSoulsplit = false;

Step 2
Replace your prayer.java with mine!


package com.rs2hd.content.skills.prayer;

import com.rs2hd.model.Player;

public class Prayer {

public void handlePrayerSwitch(Player p, int buttonId) {
switch(buttonId) {
case 1: //quickprayer
if (p.PrayerON == false) {
UseQuickPrayer(p);
}else{
PrayerOff(p);
}
break;
case 2: //quickprayer settings
if (p.QuickPrayer == false) {
p.getActionSender().dunno(168,6);
p.getActionSender().dunno(181,1);
p.getActionSender().sendAccessMask(2, 271, 7, 0, 27);
QuickPrayerConfig(p);
p.QuickPrayer = true;
}else{
p.getActionSender().dunno(168,6);
p.getActionSender().dunno(181,0);
p.getActionSender().sendAccessMask(2, 271, 6 , 0, 27);
p.QuickPrayer = false;
}
break;

}
}
public void UseQuickPrayer(Player p) {
if(p.QuickTHICKSKIN == true)
handlePrayerUse(p, 0);
if(p.QuickBURSTOFSTRENGHT == true)
handlePrayerUse(p, 1);
if(p.QuickCLARITYOFTHOUGHT == true)
handlePrayerUse(p, 2);
if(p.QuickSHARPEYE == true)
handlePrayerUse(p, 3);
if(p.QuickMYSTICWILL == true)
handlePrayerUse(p, 4);
if(p.QuickROCKSKIN == true)
handlePrayerUse(p, 5);
if(p.QuickSUPERHUMANSTRENGHT == true)
handlePrayerUse(p, 6);
if(p.QuickIMPROVEDREFLEXES == true)
handlePrayerUse(p, 7);
if(p.QuickRAPIDRESTORE == true)
handlePrayerUse(p, 8);
if(p.QuickRAPIDHEAL == true)
handlePrayerUse(p, 9);
if(p.QuickPROTECTITEM == true)
handlePrayerUse(p, 10);
if(p.QuickHAWKEYE == true)
handlePrayerUse(p, 11);
if(p.QuickMYSTICLORE == true)
handlePrayerUse(p, 12);
if(p.QuickSTEELSKIN == true)
handlePrayerUse(p, 13);
if(p.QuickULTIMATESTRENGHT == true)
handlePrayerUse(p, 14);
if(p.QuickINCREDIBLEREFLEXES == true)
handlePrayerUse(p, 15);
if(p.QuickPROTECTFROMSUMMONING == true)
handlePrayerUse(p, 16);
if(p.QuickPROTECTFROMMAGIC == true)
handlePrayerUse(p, 17);
if(p.QuickPROTECTFROMMISSELES == true)
handlePrayerUse(p, 18);
if(p.QuickPROTECTFROMMELEE == true)
handlePrayerUse(p, 19);
if(p.QuickEAGLEEYE == true)
handlePrayerUse(p, 20);
if(p.QuickMYSTICMIGHT == true)
handlePrayerUse(p, 21);
if(p.QuickRETRIBUTION == true)
handlePrayerUse(p, 22);
if(p.QuickREDEMPTION == true)
handlePrayerUse(p, 23);
if(p.QuickSMITE == true)
handlePrayerUse(p, 24);
if(p.QuickCHILVALRY == true)
handlePrayerUse(p, 25);
if(p.QuickPIETY == true)
handlePrayerUse(p, 26);
}
public void QuickhandlePrayerUse(Player p, int PrayerButton) {
switch(PrayerButton) {
case 0:
if(p.getSkills().getLevelForXp(5) < 1) {
p.sm("You need 1 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.QuickTHICKSKIN == false) {
//DEF
p.QuickROCKSKIN = false;
p.QuickSTEELSKIN = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickTHICKSKIN = true;
}else{
p.QuickTHICKSKIN = false;
}
break;
case 1:
if(p.getSkills().getLevelForXp(5) < 4) {
p.sm("You need 4 Prayer to activate this.");
return;
}
if(p.QuickBURSTOFSTRENGHT == false) {
//STR
p.QuickSUPERHUMANSTRENGHT = false;
p.QuickULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickBURSTOFSTRENGHT = true;
}else{
p.QuickBURSTOFSTRENGHT = false;
}
break;
case 2:
if(p.getSkills().getLevelForXp(5) < 7) {
p.sm("You need 7 Prayer to activate this.");
return;
}
if(p.QuickCLARITYOFTHOUGHT == false) {
//ATT
p.QuickIMPROVEDREFLEXES = false;
p.QuickINCREDIBLEREFLEXES = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickCLARITYOFTHOUGHT = true;
}else{
p.QuickCLARITYOFTHOUGHT = false;
}
break;
case 3:
if(p.getSkills().getLevelForXp(5) < 8) {
p.sm("You need 8 Prayer to activate this.");
return;
}
if(p.QuickSHARPEYE == false) {
//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickIMPROVEDREFLEXES = false;
p.QuickINCREDIBLEREFLEXES = false;
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickSUPERHUMANSTRENGHT = false;
p.QuickULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickSHARPEYE = true;
}else{
p.QuickSHARPEYE = false;
}
break;
case 4:
if(p.getSkills().getLevelForXp(5) < 9) {
p.sm("You need 9 Prayer to activate this.");
return;
}
if(p.QuickMYSTICWILL == false) {
//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickIMPROVEDREFLEXES = false;
p.QuickINCREDIBLEREFLEXES = false;
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickSUPERHUMANSTRENGHT = false;
p.QuickULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickMYSTICWILL = true;
}else{
p.QuickMYSTICWILL = false;
}
break;
case 5:
if(p.getSkills().getLevelForXp(5) < 10) {
p.sm("You need 10 Prayer to activate this.");
return;
}
if(p.QuickROCKSKIN == false) {
//DEF
p.QuickTHICKSKIN = false;
p.QuickSTEELSKIN = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickROCKSKIN = true;
}else{
p.QuickROCKSKIN = false;
}
break;
case 6:
if(p.getSkills().getLevelForXp(5) < 13) {
p.sm("You need 13 Prayer to activate this.");
return;
}
if(p.QuickSUPERHUMANSTRENGHT == false) {
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickSUPERHUMANSTRENGHT = true;
}else{
p.QuickSUPERHUMANSTRENGHT = false;
}
break;
case 7:
if(p.getSkills().getLevelForXp(5) < 16) {
p.sm("You need 16 Prayer to activate this.");
return;
}
if(p.QuickIMPROVEDREFLEXES == false) {
//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickINCREDIBLEREFLEXES = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickIMPROVEDREFLEXES = true;
}else{
p.QuickIMPROVEDREFLEXES = false;
}
break;
case 8:
if(p.getSkills().getLevelForXp(5) < 19) {
p.sm("You need 19 Prayer to activate this.");
return;
}
if(p.QuickRAPIDRESTORE == false) {
p.QuickRAPIDRESTORE = true;
}else{
p.QuickRAPIDRESTORE = false;
}
break;
case 9:
if(p.getSkills().getLevelForXp(5) < 22) {
p.sm("You need 22 Prayer to activate this.");
return;
}
if(p.QuickRAPIDHEAL == false) {
p.QuickRAPIDHEAL = true;
}else{
p.QuickRAPIDHEAL = false;
}
break;
case 10:
if(p.getSkills().getLevelForXp(5) < 25) {
p.sm("You need 25 Prayer to activate this.");
return;
}
if(p.QuickPROTECTITEM == false) {
p.QuickPROTECTITEM = true;
}else{
p.QuickPROTECTITEM = false;
}
break;
case 11:
if(p.getSkills().getLevelForXp(5) < 26) {
p.sm("You need 26 Prayer to activate this.");
return;
}
if(p.QuickHAWKEYE == false) {
//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickIMPROVEDREFLEXES = false;
p.QuickINCREDIBLEREFLEXES = false;
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickSUPERHUMANSTRENGHT = false;
p.QuickULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickHAWKEYE = true;
}else{
p.QuickHAWKEYE = false;
}
break;
case 12:
if(p.getSkills().getLevelForXp(5) < 27) {
p.sm("You need 27 Prayer to activate this.");
return;
}
if(p.QuickMYSTICLORE == false) {
//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickIMPROVEDREFLEXES = false;
p.QuickINCREDIBLEREFLEXES = false;
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickSUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickMYSTICLORE = true;
}else{
p.QuickMYSTICLORE = false;
}
break;
case 13:
if(p.getSkills().getLevelForXp(5) < 28) {
p.sm("You need 28 Prayer to activate this.");
return;
}
if(p.QuickSTEELSKIN == false) {
//DEF
p.QuickTHICKSKIN = false;
p.QuickROCKSKIN = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickSTEELSKIN = true;
}else{
p.QuickSTEELSKIN = false;
}
break;
case 14:
if(p.getSkills().getLevelForXp(5) < 31) {
p.sm("You need 31 Prayer to activate this.");
return;
}
if(p.QuickULTIMATESTRENGHT == false) {
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickSUPERHUMANSTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickULTIMATESTRENGHT = true;
}else{
p.QuickULTIMATESTRENGHT = false;
}
break;
case 15:
if(p.getSkills().getLevelForXp(5) < 34) {
p.sm("You need 34 Prayer to activate this.");
return;
}
if(p.QuickINCREDIBLEREFLEXES == false) {

//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickIMPROVEDREFLEXES = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickINCREDIBLEREFLEXES = true;
}else{
p.QuickINCREDIBLEREFLEXES = false;
}

break;


case 16:
if(p.getSkills().getLevelForXp(5) < 35) {
p.sm("You need 35 Prayer to activate this.");
return;
}
if(p.QuickPROTECTFROMSUMMONING == false) {
p.QuickPROTECTFROMSUMMONING = true;
}else{
p.QuickPROTECTFROMSUMMONING = false;
}

break;


case 17:
if(p.getSkills().getLevelForXp(5) < 37) {
p.sm("You need 37 Prayer to activate this.");
return;
}
if(p.QuickPROTECTFROMMAGIC == false) {
p.QuickPROTECTFROMMISSELES = false;
p.QuickPROTECTFROMMELEE = false;

p.QuickRETRIBUTION = false;
p.QuickREDEMPTION = false;
p.QuickSMITE = false;

p.QuickPROTECTFROMMAGIC = true;
}else{
p.QuickPROTECTFROMMAGIC = false;
}

break;


case 18:
if(p.getSkills().getLevelForXp(5) < 40) {
p.sm("You need 40 Prayer to activate this.");
return;
}
if(p.QuickPROTECTFROMMISSELES == false) {
p.QuickPROTECTFROMMAGIC = false;
p.QuickPROTECTFROMMELEE = false;

p.QuickRETRIBUTION = false;
p.QuickREDEMPTION = false;
p.QuickSMITE = false;

p.QuickPROTECTFROMMISSELES = true;
}else{
p.QuickPROTECTFROMMISSELES = false;
}

break;


case 19:
if(p.getSkills().getLevelForXp(5) < 43) {
p.sm("You need 43 Prayer to activate this.");
return;
}
if(p.QuickPROTECTFROMMELEE == false) {
p.QuickPROTECTFROMMAGIC = false;
p.QuickPROTECTFROMMISSELES = false;

p.QuickRETRIBUTION = false;
p.QuickREDEMPTION = false;
p.QuickSMITE = false;

p.QuickPROTECTFROMMELEE = true;
}else{
p.QuickPROTECTFROMMELEE = false;
}

break;


case 20: //eagle eye
if(p.getSkills().getLevelForXp(5) < 44) {
p.sm("You need 44 Prayer to activate this.");
return;
}
if(p.QuickEAGLEEYE == false) {
//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickIMPROVEDREFLEXES = false;
p.QuickINCREDIBLEREFLEXES = false;
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickSUPERHUMANSTRENGHT = false;
p.QuickULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickEAGLEEYE = true;
}else{
p.QuickEAGLEEYE = false;
}

break;



case 21:
if(p.getSkills().getLevelForXp(5) < 45) {
p.sm("You need 45 Prayer to activate this.");
return;
}
if(p.QuickMYSTICMIGHT == false) {
//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickIMPROVEDREFLEXES = false;
p.QuickINCREDIBLEREFLEXES = false;
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickSUPERHUMANSTRENGHT = false;
p.QuickULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;
p.QuickCHILVALRY = false;

p.QuickMYSTICMIGHT = true;
}else{
p.QuickMYSTICMIGHT = false;
}

break;


case 22: //retribution
if(p.getSkills().getLevelForXp(5) < 46) {
p.sm("You need 46 Prayer to activate this.");
return;
}
if(p.QuickRETRIBUTION == false) {
p.QuickPROTECTFROMMAGIC = false;
p.QuickPROTECTFROMMISSELES = false;
p.QuickPROTECTFROMMELEE = false;

p.QuickREDEMPTION = false;
p.QuickSMITE = false;

p.QuickRETRIBUTION = true;
}else{
p.QuickRETRIBUTION = false;
}

break;


case 23: //redemption
if(p.getSkills().getLevelForXp(5) < 49) {
p.sm("You need 49 Prayer to activate this.");
return;
}
if(p.QuickREDEMPTION == false) {
p.QuickPROTECTFROMMAGIC = false;
p.QuickPROTECTFROMMISSELES = false;
p.QuickPROTECTFROMMELEE = false;

p.QuickRETRIBUTION = false;
p.QuickSMITE = false;

p.QuickREDEMPTION = true;
}else{
p.QuickREDEMPTION = false;
}

break;


case 24: //smite
if(p.getSkills().getLevelForXp(5) < 52) {
p.sm("You need 52 Prayer to activate this.");
return;
}
if(p.QuickSMITE == false) {
p.QuickPROTECTFROMMAGIC = false;
p.QuickPROTECTFROMMISSELES = false;
p.QuickPROTECTFROMMELEE = false;

p.QuickRETRIBUTION = false;
p.QuickREDEMPTION = false;

p.QuickSMITE = true;
}else{
p.QuickSMITE = false;
}

break;


case 25: //CHILVALRY
if(p.getSkills().getLevelForXp(5) < 60) {
p.sm("You need 60 Prayer to activate this.");
return;
}
if(p.QuickCHILVALRY == false) {
//DEF
p.QuickTHICKSKIN = false;
p.QuickROCKSKIN = false;
p.QuickSTEELSKIN = false;
//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickIMPROVEDREFLEXES = false;
p.QuickINCREDIBLEREFLEXES = false;
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickSUPERHUMANSTRENGHT = false;
p.QuickULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickPIETY = false;

p.QuickCHILVALRY = true;
}else{
p.QuickCHILVALRY = false;
}

break;


case 26:
if(p.getSkills().getLevelForXp(5) < 70) {
p.sm("You need 70 Prayer to activate Piety.");
return;
}
p.graphics(2115);
p.animate(7660);
if(p.QuickPIETY == false) { //PIETY
//DEF
p.QuickTHICKSKIN = false;
p.QuickROCKSKIN = false;
p.QuickSTEELSKIN = false;
//ATT
p.QuickCLARITYOFTHOUGHT = false;
p.QuickIMPROVEDREFLEXES = false;
p.QuickINCREDIBLEREFLEXES = false;
//STR
p.QuickBURSTOFSTRENGHT = false;
p.QuickSUPERHUMANSTRENGHT = false;
p.QuickULTIMATESTRENGHT = false;
//MAGIC
p.QuickMYSTICWILL = false;
p.QuickMYSTICLORE = false;
p.QuickMYSTICMIGHT = false;
//RANGE
p.QuickSHARPEYE = false;
p.QuickHAWKEYE = false;
p.QuickEAGLEEYE = false;

p.QuickCHILVALRY = false;

p.QuickPIETY = true;
}else{
p.QuickPIETY = false;
}

break;



}
QuickPrayerConfig(p);
}
public void handlePrayerUse(Player p, int PrayerButton) {
if(p.curses) {
switch(PrayerButton) {
case 0:
if(p.getSkills().getLevelForXp(5) < 50) {
p.sm("You need 50 Prayer to activate Protect Item.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.ProtectItem == false) {
p.ProtectItem = true;
p.graphics(2213);
p.animate(12567);
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.ProtectItem = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 1:
if(p.getSkills().getLevelForXp(5) < 50) {
p.sm("You need 50 Prayer to activate Sap Warrior.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.SapWarrior == false) {

p.LeechAttack = false;
p.LeechRange = false;
p.LeechDefence = false;
p.LeechMagic = false;
p.LeechStrength = false;
p.LeechEnergy = false;
p.SpecialAttackLeech = false;
p.Turmoil = false;

p.SapWarrior = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.SapWarrior = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 2:
if(p.getSkills().getLevelForXp(5) < 52) {
p.sm("You need 52 Prayer to activate Sap Ranger.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.SapRanger == false) {
p.LeechAttack = false;
p.LeechRange = false;
p.LeechDefence = false;
p.LeechMagic = false;
p.LeechStrength = false;
p.LeechEnergy = false;
p.SpecialAttackLeech = false;
p.Turmoil = false;

p.SapRanger = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.SapRanger = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 3:
if(p.getSkills().getLevelForXp(5) < 54) {
p.sm("You need 54 Prayer to activate Sap Mage.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.SapMage == false) {
p.LeechAttack = false;
p.LeechRange = false;
p.LeechDefence = false;
p.LeechMagic = false;
p.LeechStrength = false;
p.LeechEnergy = false;
p.SpecialAttackLeech = false;
p.Turmoil = false;


p.SapMage = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.SapMage = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 4:
if(p.getSkills().getLevelForXp(5) < 56) {
p.sm("You need 56 Prayer to activate Sap Spirit.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.SapSpirit == false) {
p.LeechAttack = false;
p.LeechRange = false;
p.LeechDefence = false;
p.LeechMagic = false;
p.LeechStrength = false;
p.LeechEnergy = false;
p.SpecialAttackLeech = false;
p.Turmoil = false;

p.SapSpirit = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.SapSpirit = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 5:
if(p.getSkills().getLevelForXp(5) < 59) {
p.sm("You need 59 Prayer to activate Berserker.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.Berserker == false) {

p.Berserker = true;
p.graphics(2266);
p.animate(12589);
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.Berserker = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 6:
if(p.getSkills().getLevelForXp(5) < 62) {
p.sm("You need 62 Prayer to activate Deflect Summoning.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.DeflectSummoning == false) {
//DEF
p.Wrath = false;
p.Soulsplit = false;

p.DeflectSummoning = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.DeflectSummoning = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 7:
if(p.getSkills().getLevelForXp(5) < 65) {
p.sm("You need 65 Prayer to activate Deflect Magic.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.DeflectMagic == false) {
//DEF
p.DeflectRange = false;
p.DeflectMelee = false;
p.Wrath = false;
p.Soulsplit = false;

p.DeflectMagic = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.DeflectMagic = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 8:
if(p.getSkills().getLevelForXp(5) < 68) {
p.sm("You need 68 Prayer to activate Deflect Range.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.DeflectRange == false) {
//DEF
p.DeflectMagic = false;
p.DeflectMelee = false;
p.Wrath = false;
p.Soulsplit = false;

p.DeflectRange = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.DeflectRange = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 9:
if(p.getSkills().getLevelForXp(5) < 71) {
p.sm("You need 71 Prayer to activate Deflect Melee.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.DeflectMelee == false) {
//DEF
p.DeflectRange = false;
p.DeflectMagic = false;
p.Wrath = false;
p.Soulsplit = false;

p.DeflectMelee = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.DeflectMelee = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 10:
if(p.getSkills().getLevelForXp(5) < 74) {
p.sm("You need 74 Prayer to activate Leech Attack.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.LeechAttack == false) {
p.SapWarrior = false;
p.SapRanger = false;
p.SapMage = false;
p.SapSpirit = false;
p.Turmoil = false;

p.LeechAttack = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.LeechAttack = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 11:
if(p.getSkills().getLevelForXp(5) < 76) {
p.sm("You need 76 Prayer to activate Leech Range.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.LeechRange == false) {
p.SapWarrior = false;
p.SapRanger = false;
p.SapMage = false;
p.SapSpirit = false;
p.Turmoil = false;

p.LeechRange = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.LeechRange = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 12:
if(p.getSkills().getLevelForXp(5) < 78) {
p.sm("You need 78 Prayer to activate Leech Magic.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.LeechMagic == false) {
p.SapWarrior = false;
p.SapRanger = false;
p.SapMage = false;
p.SapSpirit = false;
p.Turmoil = false;

p.LeechMagic = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.LeechMagic = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 13:
if(p.getSkills().getLevelForXp(5) < 80) {
p.sm("You need 80 Prayer to activate Leech Defence.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.LeechDefence == false) {
p.SapWarrior = false;
p.SapRanger = false;
p.SapMage = false;
p.SapSpirit = false;
p.Turmoil = false;

p.LeechDefence = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.LeechDefence = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 14:
if(p.getSkills().getLevelForXp(5) < 82) {
p.sm("You need 82 Prayer to activate Leech Strength.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.LeechStrength == false) {
p.SapWarrior = false;
p.SapRanger = false;
p.SapMage = false;
p.SapSpirit = false;
p.Turmoil = false;

p.LeechStrength = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.LeechStrength = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 15:
if(p.getSkills().getLevelForXp(5) < 84) {
p.sm("You need 84 Prayer to activate Leech Energy.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.LeechEnergy == false) {
p.SapWarrior = false;
p.SapRanger = false;
p.SapMage = false;
p.SapSpirit = false;
p.Turmoil = false;

p.LeechEnergy = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.LeechEnergy = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 16:
if(p.getSkills().getLevelForXp(5) < 86) {
p.sm("You need 86 Prayer to activate Special Attack Leech.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.SpecialAttackLeech == false) {
p.SapWarrior = false;
p.SapRanger = false;
p.SapMage = false;
p.SapSpirit = false;
p.Turmoil = false;

p.SpecialAttackLeech = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.SpecialAttackLeech = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 17:
if(p.getSkills().getLevelForXp(5) < 89) {
p.sm("You need 89 Prayer to activate Wrath.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.Wrath == false) {
p.DeflectRange = false;
p.DeflectMelee = false;
p.DeflectMagic = false;
p.Soulsplit = false;

p.Wrath = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.Wrath = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}
break;
case 18:
if(p.getSkills().getLevelForXp(5) < 92) {
p.sm("You need 92 Prayer to activate Soulsplit.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.Soulsplit == false) {
p.DeflectRange = false;
p.DeflectMelee = false;
p.Wrath = false;
p.DeflectMagic = false;

p.Soulsplit = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.Soulsplit = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}

break;

case 19:
if(p.getSkills().getLevelForXp(5) < 95) {
p.sm("You need 95 Prayer to activate Turmoil.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.Turmoil == false) {
p.SapWarrior = false;
p.SapRanger = false;
p.SapMage = false;
p.SapSpirit = false;
p.LeechAttack = false;
p.LeechRange = false;
p.LeechDefence = false;
p.LeechMagic = false;
p.LeechStrength = false;
p.LeechEnergy = false;
p.SpecialAttackLeech = false;

p.Turmoil = true;
p.graphics(2226);
p.animate(12565);
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.Turmoil = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}

break;
}
} else {
switch(PrayerButton) {
case 0:
if(p.getSkills().getLevelForXp(5) < 1) {
p.sm("You need 1 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.THICKSKIN == false) {
//DEF
p.ROCKSKIN = false;
p.STEELSKIN = false;

p.PIETY = false;
p.CHILVALRY = false;

p.THICKSKIN = true;
PrayerOn(p);
}else{
p.THICKSKIN = false;
PrayerConfig(p);
}
break;
case 1:
if(p.getSkills().getLevelForXp(5) < 4) {
p.sm("You need 4 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.BURSTOFSTRENGHT == false) {
//STR
p.SUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.BURSTOFSTRENGHT = true;
PrayerOn(p);
}else{
p.BURSTOFSTRENGHT = false;
PrayerConfig(p);
}
break;
case 2:
if(p.getSkills().getLevelForXp(5) < 7) {
p.sm("You need 7 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.CLARITYOFTHOUGHT == false) {
//ATT
p.IMPROVEDREFLEXES = false;
p.INCREDIBLEREFLEXES = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.CLARITYOFTHOUGHT = true;
PrayerOn(p);
}else{
p.CLARITYOFTHOUGHT = false;
PrayerConfig(p);
}
break;
case 3:
if(p.getSkills().getLevelForXp(5) < 8) {
p.sm("You need 8 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.SHARPEYE == false) {
//ATT
p.CLARITYOFTHOUGHT = false;
p.IMPROVEDREFLEXES = false;
p.INCREDIBLEREFLEXES = false;
//STR
p.BURSTOFSTRENGHT = false;
p.SUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.SHARPEYE = true;
PrayerOn(p);
}else{
p.SHARPEYE = false;
PrayerConfig(p);
}
break;
case 4:
if(p.getSkills().getLevelForXp(5) < 9) {
p.sm("You need 9 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.MYSTICWILL == false) {
//ATT
p.CLARITYOFTHOUGHT = false;
p.IMPROVEDREFLEXES = false;
p.INCREDIBLEREFLEXES = false;
//STR
p.BURSTOFSTRENGHT = false;
p.SUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.MYSTICWILL = true;
PrayerOn(p);
}else{
p.MYSTICWILL = false;
PrayerConfig(p);
}
break;
case 5:
if(p.getSkills().getLevelForXp(5) < 10) {
p.sm("You need 10 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.ROCKSKIN == false) {
//DEF
p.THICKSKIN = false;
p.STEELSKIN = false;

p.PIETY = false;
p.CHILVALRY = false;

p.ROCKSKIN = true;
PrayerOn(p);
}else{
p.ROCKSKIN = false;
PrayerConfig(p);
}
break;
case 6:
if(p.getSkills().getLevelForXp(5) < 13) {
p.sm("You need 13 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.SUPERHUMANSTRENGHT == false) {
//STR
p.BURSTOFSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.SUPERHUMANSTRENGHT = true;
PrayerOn(p);
}else{
p.SUPERHUMANSTRENGHT = false;
PrayerConfig(p);
}
break;
case 7:
if(p.getSkills().getLevelForXp(5) < 16) {
p.sm("You need 16 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.IMPROVEDREFLEXES == false) {
//ATT
p.CLARITYOFTHOUGHT = false;
p.INCREDIBLEREFLEXES = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.IMPROVEDREFLEXES = true;
PrayerOn(p);
}else{
p.IMPROVEDREFLEXES = false;
PrayerConfig(p);
}
break;
case 8:
if(p.getSkills().getLevelForXp(5) < 19) {
p.sm("You need 19 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.RAPIDRESTORE == false) {
p.RAPIDRESTORE = true;
PrayerOn(p);
}else{
p.RAPIDRESTORE = false;
PrayerConfig(p);
}
break;
case 9:
if(p.getSkills().getLevelForXp(5) < 22) {
p.sm("You need 22 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.RAPIDHEAL == false) {
p.RAPIDHEAL = true;
PrayerOn(p);
}else{
p.RAPIDHEAL = false;
PrayerConfig(p);
}
break;
case 10:
if(p.getSkills().getLevelForXp(5) < 25) {
p.sm("You need 25 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.PROTECTITEM == false) {
p.PROTECTITEM = true;
PrayerOn(p);
}else{
p.PROTECTITEM = false;
PrayerConfig(p);
}
break;
case 11:
if(p.getSkills().getLevelForXp(5) < 26) {
p.sm("You need 26 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.HAWKEYE == false) {
//ATT
p.CLARITYOFTHOUGHT = false;
p.IMPROVEDREFLEXES = false;
p.INCREDIBLEREFLEXES = false;
//STR
p.BURSTOFSTRENGHT = false;
p.SUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.HAWKEYE = true;
PrayerOn(p);
}else{
p.HAWKEYE = false;
PrayerConfig(p);
}
break;
case 12:
if(p.getSkills().getLevelForXp(5) < 27) {
p.sm("You need 27 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.MYSTICLORE == false) {
//ATT
p.CLARITYOFTHOUGHT = false;
p.IMPROVEDREFLEXES = false;
p.INCREDIBLEREFLEXES = false;
//STR
p.BURSTOFSTRENGHT = false;
p.SUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.MYSTICLORE = true;
PrayerOn(p);
}else{
p.MYSTICLORE = false;
PrayerConfig(p);
}
break;
case 13:
if(p.getSkills().getLevelForXp(5) < 28) {
p.sm("You need 28 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.STEELSKIN == false) {
//DEF
p.THICKSKIN = false;
p.ROCKSKIN = false;

p.PIETY = false;
p.CHILVALRY = false;

p.STEELSKIN = true;
PrayerOn(p);
}else{
p.STEELSKIN = false;
PrayerConfig(p);
}
break;
case 14:
if(p.getSkills().getLevelForXp(5) < 31) {
p.sm("You need 31 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.ULTIMATESTRENGHT == false) {
//STR
p.BURSTOFSTRENGHT = false;
p.SUPERHUMANSTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.ULTIMATESTRENGHT = true;
PrayerOn(p);
}else{
p.ULTIMATESTRENGHT = false;
PrayerConfig(p);
}
break;
case 15:
if(p.getSkills().getLevelForXp(5) < 34) {
p.sm("You need 34 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.INCREDIBLEREFLEXES == false) {

//ATT
p.CLARITYOFTHOUGHT = false;
p.IMPROVEDREFLEXES = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.INCREDIBLEREFLEXES = true;
PrayerOn(p);
}else{
p.INCREDIBLEREFLEXES = false;
PrayerConfig(p);
}

break;


case 16:
if(p.getSkills().getLevelForXp(5) < 35) {
p.sm("You need 35 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.PROTECTFROMSUMMONING == false) {
p.PROTECTFROMSUMMONING = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.PROTECTFROMSUMMONING = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}

break;


case 17:
if(p.getSkills().getLevelForXp(5) < 37) {
p.sm("You need 37 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.PROTECTFROMMAGIC == false) {
p.PROTECTFROMMISSELES = false;
p.PROTECTFROMMELEE = false;

p.RETRIBUTION = false;
p.REDEMPTION = false;
p.SMITE = false;

p.PROTECTFROMMAGIC = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.PROTECTFROMMAGIC = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}

break;


case 18:
if(p.getSkills().getLevelForXp(5) < 40) {
p.sm("You need 40 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.PROTECTFROMMISSELES == false) {
p.PROTECTFROMMAGIC = false;
p.PROTECTFROMMELEE = false;

p.RETRIBUTION = false;
p.REDEMPTION = false;
p.SMITE = false;

p.PROTECTFROMMISSELES = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.PROTECTFROMMISSELES = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}

break;


case 19:
if(p.getSkills().getLevelForXp(5) < 43) {
p.sm("You need 43 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.PROTECTFROMMELEE == false) {
p.PROTECTFROMMAGIC = false;
p.PROTECTFROMMISSELES = false;

p.RETRIBUTION = false;
p.REDEMPTION = false;
p.SMITE = false;

p.PROTECTFROMMELEE = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.PROTECTFROMMELEE = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}

break;


case 20: //eagle eye
if(p.getSkills().getLevelForXp(5) < 44) {
p.sm("You need 44 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.EAGLEEYE == false) {
//ATT
p.CLARITYOFTHOUGHT = false;
p.IMPROVEDREFLEXES = false;
p.INCREDIBLEREFLEXES = false;
//STR
p.BURSTOFSTRENGHT = false;
p.SUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.EAGLEEYE = true;
PrayerOn(p);
}else{
p.EAGLEEYE = false;
PrayerConfig(p);
}

break;



case 21:
if(p.getSkills().getLevelForXp(5) < 45) {
p.sm("You need 45 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.MYSTICMIGHT == false) {
//ATT
p.CLARITYOFTHOUGHT = false;
p.IMPROVEDREFLEXES = false;
p.INCREDIBLEREFLEXES = false;
//STR
p.BURSTOFSTRENGHT = false;
p.SUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;
p.CHILVALRY = false;

p.MYSTICMIGHT = true;
PrayerOn(p);
}else{
p.MYSTICMIGHT = false;
PrayerConfig(p);
}

break;


case 22: //retribution
if(p.getSkills().getLevelForXp(5) < 46) {
p.sm("You need 46 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.RETRIBUTION == false) {
p.PROTECTFROMMAGIC = false;
p.PROTECTFROMMISSELES = false;
p.PROTECTFROMMELEE = false;

p.REDEMPTION = false;
p.SMITE = false;

p.RETRIBUTION = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.RETRIBUTION = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}

break;


case 23: //redemption
if(p.getSkills().getLevelForXp(5) < 49) {
p.sm("You need 49 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.REDEMPTION == false) {
p.PROTECTFROMMAGIC = false;
p.PROTECTFROMMISSELES = false;
p.PROTECTFROMMELEE = false;

p.RETRIBUTION = false;
p.SMITE = false;

p.REDEMPTION = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.REDEMPTION = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}

break;


case 24: //smite
if(p.getSkills().getLevelForXp(5) < 52) {
p.sm("You need 52 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.SMITE == false) {
p.PROTECTFROMMAGIC = false;
p.PROTECTFROMMISSELES = false;
p.PROTECTFROMMELEE = false;

p.RETRIBUTION = false;
p.REDEMPTION = false;

p.SMITE = true;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerOn(p);
}else{
p.SMITE = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
PrayerConfig(p);
}

break;


case 25: //CHILVALRY
if(p.getSkills().getLevelForXp(5) < 60) {
p.sm("You need 60 Prayer to activate this.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
if(p.CHILVALRY == false) {
//DEF
p.THICKSKIN = false;
p.ROCKSKIN = false;
p.STEELSKIN = false;
//ATT
p.CLARITYOFTHOUGHT = false;
p.IMPROVEDREFLEXES = false;
p.INCREDIBLEREFLEXES = false;
//STR
p.BURSTOFSTRENGHT = false;
p.SUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.PIETY = false;

p.CHILVALRY = true;
PrayerOn(p);
}else{
p.CHILVALRY = false;
PrayerConfig(p);
}

break;


case 26:
if(p.getSkills().getLevelForXp(5) < 70) {
p.sm("You need 70 Prayer to activate Piety.");
return;
}
if(p.getSkills().getLevel(5) == 0) {
p.sm("Please recharge your prayer at the Lumbridge Church.");
return;
}
p.graphics(2115);
p.animate(7660);
if(p.PIETY == false) { //PIETY
//DEF
p.THICKSKIN = false;
p.ROCKSKIN = false;
p.STEELSKIN = false;
//ATT
p.CLARITYOFTHOUGHT = false;
p.IMPROVEDREFLEXES = false;
p.INCREDIBLEREFLEXES = false;
//STR
p.BURSTOFSTRENGHT = false;
p.SUPERHUMANSTRENGHT = false;
p.ULTIMATESTRENGHT = false;
//MAGIC
p.MYSTICWILL = false;
p.MYSTICLORE = false;
p.MYSTICMIGHT = false;
//RANGE
p.SHARPEYE = false;
p.HAWKEYE = false;
p.EAGLEEYE = false;

p.CHILVALRY = false;

p.PIETY = true;
PrayerOn(p);
}else{
p.PIETY = false;
PrayerConfig(p);
}

break;



}
}

}
public void PrayerOn(Player p) {

p.PrayerON = true;
PrayerConfig(p);
//p.getActionSender().dunno(168,5);
p.getActionSender().dunno(182,1);
p.getActionSender().dunno(695,0);

}
public void PrayerOff(Player p) {
p.THICKSKIN = false;
p.BURSTOFSTRENGHT = false;
p.CLARITYOFTHOUGHT = false;
p.SHARPEYE = false;
p.MYSTICWILL = false;
p.ROCKSKIN = false;
p.SUPERHUMANSTRENGHT = false;
p.IMPROVEDREFLEXES = false;
p.RAPIDRESTORE = false;
p.RAPIDHEAL = false;
p.PROTECTITEM = false;
p.HAWKEYE = false;
p.MYSTICLORE = false;
p.STEELSKIN = false;
p.ULTIMATESTRENGHT = false;
p.INCREDIBLEREFLEXES = false;
p.PROTECTFROMSUMMONING = false;
p.PROTECTFROMMAGIC = false;
p.PROTECTFROMMISSELES = false;
p.PROTECTFROMMELEE = false;
p.EAGLEEYE = false;
p.MYSTICMIGHT = false;
p.RETRIBUTION = false;
p.REDEMPTION = false;
p.SMITE = false;
p.CHILVALRY = false;
p.PIETY = false;
//p.getActionSender().dunno(168,5);
p.getActionSender().sendConfig(1395, 0);
p.getActionSender().sendConfig(1396, 0);
p.getActionSender().sendConfig(173, 1);
p.getActionSender().dunno(182,0);
p.getActionSender().dunno(181,0);
p.getActionSender().dunno(695,0);
p.PrayerON = false;
p.getHeadIcons().getPrayerIcon(p);
p.getUpdateFlags().setAppearanceUpdateRequired(tru e);
p.drainRate = 0;
}


public void QuickPrayerConfig(Player pl) {
int drainRate = 0;
if(pl.QuickTHICKSKIN == true)
drainRate += 1;
if(pl.QuickBURSTOFSTRENGHT == true)
drainRate += 2;
if(pl.QuickCLARITYOFTHOUGHT == true)
drainRate += 4;
if(pl.QuickSHARPEYE == true)
drainRate += 262144;
if(pl.QuickMYSTICWILL == true)
drainRate += 524288;
if(pl.QuickROCKSKIN == true)
drainRate += 8;
if(pl.QuickSUPERHUMANSTRENGHT == true)
drainRate += 16;
if(pl.QuickIMPROVEDREFLEXES == true)
drainRate += 32;
if(pl.QuickRAPIDRESTORE == true)
drainRate += 64;
if(pl.QuickRAPIDHEAL == true)
drainRate += 128;
if(pl.QuickPROTECTITEM == true)
drainRate += 256;
if(pl.QuickHAWKEYE == true)
drainRate += 1048576;
if(pl.QuickMYSTICLORE == true)
drainRate += 2097152;
if(pl.QuickSTEELSKIN == true)
drainRate += 512;
if(pl.QuickULTIMATESTRENGHT == true)
drainRate += 1024;
if(pl.QuickINCREDIBLEREFLEXES == true)
drainRate += 2048;
if(pl.QuickPROTECTFROMSUMMONING == true)
pl.drainRate += 16777216;
if(pl.QuickPROTECTFROMMAGIC == true)
drainRate += 4096;
if(pl.QuickPROTECTFROMMISSELES == true)
pl.drainRate += 8192;
if(pl.QuickPROTECTFROMMELEE == true)
drainRate += 16384;
if(pl.QuickEAGLEEYE == true)
drainRate += 4194304;
if(pl.QuickMYSTICMIGHT == true)
drainRate += 8388608;
if(pl.QuickRETRIBUTION == true)
drainRate += 32768;
if(pl.QuickREDEMPTION == true)
drainRate += 65536;
if(pl.QuickSMITE == true)
drainRate += 131072;
if(pl.QuickCHILVALRY == true)
drainRate += 33554432;
if(pl.QuickPIETY == true)
drainRate += 67108864;
pl.getActionSender().sendConfig(1397, drainRate);
}

public void PrayerConfig(Player pl) {
int q = 0;
pl.drainRate = 0;
if(pl.THICKSKIN == true) {
q = 1;
pl.drainRate += 3;
}
else if(pl.ProtectItem == true) {
q = 1;
pl.drainRate += 3;
}
int w = 0;
if(pl.BURSTOFSTRENGHT == true) {
w = 2;
pl.drainRate += 4;
}
else if(pl.SapWarrior == true) {
w = 2;
pl.drainRate += 4;
}
int e = 0;
if(pl.CLARITYOFTHOUGHT == true) {
e = 4;
pl.drainRate += 5;
}
else if(pl.SapRanger == true) {
e = 4;
pl.drainRate += 5;
}
int r = 0;
if(pl.SHARPEYE == true) {
r = 262144;
pl.drainRate += 6;
}
else if(pl.SapMage == true) {
r = 262144;
pl.drainRate += 6;
}
int t = 0;
if(pl.MYSTICWILL == true) {
t = 524288;
pl.drainRate += 7;
}
else if(pl.SapSpirit == true) {
t = 524288;
pl.drainRate += 7;
}
int y = 0;
if(pl.ROCKSKIN == true) {
y = 8;
pl.drainRate += 8;
}
else if(pl.Berserker == true) {
y = 8;
pl.drainRate += 8;
}
int u = 0;
if(pl.SUPERHUMANSTRENGHT == true) {
u = 16;
pl.drainRate += 9;
}
else if(pl.DeflectSummoning == true) {
u = 16;
pl.drainRate += 9;
}
int i = 0;
if(pl.IMPROVEDREFLEXES == true) {
i = 32;
pl.drainRate += 10;
}
else if(pl.DeflectMagic == true) {
i = 32;
pl.drainRate += 10;
}
int o = 0;
if(pl.RAPIDRESTORE == true) {
o = 64;
pl.drainRate += 6;
}
else if(pl.DeflectRange == true) {
o = 64;
pl.drainRate += 6;
}
int p = 0;
if(pl.RAPIDHEAL == true) {
p = 128;
pl.drainRate += 7;
}
else if(pl.DeflectMelee == true) {
p = 128;
pl.drainRate += 7;
}
int a = 0;
if(pl.PROTECTITEM == true) {
a = 256;
pl.drainRate += 6;
}
else if(pl.LeechAttack == true) {
a = 256;
pl.drainRate += 6;
}
int s = 0;
if(pl.HAWKEYE == true) {
s = 1048576;
pl.drainRate += 12;
}
else if(pl.LeechRange == true) {
s = 1048576;
pl.drainRate += 12;
}

int d = 0;
if(pl.MYSTICLORE == true) {
d = 2097152;
pl.drainRate += 13;
}
else if(pl.LeechMagic == true) {
d = 2097152;
pl.drainRate += 13;
}
int f = 0;
if(pl.STEELSKIN == true) {
f = 512;
pl.drainRate += 14;
}
else if(pl.LeechDefence == true) {
f = 512;
pl.drainRate += 14;
}
int g = 0;
if(pl.ULTIMATESTRENGHT == true) {
g = 1024;
pl.drainRate += 15;
}
else if(pl.LeechStrength == true) {
g = 1024;
pl.drainRate += 15;
}
int h = 0;
if(pl.INCREDIBLEREFLEXES == true) {
h = 2048;
pl.drainRate += 16;
}
else if(pl.LeechEnergy == true) {
h = 2048;
pl.drainRate += 16;
}
int j = 0;
if(pl.PROTECTFROMSUMMONING == true) {
j = 16777216;
pl.drainRate += 17;
}
else if(pl.SpecialAttackLeech == true) {
j = 16777216;
pl.drainRate += 17;
}
int k = 0;
if(pl.PROTECTFROMMAGIC == true) {
k = 4096;
pl.drainRate += 18;
}
else if(pl.Wrath == true) {
k = 4096;
pl.drainRate += 18;
}
int l = 0;
if(pl.PROTECTFROMMISSELES == true) {
l = 8192;
pl.drainRate += 19;
}
else if(pl.Soulsplit == true) {
l = 8192;
pl.drainRate += 19;
}
int ç = 0;
if(pl.PROTECTFROMMELEE == true) {
ç = 16384;
pl.drainRate += 15;
}
else if(pl.Turmoil == true) {
ç = 16384;
pl.drainRate += 15;
}
int z = 0;
if(pl.EAGLEEYE == true) {
z = 4194304;
pl.drainRate += 21;
}
int x = 0;
if(pl.MYSTICMIGHT == true) {
x = 8388608;
pl.drainRate += 22;
}
int c = 0;
if(pl.RETRIBUTION == true) {
c = 32768;
pl.drainRate += 23;
}
int v = 0;
if(pl.REDEMPTION == true) {
v = 65536;
pl.drainRate += 24;
}
int b = 0;
if(pl.SMITE == true) {
b = 131072;
pl.drainRate += 15;
}
int n = 0;
if(pl.CHILVALRY == true) {
n = 33554432;
pl.drainRate += 26;
}
int m = 0;
if(pl.PIETY == true) {
m = 67108864;
pl.drainRate += 28;
}
int PrayerConfig = q+w+e+r+t+y+u+i+o+p+a+s+d+f+g+h+j+k+l+ç+z+x+c+v+b+ n+m;
pl.getActionSender().sendConfig(1395, PrayerConfig);
if (PrayerConfig == 0) {
PrayerOff(pl);
}
}
}


Step 3
Replace your headicons.java with mine.

package com.rs2hd.model;

import com.rs2hd.content.SkullUpdateEvent;

/**
* Manages head icons.
* @author Graham
*
*/
// TODO needs recoding
// TODO !!IMPORTANT!! SAVE THIS SOMEHOW! (e.g. skullTimeRemaining???)
// TODO prayer icon support
public class HeadIcons {

private boolean isSkulled = false;
private int skullCyclesRemaining = 0;

public int getPkIcon() {
return isSkulled? 0 : -1;
}
public int getPrayerIcon(Player p) {
if (p.PROTECTFROMMELEE == true) {
return 0;
}
if (p.PROTECTFROMMISSELES == true) {
return 1;
}
if (p.PROTECTFROMMAGIC == true) {
return 2;
}
if (p.SMITE == true) {
return 4;
}
if (p.REDEMPTION == true) {
return 5;
}
if (p.RETRIBUTION == true) {
return 3;
}
if (p.DeflectRange == true) {
return 13;
}
if (p.DeflectMagic == true) {
return 14;
}
if (p.DeflectSummoning == true) {
return 15;
}
if (p.DeflectMelee == true) {
return 12;
}
if (p.SpecialAttackLeech == true) {
return 18;
}
if (p.Wrath == true) {
return 19;
}
if (p.Soulsplit == true) {
return 20;
}
return -1;
}


public boolean isSkulled() {
return isSkulled;
}

public void setSkulled(boolean b) {
isSkulled = b;
if(isSkulled == false) {
skullCyclesRemaining = 0;
} else {
skullCyclesRemaining = 900000 / SkullUpdateEvent.TIME;;
}
}

public void renewSkull() {
skullCyclesRemaining = 900000 / SkullUpdateEvent.TIME;
}

public void decCycle() {
skullCyclesRemaining--;
}

public boolean removeSkulls() {
if(skullCyclesRemaining <= 0 && isSkulled) {
isSkulled = false;
skullCyclesRemaining = 0;
return true;
}
return false;
}

}

Step 4
Add this to commandspackethandler.java! (Credits to Pot Up even though this is easy)

if (cmd[0].equals("::curses")) {
if(cmd[1].equals("true")) {
player.sm("You change to Ancient Curses!");
player.curses = true;
player.getActionSender().sendConfig(1086, 1);
} else if (cmd[1].equals("false")) {
player.getActionSender().sendConfig(1086, 0);
player.curses = false;
player.sm("You change to Normal Prayers!");
}

}

Now to Explain!

if(p.curses) {
This checks to see if curses = true, and if it is it activates ancient curses!
If not, it uses normal prayers cases.

p.getHeadIcons().getPrayerIcon(p);
This checks for head icon and retrieves its.

Now im going to use Turmoil's case as an example

p.Turmoil = true;
p.graphics(2226);
p.animate(12565);
This basically turns turmoil on and performs gfx 2226 and animation 12565.
Well that's basically it! Have fun with your curses base!
Noszscape Source
If you are using Noszscape as a base please replace every
dunno with
sendBConfig! Otherwise you will get an error!

Edit: Forgot to add that you need to add combat formulas yourself, and also post any errors you may receive.

Requested Image
Only the registered members can see the link.

vanweele
January 31st, 2011, 00:31
good job bro
well done

Lukedawesome
January 31st, 2011, 00:39
what a baws

colten804
January 31st, 2011, 00:40
I messed up the first step you add those to player.java not prayer.java :). Sorry

Trey
January 31st, 2011, 00:42
Learn naming conventions please. You can also shorten your code like 500%.

colten804
January 31st, 2011, 00:44
Yes i know, but this is just a base for noobs, trust me my real version is much more clean and efficient :)

Lukedawesome
January 31st, 2011, 00:48
problem logging in now...? lol or is it just me...

colten804
January 31st, 2011, 00:51
There shouldnt be a problem logging in. Make sure its 562 loading 602, and check your character files is my suggestion. Idk what problem is for you tbh. Also make sure your imports are correct since some servers are for ex. on emberscape its "emily.rs2hd"

Lukedawesome
January 31st, 2011, 00:53
ummmm...yea its all correct, it like, does major lagg logging in, and then it eventually goes to the screen but its like, frozen, then it black screens

vanweele
January 31st, 2011, 00:54
edited player.java may need to make a new acc, i'm going to make an alter to pray on instead of a cammand, i'll post later in snippets.

EvolvedBlitz
January 31st, 2011, 01:00
Picture please?

Silent Pjer
January 31st, 2011, 01:32
What is the Dunno part for? Thats giving me an error soooo. Do i have to replace it with whats supposed to go there?

colten804
January 31st, 2011, 01:43
If you are using noszscape source then use sendBConfig instead of dunno. Regular 562's have dunno instead of sendBConfig

vanweele
January 31st, 2011, 01:43
nopthing happens when i do the cammand:/

colten804
January 31st, 2011, 01:46
use "curses true" or "curses false" For some reason on the 562 sometimes you have to click a normal prayer and the ancient curses will pop up. Idk why that happens tbh.

vanweele
January 31st, 2011, 01:52
but i typed it and nothing happend, i used the developer consule.
using the ` button.
:/

vanweele
January 31st, 2011, 01:57
im worried its soemthing to do with the code, like other codes. not the command.
whys your code

player.curses = true;
player.curses = false;

and pot ups

player.isOnCurses = 1;
player.isOnCurses = 0;

pot ups command worked when i used his guide, now i used your guide with a fresh source and im confused? the command doesnt even say malformed error or w/e like it does you you miss typee a command

Cart
January 31st, 2011, 02:21
im worried its soemthing to do with the code, like other codes. not the command.
whys your code

player.curses = true;
player.curses = false;

and pot ups

player.isOnCurses = 1;
player.isOnCurses = 0;

pot ups command worked when i used his guide, now i used your guide with a fresh source and im confused? the command doesnt even say malformed error or w/e like it does you you miss typee a command

Then that Obviously means two things:

A) he did this wrong.
B) You did it wrong.

vanweele
January 31st, 2011, 02:26
Then that Obviously means two things:

A) he did this wrong.
B) You did it wrong.

i got it working, it seems to only work if i add

public int isOnCurses = 0;
public boolean Turmoil = false;

under

public class Player extends Entity {
and remove it from
/*
*prayer
*/

with all the public transients.
and then when i click on turmoil it's a protect from meelee icon.
so idk.

Cart
January 31st, 2011, 02:28
i got it working, it seems to only work if i add

public int isOnCurses = 0;
public boolean Turmoil = false;

under

public class Player extends Entity {
and remove it from
/*
*prayer
*/

with all the public transients.
and then when i click on turmoil it's a protect from meelee icon.
so idk.
Wrong Headicons.

vanweele
January 31st, 2011, 02:30
where and how do i get the headicons for ancients?

`Conner
January 31st, 2011, 02:32
There are no headicons for ancient magicks...

Cart
January 31st, 2011, 02:37
There are no headicons for ancient magicks...

I think he meant for the Curse, loool.

vanweele
January 31st, 2011, 02:39
i clearly meant curses you idiot.
are you that dumb and needy to spam? jeez.

`Conner
January 31st, 2011, 02:47
I was trolling.

Just test them out, they're (I think) single-digit numbers so just add a command to send a head icon to a player and try different numbers out

vanweele
January 31st, 2011, 02:56
well they are added it looks like in headicons, look at colts tut, and tell me? :s they don't seem to be popping up, curses are so confusing.

Drain
January 31st, 2011, 03:23
Thanks for this, pretty sick seeing someone actually posting something like this.

Emily
January 31st, 2011, 03:39
These...



public boolean curses = false;
public transient boolean ProtectItem = false;
public transient boolean SapWarrior = false;
public transient boolean SapRanger = false;
public transient boolean SapMage = false;
public transient boolean SapSpirit = false;
public transient boolean Berserker = false;
public transient boolean DeflectSummoning = false;
public transient boolean DeflectRange = false;
public transient boolean DeflectMagic = false;
public transient boolean DeflectMelee = false;
public transient boolean LeechAttack = false;
public transient boolean LeechRange = false;
public transient boolean LeechMagic = false;
public transient boolean LeechDefence = false;
public transient boolean LeechStrength = false;
public transient boolean LeechEnergy = false;
public transient boolean SpecialAttackLeech = false;
public transient boolean Wrath = false;
public transient boolean Turmoil = false;
public transient boolean Soulsplit = false;
public boolean QuickProtectItem = false;
public boolean QuickSapWarrior = false;
public boolean QuickSapRanger = false;
public boolean QuickSapMage = false;
public boolean QuickSapSpirit = false;
public boolean QuickBerserker = false;
public boolean QuickDeflectSummoning = false;
public boolean QuickDeflectRange = false;
public boolean QuickDeflectMagic = false;
public boolean QuickDeflectMelee = false;
public boolean QuickLeechAttack = false;
public boolean QuickLeechRange = false;
public boolean QuickLeechMagic = false;
public boolean QuickLeechDefence = false;
public boolean QuickLeechEnergy = false;
public boolean QuickLeechStrength = false;
public boolean QuickSpecialAttackLeech = false;
public boolean QuickWrath = false;
public boolean QuickTurmoil = false;
public boolean QuickSoulsplit = false;


Should be capitalized, they are constants.

Trey
January 31st, 2011, 03:40
These...



public boolean curses = false;
public transient boolean ProtectItem = false;
public transient boolean SapWarrior = false;
public transient boolean SapRanger = false;
public transient boolean SapMage = false;
public transient boolean SapSpirit = false;
public transient boolean Berserker = false;
public transient boolean DeflectSummoning = false;
public transient boolean DeflectRange = false;
public transient boolean DeflectMagic = false;
public transient boolean DeflectMelee = false;
public transient boolean LeechAttack = false;
public transient boolean LeechRange = false;
public transient boolean LeechMagic = false;
public transient boolean LeechDefence = false;
public transient boolean LeechStrength = false;
public transient boolean LeechEnergy = false;
public transient boolean SpecialAttackLeech = false;
public transient boolean Wrath = false;
public transient boolean Turmoil = false;
public transient boolean Soulsplit = false;
public boolean QuickProtectItem = false;
public boolean QuickSapWarrior = false;
public boolean QuickSapRanger = false;
public boolean QuickSapMage = false;
public boolean QuickSapSpirit = false;
public boolean QuickBerserker = false;
public boolean QuickDeflectSummoning = false;
public boolean QuickDeflectRange = false;
public boolean QuickDeflectMagic = false;
public boolean QuickDeflectMelee = false;
public boolean QuickLeechAttack = false;
public boolean QuickLeechRange = false;
public boolean QuickLeechMagic = false;
public boolean QuickLeechDefence = false;
public boolean QuickLeechEnergy = false;
public boolean QuickLeechStrength = false;
public boolean QuickSpecialAttackLeech = false;
public boolean QuickWrath = false;
public boolean QuickTurmoil = false;
public boolean QuickSoulsplit = false;


Should be capitalized, they are constants.

They're not constant, they're not constants.

Steve
January 31st, 2011, 03:42
These...



public boolean curses = false;
public transient boolean ProtectItem = false;
public transient boolean SapWarrior = false;
public transient boolean SapRanger = false;
public transient boolean SapMage = false;
public transient boolean SapSpirit = false;
public transient boolean Berserker = false;
public transient boolean DeflectSummoning = false;
public transient boolean DeflectRange = false;
public transient boolean DeflectMagic = false;
public transient boolean DeflectMelee = false;
public transient boolean LeechAttack = false;
public transient boolean LeechRange = false;
public transient boolean LeechMagic = false;
public transient boolean LeechDefence = false;
public transient boolean LeechStrength = false;
public transient boolean LeechEnergy = false;
public transient boolean SpecialAttackLeech = false;
public transient boolean Wrath = false;
public transient boolean Turmoil = false;
public transient boolean Soulsplit = false;
public boolean QuickProtectItem = false;
public boolean QuickSapWarrior = false;
public boolean QuickSapRanger = false;
public boolean QuickSapMage = false;
public boolean QuickSapSpirit = false;
public boolean QuickBerserker = false;
public boolean QuickDeflectSummoning = false;
public boolean QuickDeflectRange = false;
public boolean QuickDeflectMagic = false;
public boolean QuickDeflectMelee = false;
public boolean QuickLeechAttack = false;
public boolean QuickLeechRange = false;
public boolean QuickLeechMagic = false;
public boolean QuickLeechDefence = false;
public boolean QuickLeechEnergy = false;
public boolean QuickLeechStrength = false;
public boolean QuickSpecialAttackLeech = false;
public boolean QuickWrath = false;
public boolean QuickTurmoil = false;
public boolean QuickSoulsplit = false;


Should be capitalized, they are constants.

No they aren't, I wouldn't think they would be as they are probably used for checking if a player is on that prayer, which means they are bound to change, constants also have the final modifier.

`Conner
January 31st, 2011, 03:52
These...



public boolean curses = false;
public transient boolean ProtectItem = false;
public transient boolean SapWarrior = false;
public transient boolean SapRanger = false;
public transient boolean SapMage = false;
public transient boolean SapSpirit = false;
public transient boolean Berserker = false;
public transient boolean DeflectSummoning = false;
public transient boolean DeflectRange = false;
public transient boolean DeflectMagic = false;
public transient boolean DeflectMelee = false;
public transient boolean LeechAttack = false;
public transient boolean LeechRange = false;
public transient boolean LeechMagic = false;
public transient boolean LeechDefence = false;
public transient boolean LeechStrength = false;
public transient boolean LeechEnergy = false;
public transient boolean SpecialAttackLeech = false;
public transient boolean Wrath = false;
public transient boolean Turmoil = false;
public transient boolean Soulsplit = false;
public boolean QuickProtectItem = false;
public boolean QuickSapWarrior = false;
public boolean QuickSapRanger = false;
public boolean QuickSapMage = false;
public boolean QuickSapSpirit = false;
public boolean QuickBerserker = false;
public boolean QuickDeflectSummoning = false;
public boolean QuickDeflectRange = false;
public boolean QuickDeflectMagic = false;
public boolean QuickDeflectMelee = false;
public boolean QuickLeechAttack = false;
public boolean QuickLeechRange = false;
public boolean QuickLeechMagic = false;
public boolean QuickLeechDefence = false;
public boolean QuickLeechEnergy = false;
public boolean QuickLeechStrength = false;
public boolean QuickSpecialAttackLeech = false;
public boolean QuickWrath = false;
public boolean QuickTurmoil = false;
public boolean QuickSoulsplit = false;


Should be capitalized, they are constants.

Are you high?

Not to mention, he shouldnt be making any variables for that, there should be one class for a CurseDef containing all its information: gfx id, anim id, headicon id, name, state (in enum form, I prefer), etc but he didn't for some reason so its sloppy as fuck

Emily
January 31st, 2011, 03:55
Are you high?


A tad.

SolitudeX
January 31st, 2011, 04:19
The curses command won't work for me..

xJames
January 31st, 2011, 05:57
Someone tries a seconds time, still a failure. Wonder what the third will look like.

crezzy
January 31st, 2011, 07:37
This can be done with way way way less code but at least its a better start than pot up, good job I guess.

xJames
January 31st, 2011, 07:57
This can be done with way way way less code but at least its a better start than pot up, good job I guess.
Mk since you say it can, why don't you do it? Go flap your mouth somewhere else.

kill3r
January 31st, 2011, 09:07
Yes i know, but this is just a base for noobs, trust me my real version is much more clean and efficient :)

a base for noobs?

:L your leeching a nozscape source coding easy stuff and calling other people noobs? fail

kill3r
January 31st, 2011, 09:10
also you want us to replace our whole player.java with yours?

you release if we did that it would fuck up everything. you should give the codes we need to add in not be a lazy ass and say "replace it with mine"

another fail

failcoder
January 31st, 2011, 09:28
yer good job a lot better than the last release

Lukedawesome
January 31st, 2011, 12:43
Wtf is so difficult about this tbh?? Click an interface, send a anim and gfx....? All u need to do is add bonuses

Acrylix
January 31st, 2011, 12:50
Ancient Curses aren't an interface ffs.

miniki
January 31st, 2011, 14:32
why this..?? lol.. this gives error

p.getActionSender().dunno(168,6);
its
p.getActionSender().sendBConfig(168,6);

miniki
January 31st, 2011, 14:33
Ancient Curses aren't an interface ffs.

a config.. ¬¬

Acrylix
January 31st, 2011, 14:46
why this..?? lol.. this gives error

its


.... read the whole topic.

`Conner
January 31st, 2011, 16:04
Wtf is so difficult about this tbh?? Click an interface, send a anim and gfx....? All u need to do is add bonuses

Because your kind doesn't know how to the right way.

When I make it for my 621 I'll release it as a Snippet. Idk how long it'll be till but yh

Lukedawesome
January 31st, 2011, 21:55
why this..?? lol.. this gives error

its

its sendBConfig in noszscape

vanweele
January 31st, 2011, 22:31
a config.. ¬¬

oh no. mini is here to leech this tutorial on a leeched source then he/she's going to try to sell it.

colten804
January 31st, 2011, 22:36
its sendBConfig in noszscape

If you read the tutorial you could obviously realize that.

miniki
January 31st, 2011, 22:57
oh no. mini is here to leech this tutorial on a leeched source then he/she's going to try to sell it.

I really dont need this.. "I made this", (and) I already have with the effects..

Cart
January 31st, 2011, 23:00
I really dont need this.. "I made this", (and) I already have with the effects..

You don't make anything.

colten804
January 31st, 2011, 23:01
I really dont need this.. "I made this", (and) I already have with the effects..

lol you said you bought part of this from Mystic Flow, and I know for a fact Mystic' doesnt code shit like the stuff you gave me as a "reward". You were never close to this either.

miniki
January 31st, 2011, 23:07
You don't make anything.

haha.. you cant make anything.. you only say (nosz i need ancient prayer curses and he makes..)

Cart
January 31st, 2011, 23:08
haha.. you cant make anything.. you only say (nosz i need ancient prayer curses and he makes..)

What?

Nosz doesn't even know how to make Curses.
Mystic Flow did it from him.

:fp:

vanweele
January 31st, 2011, 23:43
I really dont need this.. "I made this", (and) I already have with the effects..

you made this lmfao.
bull crappppppppppppppppppp. you leeched it off nosz, and went through the crap, and tried selling it for 50 dollars.

`Conner
February 1st, 2011, 00:25
All Miniki does is buy shit off decent programmers then sell it for more

googleeater
February 1st, 2011, 23:54
anyone want to tell me how to make deflects protect?

champ
February 4th, 2011, 12:14
kinda off topic but can u tell me headicon for skull....umm any skull will do but to be specific i want the pits winner skull

apache ah64
February 4th, 2011, 12:29
evrything here is leached from mystic flow.

`Conner
February 4th, 2011, 16:33
No....nononononononononono....

Steven doesn't write code this fucking horribly

colten804
February 6th, 2011, 22:23
evrything here is leached from mystic flow.

Wtf are you talking about? The only part of this from Mystic' Flow was the public booleans that were given to me by Miniki, which were useless. I just use the booleans to make semi-sufficient Ancient Curses. Btw I have Soulsplit coded now :)

`Conner
February 7th, 2011, 16:10
Wtf are you talking about? The only part of this from Mystic' Flow was the public booleans that were given to me by Miniki, which were useless. I just use the booleans to make semi-sufficient Ancient Curses. Btw I have Soulsplit coded now :)

Lies. This isn't semi efficient. This isn't even .1% efficient. Stop trying.

xJames
February 8th, 2011, 00:07
Lmfao, my last post was deleted. Anyways this is just horrible.

`Conner
February 8th, 2011, 16:10
this code is an example of why rsps can't evolve into something serious

Well said. Id thank you but I'm on the Mobile theme that doesn't have it :(.

Heroeswar
February 10th, 2011, 21:04
Now to Explain!
Code: (Click Here to Select All)

if(p.curses) {

This checks to see if curses = true, and if it is it activates ancient curses!
If not, it uses normal prayers cases.
Code: (Click Here to Select All)

p.getHeadIcons().getPrayerIcon(p);

This checks for head icon and retrieves its.

Where need to put this in which file

yaminub
February 13th, 2011, 23:09
^you dont.

Lukedawesome
February 13th, 2011, 23:51
^you dont.

l m a o........

titandino
February 14th, 2011, 01:33
Learn naming conventions please. You can also shorten your code like 500%.

This is all I have to say to it but otherwise, nice job.

NOBODY RELEASE THE EFFECTS PLEASE.

colten804
February 15th, 2011, 02:58
Some effecsts have already been released, such as soulsplit unfortunately. Leech prayers are somewhat released, but still.

Lmbuehrer
February 15th, 2011, 03:04
Learn naming conventions please. You can also shorten your code like 500%.

LOL 500% lolol

Vesta Main
March 15th, 2011, 01:34
This doesnt work for me, im using Noszcape source, ive change all the
Dunno to
sendBConfig, when im in game and i type ::Curses it says Internal malformed or malformed error (something like that), nothing happens when i do ::curses please help, and nice guide :)

colten804
March 17th, 2011, 00:43
Use ::curses true

dds ledg
March 21st, 2011, 18:39
Hey, No Compiling Errors but when I do the ::curses true nothing Happens....... It just says: You change to Ancient Curses! But when I click on a Prayer where a Curse would be the Client goes White... Any Idea's? Btw im using Rs2Hd and Im not a Loading 602 but if it is that how would I make it a Loading 602??? I really want these Curses!
Thanks!

tarac1
March 23rd, 2011, 00:15
:o thanks for this one thing i needed

Divine-X
March 23rd, 2011, 00:18
Hey, No Compiling Errors but when I do the ::curses true nothing Happens....... It just says: You change to Ancient Curses! But when I click on a Prayer where a Curse would be the Client goes White... Any Idea's? Btw im using Rs2Hd and Im not a Loading 602 but if it is that how would I make it a Loading 602??? I really want these Curses!
Thanks!

That's your problem most likely.

I made a tutorial on it.

dds ledg
March 23rd, 2011, 19:59
Hmm, When I followed ur Tut it gave me tons of errors and I couldnt run the server...

rubber chicken
March 24th, 2011, 17:15
Right ive added this ok. and the curses come up but when i click them i does normal prayers. E.g protect meleee..... ?????? Help please !!

dds ledg
March 25th, 2011, 17:35
Is your Server a loading 602? If its not then thats why

rubber chicken
March 25th, 2011, 17:59
yes of course my server is loading 602.

I just cant see why it wont work... but i cant click like at the bottom of curses and turn piety on. even tho its on a whole different thing.?

dds ledg
March 25th, 2011, 20:34
Dunno how to help then, Sorry

dds ledg
March 26th, 2011, 08:31
Divine-X, When I followed ur tut I got loads of Errors....

dds ledg
March 26th, 2011, 21:01
The Errors caused me not to be abale to run the server... ^^^

iNerd
March 27th, 2011, 09:53
i can code curses like that. its easy to do.

dds ledg
March 27th, 2011, 11:58
Its not the curses thats the problem, I want a 562 loading 602 server. When I followed divine-x's Tut i got loads of errors

dds ledg
March 27th, 2011, 12:53
This (Only the registered members can see the link.) is the Error I got when I followed Divine-X's Tut:

Only the registered members can see the link.

How would I fix it???

imbustedstr
April 1st, 2011, 15:58
can some1 help me with it i allways get errors at compiling please help idk what im doing!

David
April 1st, 2011, 16:29
A start means that he made the basics and you have to do the rest BY YOURSELF. I don't see how that's so hard to understand.

Barky
April 1st, 2011, 16:33
Curses are awsome tbh :p

Ivandis
April 2nd, 2011, 21:49
Where do I change the "dunno" to "sendBConfigs" I did it in prayer.java, is there another place were I have to do it?

Acrylix
April 3rd, 2011, 01:53
Change everyone of them.

Ivandis
April 3rd, 2011, 02:03
Thanks

wapie
April 8th, 2011, 10:26
This isn't necessarily the correct way to do curses but it is sufficient if you want basic head icons, "glowing" prayers, and some gfx and animations.
Noszscape Source
If you are using Noszscape as a base please replace every
dunno with
sendBConfig! Otherwise you will get an error!

Edit: Forgot to add that you need to add combat formulas yourself, and also post any errors you may receive.



Can you explain this step?
I dont know what you mean with "Replace all dunno with sendBConfig.....
Explain it better, or show some pics what you mean.

Thanks in Advance.

Yours Sincerely,
Wapie.

LmaoLmao
April 8th, 2011, 10:35
If you ARE NOT using Noszscape source, then leave this step.

If so, replace all dunnos in code to what it says EXACTLY.

wapie
April 8th, 2011, 11:54
If you ARE NOT using Noszscape source, then leave this step.

If so, replace all dunnos in code to what it says EXACTLY.

"If you are using Noszscape as a base please replace every".
Thats what he said, well, thats what I read....
And no, Im not blind.

cyrofax
May 18th, 2011, 22:42
Does the affects work in pvp and against npcs?