PDA

View Full Version : [508] Protection Prayers [508]



UnitedScape
June 22nd, 2010, 05:49
this is a simple and short tut

Base Used: Bulby

modified files: playercombat.java (playerattack.java in legendx source) and search for


public void attackPlayer()

under that add these


if(p2.prayOn[p.prayRange]) {
p.hitDiff1 = 0;
}
if(p2.prayOn[p.prayMelee]) {
p.hitDiff1 = 0;
}
if(p2.prayOn[p.prayMage]) {
p.hitDiff1 = 0;
}

short but sweet. all done!

XxBryantD
June 22nd, 2010, 05:52
looks ok

Trapt
June 22nd, 2010, 07:54
This is dumb because then all monsters/players hit 0's

UnitedScape
June 22nd, 2010, 08:50
dude if u dnt like it then dont put it on ur server easy as that

Vader5844
June 22nd, 2010, 09:00
Lol this wouldnt work on all 508 servers.

wrathful
November 30th, 2010, 20:01
I am gonna ask is it possible to make that monsters hit 0's and players would hit another amount of damage?

gether
December 1st, 2010, 02:13
im thinking(just maybe) this might make it so only npcs hit 0s.


if(p2.prayOn[p.prayRange] && NPCID >= 0) {
p.hitDiff1 = 0;
}
if(p2.prayOn[p.prayMelee] && NPCID >= 0) {
p.hitDiff1 = 0;
}
if(p2.prayOn[p.prayMage] && NPCID >= 0) {
p.hitDiff1 = 0;
}

replace NPCID with whatever it is in your source.