For most servers, the hitdsplash id's look like these:
Code:0 = blue hitsplash 1 = red hitsplash 2 = green hitsplash 3 = orange hitrsplash
|
For most servers, the hitdsplash id's look like these:
Code:0 = blue hitsplash 1 = red hitsplash 2 = green hitsplash 3 = orange hitrsplash
The playerDamage method.
The only i find is this one:
And if so could u fix it for me, i am confused todayCode:protected void appendHitUpdate(stream str) { try { str.writeByte(hitDiff); // What the perseon got 'hit' for if(hitDiff > 2 && healUpdateRequired && poisonDmg == false){ str.writeByteA(0); } else if (hitDiff > 0 && newhptype == false && poisonDmg == false) { str.writeByteA(1); // 0: red hitting - 1: blue hitting } else if (hitDiff > 0 && poisonDmg == true) { str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange } else if (hitDiff == 0 && poisonDmg == true) { str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange } else if (hitDiff > 0 && newhptype == true && poisonDmg == false) { str.writeByteA(hptype); // 0: red hitting - 1: blue hitting } else { str.writeByteA(0); // 0: red hitting - 1: blue hitting }
try dat sir.protected void appendHitUpdate(stream str) {
try {
str.writeByte(hitDiff); // What the perseon got 'hit' for
if(hitDiff > 2 && healUpdateRequired && poisonDmg == false){
str.writeByteA(0);
} else if (hitDiff > 0 && newhptype == false && poisonDmg == false) {
str.writeByteA(1); // 0: red hitting - 1: blue hitting
} else if (hitDiff > 3 && poisonDmg == true) {
str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange
} else if (hitDiff == 0 && poisonDmg == true) {
str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange
} else if (hitDiff > 0 && newhptype == true && poisonDmg == false) {
str.writeByteA(hptype); // 0: red hitting - 1: blue hitting
} else {
str.writeByteA(0); // 0: red hitting - 1: blue hitting
}
Haven't been working with java for some time also i was pretty low at it too..
str.writeByte(2) equals to green hitsplashes, so its most likely somewere else this goes wrong..Code:} else if (hitDiff > 0 && poisonDmg == true) { str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange } else if (hitDiff == 0 && poisonDmg == true) { str.writeByteA(2); // 0: red hitting - 1: blue hitting 2: poison 3: orange
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |