PDA

View Full Version : 508/525 Ancient curses, 100% switching and icons server sided.



Nathan
October 23rd, 2010, 21:18
Difficulty 1/10. just copying the code and replacing.

NOTE: You will have to change all protects to where they are now server sided. like changing pro melee. u would change all usingPrayer(19) to usingPrayer(9).

1.ActionButtons.java.

Search for case 271: replace all of case 271 with this.


/************************************************** ****************************/
/*Ancient Curses*/ /************************************************** ****************************/
case 271:
int prayer = -1;
String name = "";
if (buttonId == 5) { //Protect Item
prayer = 0;
name = "Protect Item";
}

if (prayer == 0 && p.getLevelForXP(5) < 50) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 50 to use <col=000080>"+name, "", "", "");
}
if (buttonId == 7) { //Sap Warrior
prayer = 1;
name = "Sap Warrior";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 25, 26}, prayer);
}

if (prayer == 1 && p.getLevelForXP(5) < 50) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 50 to use <col=000080>"+name, "", "", "");
}

if (buttonId == 9) { //Sap Ranger
prayer = 2;
name = "Sap Ranger";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 25, 26}, prayer);
}

if (prayer == 2 && p.getLevelForXP(5) < 52) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 52 to use <col=000080>"+name, "", "", "");
}

if (buttonId == 11) { //Sap Mage
prayer = 3;
name = "Sap Mage";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 25, 26}, prayer);
}

if (prayer == 3 && p.getLevelForXP(5) < 54) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 54 to use <col=000080>"+name, "", "", "");
}
if (buttonId == 13) { //Sap Spirit
prayer = 4;
name = "Sap Spirit";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 25, 26}, prayer);
}


if (prayer == 4 && p.getLevelForXP(5) < 56) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 56 to use <col=000080>"+name, "", "", "");
}
if (buttonId == 15) { //Berserker
prayer = 5;
name = "Berserker";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {}, prayer);
}

if (prayer == 5 && p.getLevelForXP(5) < 59) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 59 to use <col=000080>"+name, "", "", "");
}
if (buttonId == 17) { //Deflect Summoning
prayer = 6;
name = "Deflect Summoning";
if (!p.usingPrayer(prayer)) {
p.switchPrayers(new int[] {17, 18, 22, 23, 24}, prayer);
if (p.usingPrayer(7)) {
p.headIconPrayer = 10;
} else if (p.usingPrayer(8)) {
p.headIconPrayer = 9;
} else if (p.usingPrayer(9)) {
p.headIconPrayer = 8;
} else {
p.headIconPrayer = 7;
}
} else {
if (p.usingPrayer(7)) {
p.headIconPrayer = 2;
} else if (p.usingPrayer(8)) {
p.headIconPrayer = 1;
} else if (p.usingPrayer(9)) {
p.headIconPrayer = 0;
} else {
p.headIconPrayer = -1;
}
}
}

if (prayer == 6 && p.getLevelForXP(5) < 62) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 62 to use <col=000080>"+name, "", "", "");
}


if (buttonId == 19) { //Deflect Magic
prayer = 7;
name = "Deflect Magic";
if (!p.usingPrayer(prayer)) {
p.switchPrayers(new int[] {8, 9, 17, 18, 22, 23, 24}, prayer);
if (p.usingPrayer(6)) {
p.headIconPrayer = 10;
} else {
p.headIconPrayer = 2;
}
} else {
if (p.usingPrayer(6)) {
p.headIconPrayer = 7;
} else {
p.headIconPrayer = -1;
}
}
}

if (prayer == 7 && p.getLevelForXP(5) < 65) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 65 to use <col=000080>"+name, "", "", "");
}

if (buttonId == 21) { //Deflect Missiles
prayer = 8;
name = "Deflect Missiles";
if (!p.usingPrayer(prayer)) {
p.switchPrayers(new int[] {7, 9, 17, 18, 22, 23, 24}, prayer);
if (p.usingPrayer(6)) {
p.headIconPrayer = 9;
} else {
p.headIconPrayer = 1;
}
} else {
if (p.usingPrayer(6)) {
p.headIconPrayer = 7;
} else {
p.headIconPrayer = -1;
}
}
}

if (prayer == 8 && p.getLevelForXP(5) < 68) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 68 to use <col=000080>"+name, "", "", "");
}


if (buttonId == 23) { //Deflect Melee
prayer = 9;
name = "Deflect Melee";
if (!p.usingPrayer(prayer)) {
p.switchPrayers(new int[] {8, 7, 17, 18, 22, 23, 24}, prayer);
if (p.usingPrayer(6)) {
p.headIconPrayer = 8;
} else {
p.headIconPrayer = 0;
}
} else {
if (p.usingPrayer(6)) {
p.headIconPrayer = 7;
} else {
p.headIconPrayer = -1;
}
}
}

if (prayer == 9 && p.getLevelForXP(5) < 71) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 71 to use <col=000080>"+name, "", "", "");
}

if (buttonId == 25) { //Leech Attack
prayer = 10;
name = "Leech Attack";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {1, 2, 3, 4, 19}, prayer);
}

if (prayer == 10 && p.getLevelForXP(5) < 74) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 74 to use <col=000080>"+name, "", "", "");
}
if (buttonId == 27) { //Leech Range
prayer = 11;
name = "Leech Range";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {1, 2, 3, 4, 19, 20, 21, 25, 26}, prayer);
}

if (prayer == 11 && p.getLevelForXP(5) < 76) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 76 to use <col=000080>"+name, "", "", "");
}
if (buttonId == 29) { //Leech Magic
prayer = 12;
name = "Leech Magic";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {1, 2, 3, 4, 19, 20, 21, 25, 26}, prayer);
}

if (prayer == 12 && p.getLevelForXP(5) < 78) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 78 to use <col=000080>"+name, "", "", "");
}
if (buttonId == 31) { //Leech Defence
prayer = 13;
name = "Leech Defence";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {1, 2, 3, 4, 19, 25, 26}, prayer);
}

if (prayer == 13 && p.getLevelForXP(5) < 80) {

p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 80 to use <col=000080>"+name, "", "", "");

break;
}
if (buttonId == 33) { //Leech Strength
prayer = 14;
name = "Leech Strength";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {1, 2, 3, 4, 19, 20, 21, 25, 26}, prayer);
}

if (prayer == 14 && p.getLevelForXP(5) < 82) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 82 to use <col=000080>"+name, "", "", "");
}
if (buttonId == 35) { //Leech Energy
prayer = 15;
name = "Leech Energy";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {1, 2, 3, 4, 19, 20, 21, 25, 26}, prayer);
}

if (prayer == 15 && p.getLevelForXP(5) < 84) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 84 to use <col=000080>"+name, "", "", "");
}
if (buttonId == 53) { //Leech Attack
prayer = 16;
name = "Leech Attack";
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {1, 2, 3, 4, 19, 20, 21, 25, 26}, prayer);
}

if (prayer == 16 && p.getLevelForXP(5) < 86) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 86 to use <col=000080>"+name, "", "", "");
}

if (buttonId == 37) { //Wrath
prayer = 17;
name = "Wrath";
if (!p.usingPrayer(prayer)) {
p.switchPrayers(new int[] {7, 6, 8, 9, 18, 22, 23, 24}, prayer);
p.headIconPrayer = 5;
} else {
p.headIconPrayer = -1;
}
}

if (prayer == 17 && p.getLevelForXP(5) < 89) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 89 to use <col=000080>"+name, "", "", "");
break;
}

if (buttonId == 39) { // Soul Split
prayer = 18;
name = "Soul split";
if (!p.usingPrayer(prayer)) {
p.switchPrayers(new int[] {6, 7, 8, 9, 17, 22, 23, 24}, prayer);
p.headIconPrayer = 4;
} else {
p.headIconPrayer = -1;
}
}


if (buttonId == 41) { //Turmoil
prayer = 19;
name = "Turmoil";
if (!p.usingPrayer(19) && p.skillLvl[5] > 0 && p.skillLvl[1] > 69) {
p.requestAnim(725, 1);
p.requestGFX(658, 0 );
}
if (!p.usingPrayer(prayer)) p.switchPrayers(new int[] {1, 2, 3, 4, 10, 11, 12, 13, 14, 15, 16, 20, 21, 25}, prayer);
if (prayer == 19 && p.getLevelForXP(5) < 95) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 95 to use <col=000080>"+name, "", "", "");
}
}
if (!p.canPray(prayer)) {
p.headIconPrayer = -1;
if (p.getLevelForXP(5) < p.prayers[prayer][0] && p.skillLvl[5] > 0) {
}
if (prayer == 18 && p.getLevelForXP(5) < 92) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 92 to use <col=000080>"+name, "", "", "");
break;

}
break;
}

if (prayer == 19 && p.getLevelForXP(5) < 95) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Prayer</col> level of 95 to use <col=000080>"+name, "", "", "");
}
if (prayer == 19 && p.getLevelForXP(1) < 45) {
p.getActionSender().dialogue(p, -1, -1, "", 1, "You need a <col=000080>Defence</col> level of 45 to use <col=000080>"+name, "", "", "");
break;
}

p.togglePrayer(prayer, p.usingPrayer(prayer) ? 0 : 1);
if (p.usingPrayer(prayer)) {
p.prayerSounds(prayer);
} else {
p.getActionSender().addSoundEffect(p, 2663, 1, 0, 0);
}
p.updateReq = true;
p.appearanceUpdateReq = true;
break;

/************************************************** ****************************/
/*End Of Ancient Curses*/ /************************************************** ****************************/

I am not giving u my ancient curses client because icba to upload.

Result.

Only the registered members can see the link.

Defil3d ko3d
October 23rd, 2010, 21:42
Nice :D
Upload it noob, with your Chaotics too! :P

brendan s
October 24th, 2010, 05:59
ty!!! turmoil works!!! but curses dont??? cant even use the curses while u use turmoil and u can use ultimate str while u use mystic lore and hawk eye or ea6le or w.e

Nathan
October 24th, 2010, 15:37
ty!!! turmoil works!!! but curses dont??? cant even use the curses while u use turmoil and u can use ultimate str while u use mystic lore and hawk eye or ea6le or w.e

dude this is only for ppl who have client with ancient curses book. im sure some1 released in download section with thier source.

brendan s
October 24th, 2010, 15:42
i do lol??? its relentless525

Nathan
October 24th, 2010, 15:59
here just use this Only the registered members can see the link. evident pkz curses client..

brendan s
October 24th, 2010, 16:07
.... my client is for my server -.- lol and it looks the same as his prayer book..

brendan s
October 24th, 2010, 18:15
please helP!!! my turmoil is bein pro mele and my pro mele idk what its bein but all my pray is fucked up in wild

it has the correct icons but it is bein pro mele !!! and pro item is somethin else i test this all nothin is worken except the icons!!!! HELP PLEASE!!!

startcode
October 24th, 2010, 18:27
as nathan told you use the client that he uses (he gave you link few posts above) and then add those things in actionbuttons.java

brendan s
October 24th, 2010, 19:06
as nathan told you use the client that he uses (he gave you link few posts above) and then add those things in actionbuttons.java

like i said already and tested his clent it has the same prayer book and same problems tht turmoil is bein used as pro mele and all the other prays arnt appose to be what they are but they all have the ri6ht emote and the way they look just not the ri6ht stats for them like turmoil is pro mele and pro item is thick skin how do i fix this PLEASE FFS

and i already added those thin6s to actionbutton.java i replaced it

Nathan
October 24th, 2010, 19:08
thats not the client i use lol mines better and u mean the toolkit where it says level 43 protect from melee.

Haley
October 24th, 2010, 19:10
Like everyone said to use Nathan's client.

brendan s
October 24th, 2010, 19:13
thats not the client i use lol mines better and u mean the toolkit where it says level 43 protect from melee.

it does say that but thats not what i mean

i mean like say im usen turmoil its like im usen pro mele trust me i tested this 5+ times soon as i take turm off they hit 10x better like 11 with a6s then 51 w/o turmoil all the prays are all wierd.... how do i fix it please helP?

Nathan
October 24th, 2010, 19:16
it does say that but thats not what i mean

i mean like say im usen turmoil its like im usen pro mele trust me i tested this 5+ times soon as i take turm off they hit 10x better like 11 with a6s then 51 w/o turmoil all the prays are all wierd.... how do i fix it please helP?

oh yh i know what u mean. u need to code that server sided ill do for u add my msn nathan-ov-cry@hotmail.com

brendan s
October 24th, 2010, 19:16
kk ty dude ill add you atm

brendan s
October 24th, 2010, 20:05
thx for help w/ turmoil soul split and pro item but my protection prayers and leeches still dont work and are fed up please help someone

brendan s
October 24th, 2010, 20:33
someone help me please

Kurdz
October 24th, 2010, 20:47
someone help me please

triple post....

pot up son
December 10th, 2010, 01:47
Nathan thank you so much but in game the prayer icons are the old ones and when you activate them the actiavation is the old one too liek over your head thing please help :)

pot up son
December 10th, 2010, 12:07
also they're all fucked up cause none of the prayers work accept for turmoil cause they're being actiavated as the old ones... please help@!!@!@!@

Acrylix
December 10th, 2010, 12:40
Did you get the client he posted?

pot up son
December 10th, 2010, 12:42
yeah but it doesn't load when i run it it just says connection to update server

pot up son
December 10th, 2010, 12:44
These are my problems with it all the icons that are not being used such as smite/chivalry/piety etc/the blue heart/the red smite thing/ and a couple of others when i activate them they dc me but the other they work but they still have old animation and they have the stats of old and like turmoil is on pro melee...

miniki
December 16th, 2010, 16:02
make one for 562.. :D

Emtec
December 30th, 2010, 12:01
Lol Turmoil uses Superheat Anim :p

u back 4 m0r
January 2nd, 2011, 04:03
Aight the only way to fix the messed up prayers is using his prayers in player.java which I hope he will upload. (At least the prayer part)

u back 4 m0r
January 2nd, 2011, 04:05
Also sorry for double post, but Kurdz of Runelocus also has the code in player.java to get it to work. I'm trying to fix it myself as of atm. if i figure it out I'll put it up on here.

Kenkiter
February 3rd, 2011, 08:44
Hey nathan, Having a problem. The gfx and emote dont work when i have the prayer lvl for it but when I activatee it without the prayer level they both work. Any solutions?